Skip to content

johanneswilm/thinkpad-yoga-14-s3-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thinkpad-yoga-14-s3-scripts

A collection of scripts and systemd units to restore functionality of the Lenovo ThinkPad Yoga 14 S3.

These are different from other scripts in that the screen rotation is automated with use of the inbuilt accelerometer. Also, acpid is not used in order to toggle between tablet mode but rather binding to the inbuilt switches.

Tested on Linux Mint with Cinnamon. See customization.

Modified from https://github.com/ianalis/thinkpad-yoga-scripts

Scripts should fix:

  • Screen rotation with accelerometer, including touchscreen geometries, and disabling of Touchpad/TrackPoint

    Adjustment of screen brightness

Usage/Customization:

Assuming installed as per the PKGBUILD

Depending whether or not your DE rotates the touchscreen automatically edit the following file accordingly:

/opt/thinkpad-yoga-14-s3-scripts/rotate/thinkpad-rotate.py

TODO:

  • Test on different desktop environments (You can help!)

Dependencies

  • xrandr
  • xinput
  • systemd
  • gawk

Manual installation

sudo -s
git clone https://github.com/johanneswilm/thinkpad-yoga-14-s3-scripts /opt/thinkpad-yoga-14-s3-scripts
cp /opt/thinkpad-yoga-14-s3-scripts/systemd/* /usr/lib/systemd/system/

systemctl start [email protected]
systemctl start [email protected]

About

A small utility script to rotate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.6%
  • Shell 18.4%