Enable autorotate on a Microsoft Surface Pro Tablet running Linux. #complete
Go to file
Elf M. Sternberg c4799ed8b6 Fix rotate-detection rules to be less sensitive when unit is flat.
The rotation detection rules were too simple, and too general, and
caused the system to flicker madly if you weren't holding it upright
at more than a 40° angle.  This was mostly due to my misreading the
original algorithm.  This instance currently matches Poel's algorithm
and remembers to quit once a matching geometry has been found.  It's
much more stable and pleasant to use.
2017-11-12 15:40:02 -08:00
autorotate Fix rotate-detection rules to be less sensitive when unit is flat. 2017-11-12 15:40:02 -08:00
README.md Update README.md 2015-01-05 16:36:54 +01:00

README.md

Surface3-Scripts

Some simple scripts for Linux on the Surface Pro 3.

Autorotate: autorotate.py run with python2 needs

autorotate.py

Script for managing autorotation of the screen and deactivation of the touchscreen through the pen.

Instalation

  • install libnotify and python2-gobject (needed for notifications)
  • copy autorotate.py, touch.py, changeautorotatestatus.py, touch.txt, status.txt in the same folder

Usage

Start script:

$ python2 /path/to/autorotate.py

Deactivate/reactivate autorotation:

$ python2 /path/to/changeautorotatestatus.py

Deactivate/reactivate touch:

$ python2 path/to/touch.py