Command line tool for controlling screen rotation on Lenovo Yoga laptops. This tool is specifically designed for and test on Yoga laptops, other devices support may vary.
Installation can be done in 2 ways, both of which involve the install.sh
script.
install.sh
install.sh
fileinstall.sh
If you wish to install this in a development environment, clone the repo, and then:
scripts/build
source env/bin/activate
pip install --editable .
Note: Installation must be done with an active internet connection.
yoga rotate screen
yoga rotate touch
yoga rotate all
Rotates the screen, touchscreen, or both. All is used by default if no component is givens.
Note: Rotating touchscreen is likely done automatically with screen, and cannot be overriden. Only added as a catch-all.
Flags --flip
and --default
can be added to this command to specify the orientation required.
yoga enable trackpad
yoga disable trackpad
yoga enable touch
yoga disable touch
yoga enable all
yoga disable all
Disables / Enables the trackpad, touch screen, or both. All is used by default if no component is given.
yoga mode laptop
yoga mode tablet
yoga mode list
Switches your device between the modes of yoga devices, configuring the optimum setup automatically. You can use yoga mode list
to see all the available modes.