Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

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

Open
MrChains4w opened this issue Jun 10, 2015 · 3 comments

Comments

@MrChains4w
Copy link

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.

@admiralakber
Copy link
Owner

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.

@Swizz
Copy link

Swizz commented Jul 23, 2015

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 ?

@thirtythreeforty
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants