Skip to content

A Python script to give auto-rotation capabilities to 2-in-1 laptops. [HP x360 spectre]

Notifications You must be signed in to change notification settings

lythu95/AutoRotateScreen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

AutoRotateScreen

A Python script to give auto-rotation capabilities to 2-in-1 laptops in Linux

Click on gif to see full video

This script uses iio-sensor-proxy to read the screen's pitch and roll angles and sets the desired orientation using xrandr. Please install these programs if they aren't already included to make this work.

To make the script permanent, make it executable with chmod +x AutoRotateScreen.py and add it to the Startup Applications list so it starts working at login.

About

A Python script to give auto-rotation capabilities to 2-in-1 laptops. [HP x360 spectre]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%