thinkpad-yoga-scripts
thinkpad-yoga-scripts copied to clipboard
Rotate script returns wrong states. Keeps flickering between states without any motion.
Lenovo Yoga 11s Ubuntu 15.04
Not usable. I could not figure out why. I printed the states and x,y values without initializing a rotation but i do not really understand the script.
The script basically reads from the accelerometer readings at /sys/bus/iio/devices/iio:device*/in_accel_{x,y}_raw
and compares it to gravity and rotates accordingly such that "up is always up" on your screen.
These scripts are designed for the ThinkPad Yoga, not the IdeaPad. I don't necessarily expect them all to work on the IdeaPad's as from my experience they can be quite different.
Check if you have the accelerometer outputs above. You will need to find out which device number contains the appropriate files.
I'm on Yoga 2 13.
I try this script to show the accelerometer values :
while true ;
do echo `cat /sys/bus/iio/devices/iio\:device3/in_accel_x_raw`,
`cat /sys/bus/iio/devices/iio\:device3/in_accel_y_raw`,
`cat /sys/bus/iio/devices/iio\:device3/in_accel_z_raw` ;
done
But none of these was updated when i rotate my laptop.
Any idea ?
I'm on a Yoga 3 14", and I'm seeing the same behavior as @Swizz540: the accelerometer readings don't change at all when I rotate the laptop.
The {x, y, z}
values are {65466, 64849, 64814}
.
For what it's worth, the ideapad_laptop
module is blacklisted because it breaks Wi-Fi for whatever reason.
Any pointers would be appreciated!