Fork 0
automatically rotate the X display on ThinkPad Yoga http://src.kaivo.net/hw/autorotate/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jakob Kaivo 24db71d363 broken libXi rotation of touch input 6 years ago
.gitignore add to repo 6 years ago
LICENSE Initial commit 7 years ago
Makefile add -lXi 6 years ago
README.md remove notice about depending on xinput, since it doesn't anymore 6 years ago
autorotate.c broken libXi rotation of touch input 6 years ago


This is a program to run in the background and automatically rotate your X screen for you. It has been developed on a ThinkPad Yoga 12.

It monitors IIO events via ACPI to watch for the screen being folded back, at which point rotation is enabled. When the computer is in laptop mode, rotation doesn't occur. It also honors pressing the screen orientation lock button on the side of the Yoga.

This program requires libXrandr and libXi to compile to and run. On Debian, you can install this with "sudo apt install -y libxrand-dev libxi-dev".

This is a very early version and is bound to have bugs. Bug reports are welcome on GitHub.