GNOME Bugzilla – Bug 603108
brightness never fully restores after idle dim on battery
Last modified: 2012-03-23 16:21:49 UTC
Backlight brightness is always calculated as follows: 1. Start with the master percentage 2. Scale brightness if on battery and we should dim on battery 3. Scale brightness if idle and we should dim on idle This calculation works well and is correct in most cases. The only wrinkle is when the user changes the brightness manually while on battery power. In this case, master percentage is set to the new brightness. When the system goes idle and gpm_backlight_evaluate_and_set is called, the new brightness is treated as the master percentage and scaled down. When the system is no longer idle, the resulting calcluation is still the user set brightness scaled by the battery settings. The end result is that a user that manually adjusts the brightness while on battery power will have to adjust the brightness after each idle time.
Created attachment 148573 [details] [review] Creates separate master percentages for ac and battery This patch keeps two master percentages and adds a utility function to determine which one should be used. The battery percentage is defaulted to the /apps/gnome-power-manager/backlight/brightness_dim_battery. This keeps the master percentage consistent through user adjustments and leaves ac and battery states completely separate. I'm not fully happy with the approach, but it seems more sane than storing percentages > 100 in master percentage to account for brightness updates on battery power.
Is this working better with GNOME 3.2 and 3.4?
This can probably be closed; I don't remember seeing the issue in my limited use of GNOME 3.2.