GNOME Bugzilla – Bug 570340
Misleading comment in brightness_battery GConf key
Last modified: 2012-03-23 09:42:40 UTC
Configuring the amount of brightness dimming when on battery is done with the /apps/gnome-power-manager/backlight/brightness_battery GConf key, which comment says: “The brightness of the display when on battery power. Possible values are between 0 and 100.” However the code which deals with it is the following: gpm_conf_get_uint (backlight->priv->conf, GPM_CONF_BACKLIGHT_BRIGHTNESS_BATT, &value); scale = (100 - value) / 100.0f; brightness *= scale; Which means not only this is a multiplicative factor, but that it is inverted. This is actually the percentage of which the brightness is reduced when going on battery. At the very least, the comment should be updated to indicate that, but there should probably be some more intuitive setting instead – one that increases brightness when the value is increased.