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.
power: Allow disabling ALS monitoring even if inactive
We definitely do want to be able to disable light sensor
monitoring even if we're not in an active session any more.
The only case this conditional was supposed to prevent is
trying to claim the light sensor when the session is inactive.
Anything else should be allowed.
If we handle rfkill input keys without telling rfkill, we end up
handling those keys in gnome-settings-daemon, as well as in the kernel's
rfkill-input driver. As handling all the different keys would require
more work than possible in a stable release, we'll let rfkill-input
handle this, and lose the OSD for now.
media-keys: Fix mmkeys D-Bus API to match API docs
Bizarrely, since 2011, gnome-settings-daemon was documented as using
org.gnome.SettingsDaemon.MediaKeys D-Bus name, but everybody ended up
using the org.gnome.SettingsDaemon owned by the daemon instead, and
never reported the discrepancy.
This fixes the code to match the 6-year old API as documented by owning
the org.gnome.SettingsDaemon.MediaKeys.
The portion of this patch adding the org.gnome.SettingsDaemon.MediaKeys
name owning will need to be backported as far as reasonably possible by
distributions, and all users of the API changed before GNOME 3.26. This
would obviously have been easier if the problem was reported when
detected, committer of this fix included.