A small utility script to rotate
Python Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 41 commits ahead of oggy-:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
backlight
rotate
systemd
LICENSE
PKGBUILD
README.md
thinkpad-yoga-14-s3-scripts-git.install

README.md

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 yoga-rotate@username.service
systemctl start yoga-backlight@username.service