Too few screen brightness levels

Bug #1998704 reported by Konstantin Khlebnikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Gnome hotkeys for controlling screen backlight gives only 20 levels. Since modern notebooks have really powerful backlight only 2-3 lower steps are usable in the dark environment.

Maximum count of brightness levels is hardcoded to 20 in macro "BRIGHTNESS_STEP_AMOUNT":
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/blob/master/plugins/power/gpm-common.h#L41
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/blob/master/plugins/power/gsd-backlight.c#L899

For example, my thinkpad has 496 brightness levels:

cat /sys/class/backlight/intel_backlight/max_brightness
496

Hotkeys allows to set brightness 4, 28, 52, and the next step is 76 which is already too bright.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.