A bash script that detects when a lenovo yoga enters tablet mode, and automatically rotates the screen based on its orientation. Tested on a Lenovo Yoga 14AKP10 running Arch with KDE
- Shell 100%
| .gitattributes | ||
| README.md | ||
| yoga-tablet-mode.sh | ||
wip, not even sure if this is needed. For all I know i could just be missing a module or one that's enabled is messing things up. Could probably be HELLA improved on.
Currently uses kscreen-doctor to rotate.
Fixes for the accelerometer not getting detected are based on the following:
Script is based on fishonadish's autorotate script: