GNOME Bugzilla – Bug 338630
when change brightness on idle, check the current level first.
Last modified: 2006-04-15 21:40:05 UTC
On battery, I have set the brightness to 0%, which works well, but then, after the idle timeout, the lcd is bumped to 30% which is the value for idle. So I think that maybe we need to check if the idle brightness is higher than the __current__ LCD brightness (not the level set in policy, because brightness may be manually changed), and if it is, ignore the change. Otherwise we end up wasting power.
Yes, agreed.
2006-04-15 Richard Hughes <richard@hughsie.com> * src/gpm-brightness.{c|h} (gpm_brightness_level_get): Add this new function so we can get at the current percentage value. * src/gpm-manager.c (idle_changed_cb): Check that we do not set a higher brightness when we try to lower the brightness on idle. Should fix #338630. Please check this fixes the issue. Many thanks.