Skip to content

[patch] xfpm-backlight-helper reads wrong file for brightness

Submitted by Kacper Piwiński

Assigned to Ali Abdallah @ali

Link to original bug (#15197)

Description

Created attachment 8335 patch file

xfpm-backlight-helper reads "/sys/class/backlight/<driver>/brightness" this file is for setting brightness, not for reading what the brightness actually is. It happened to sometimes works because "brightness" file remember last written value to it. We should read from "/sys/class/backlight/<driver>/actual_brightness" to get real current brightness level. I'm including a patch that fixes this.

Patch 8335, "patch file":
0001-read-from-actual_brightness-instead-of-brightness.patch

Version: git