GNOME Bugzilla – Bug 754735
Fixes for iio-sensors-proxy integration
Last modified: 2015-09-09 14:26:05 UTC
See attached patches; these fix a case where automatic brightness is enabled but the switch is not displayed in the panel.
Created attachment 310921 [details] [review] power: add debug output when IIO proxy creation fails
Created attachment 310922 [details] [review] power: don't assume we have a Screen proxy when IIO proxy is ready On panel construction, we trigger asynchronous creation of a GDBusProxy for the IIO sensors daemon and one for the Screen g-s-d interface. Since there's no guarantee we'll have the screen proxy ready by the time the IIO proxy is constructed, guard for (priv->screen_proxy != NULL), or we'll hit a critical.
Created attachment 310923 [details] [review] power: refresh ALS state when a Screen proxy is created The ALS state depends on both the Screen and IIO dbus proxies; refresh it when the screen proxy is created.
Review of attachment 310921 [details] [review]: Sure.
Review of attachment 310922 [details] [review]: Yep.
Review of attachment 310923 [details] [review]: Yep.
Thanks for the review! Attachment 310921 [details] pushed as 3af59f7 - power: add debug output when IIO proxy creation fails Attachment 310922 [details] pushed as db449dc - power: don't assume we have a Screen proxy when IIO proxy is ready Attachment 310923 [details] pushed as 40988d3 - power: refresh ALS state when a Screen proxy is created