GNOME Bugzilla – Bug 761746
media-keys: Port to iio-sensor-proxy
Last modified: 2016-02-10 17:45:59 UTC
It looks like in versions of GNOME > 3.18 rotation lock via keyboard shortcut or hardware button is broken. Minus one small diff context conflict, this patch applies on the gnome-3-18 branch. I wasn't *quite* sure how to test this, so I ended up installing gnome-3-18 (plus this commit) to /usr/local and then pointing /etc/xdg/autostart/gnome-settings-daemon.desktop to the version installed in /usr/local. It appeared to work and there were no errors in the debug log (once I enabled it with --debug). If there's a better way to test please let me know.
Created attachment 320680 [details] [review] media-keys: Port to iio-sensor-proxy commit b7f6fe30b removed the Orientation dbus name which is what media-keys used to determine if super+o or hardware keys should work to lock the rotation should work.
Sorry, things are broken in versions ≥ 3.18.
Review of attachment 320680 [details] [review]: code looks good, thanks. I can't test it though, so I'd prefer if this goes only to master for now and we can push it to gnome-3-18 later the commit message has an extra "should work", please fix it before pushing or if you can't push I'll amend it here, let me know
Fixed and committed! Thanks.