Draft: add auto-rotate setting using iio_sensor_proxy

Using the initial draft of Matias De Lellis in #82, I've made a patch to add this and a settings toggle for it. I'm not fully certain whether I've stored the in-memory auto-rotate setting cache in the right place (currently in XfceOutput), so I'd appreciate feedback on that, and also on general code structure - it feels like I've had to add things as workarounds (e.g. the new name XfceOutput, the populate/reload call on profile change) that I'm certain exist somewhere but I just can't find them.

The current approach uses the DBus interface to iio-sensor-proxy and claims the sensor and listens to updates if any displays in the current profile have auto-rotate on. Auto-rotate is saved in the XfceOutput struct and persisted in /<profile>/<device>/AutoRotate.

Any feedback would be greatly appreciated!


Closes: #82

Edited by Gaël Bonithon

Merge request reports

Loading
Loading