How to rotate Yoga 370 screen

From ThinkWiki
Revision as of 08:07, 3 May 2017 by Detached (Talk | contribs) (Add Yoga 370 screen rotation workaround)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Yoga 370

Even though the thinkpad-acpi module recognizes the Notebook-to-Tablet transformation event (0x60f0) the correct implementation of the screen rotation functionality is not possible because the acpi device method for determining the transformation state is currently unknown.

So in the meantime a little script helps out that triggers the rotation of the screen when executed while the device is tilted. The script was tested under Fedora 25 (4.10.13-200.fc25.x86_64).


#! /bin/bash 
/usr/bin/cat /sys/bus/iio/devices/iio\:device3/in_accel_x_raw

Allow the execution of this script with a sudoers.d file


yourUser ALL=(ALL) NOPASSWD: /usr/bin/

Now you can call this script by your script or manual with a desktop file


[Desktop Entry]
Name=Screen Rotation
Exec=sudo /usr/bin/
Comment=Rotate the screen