GNOME Bugzilla – Bug 786164
Ambient light fixes
Last modified: 2017-11-28 13:49:24 UTC
Makes it work correctly straight after boot.
Created attachment 357428 [details] [review] power: Clarify suspend signal monitoring comment We need to both watch for the signal and setup inhibitors to be informed about suspend attempts, so move the comment above both calls.
Created attachment 357429 [details] [review] power: Call backlight_enable() after session setup backlight_enable() does 2 things, fiddle with the DPMS as well as attempt to claim the light sensor. But the light sensor claim attempt will always fail as the "session_is_active" variable has not been initialised yet. So just try a tad later for it to work as soon as you've logged into the session.
Created attachment 357430 [details] [review] power: "0.0" is not a valid light level This is the equivalent of "undefined" for the accelerometer orientation. Don't use it to prime our nice ambient light readings curve.
Review of attachment 357428 [details] [review]: ok
Review of attachment 357429 [details] [review]: right
Review of attachment 357430 [details] [review]: sure
Attachment 357428 [details] pushed as f644eb3 - power: Clarify suspend signal monitoring comment Attachment 357429 [details] pushed as c0e5471 - power: Call backlight_enable() after session setup Attachment 357430 [details] pushed as 867b203 - power: "0.0" is not a valid light level
*** Bug 776724 has been marked as a duplicate of this bug. ***