GNOME Bugzilla – Bug 661084
Don't probe for backlight if you failed once
Last modified: 2013-01-23 23:08:55 UTC
I got a lot of "No backlights were found on your system" in my ~/.xsession-errors and <elad661> I jsut don't understand one thing: if the power plugin saw there is no backlights when it first tried, why does it keep trying? <hughsie> that's also a valid question <hughsie> backlights can't really come and go <elad661> Yeah and probbing again and again is just a waste of resources
commit d2b07da38f039e6d5bcf191852e8672ef7d49780 Author: Bastien Nocera <hadess@hadess.net> Date: Wed Jan 23 23:48:41 2013 +0100 power: Check whether backlight is available on startup And only on startup. https://bugzilla.gnome.org/show_bug.cgi?id=661084 commit f79d8b32641da31d5190c25c65b61f21f96f9ce5 Author: Bastien Nocera <hadess@hadess.net> Date: Wed Jan 23 23:45:17 2013 +0100 power: Add backlight_available() function Checking both the XRandR backlight functionality and udev for a suitable backlight. commit 8f367388e0a5015c5f716e11fd1a7cf74b40ab1a Author: Bastien Nocera <hadess@hadess.net> Date: Wed Jan 23 23:44:12 2013 +0100 power: Split off udev backlight enumeration function So that we can use it in the plugin itself.