thinkpad-yoga-scripts icon indicating copy to clipboard operation
thinkpad-yoga-scripts copied to clipboard

Rotate script returns wrong states. Keeps flickering between states without any motion.

Open MrChains4w opened this issue 9 years ago • 3 comments

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.

MrChains4w avatar Jun 10 '15 12:06 MrChains4w

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.

admiralakber avatar Jun 16 '15 01:06 admiralakber

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 ?

Swizz avatar Jul 23 '15 17:07 Swizz

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!

thirtythreeforty avatar Aug 24 '15 01:08 thirtythreeforty