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
Find a file
2025-12-20 01:46:54 -06:00
.gitattributes Initial commit 2025-12-14 23:08:16 -06:00
README.md Create README.md 2025-12-14 23:14:26 -06:00
yoga-tablet-mode.sh updated startup check 2025-12-20 01:46:54 -06:00

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: