I am using Loki on my Lenovo X1 Yoga. Very recently an update has enabled the accelerometer, so the screen automatically rotates with the laptop. However, there are two big problems:
The orientation of the screen is wrong. I don't know how to either disable it, or to correct it. Running
xrandr --output eDP1 --rotate normaltemporarily restores the correct orientation, but moving the laptop results in the incorrect orientation.
The accelerometer detection only does anything once the laptop has been to sleep, and has resumed. Upon first booting, my system works fine without the rotation.
Any ideas how to deal with this would be much appreciated.