This program was originally written for the Lenovo flex 5.But if your laptop hasiio-sensor-proxy
installed andsupports it, automatic rotation should work on any laptop.Since version 1.7 I use an ASUS ROG Flow. Therefor new features andpatches will be available first on the asus_rog_flow branch.
Please look indefault.nix
underbuildInputs = [ ... ];
whichprograms are required.iio-sensor-proxy
is also needed.
If your laptop supportsiio-sensor-proxy
, run:
if you like to set rotation manually, run these commands:
./screenrotation.sh
with the argumentsnormal
,inverted
,left
,right
.
The argumentscycle_left
,cycle_right
andswap
respectivelycycle the screen rotation or inverts it.
This is perfect if you can map physical buttons to these commands (like for a Thinkpad X201T)