pfps / yoga-laptop

Systems and information to make Lenovo Yoga laptops work better
GNU General Public License v3.0
156 stars 30 forks source link

How to setup it #12

Closed lksv closed 10 years ago

lksv commented 10 years ago

Hi, I cannot make accelerometer sensor to work (light and special key work perfectly). I have Lenovo Yoga 2 pro.

lukas@lenprac:~/tmp/yoga-laptop/docs$ uname -a Linux lenprac 3.13.0-30-generic #54-Ubuntu SMP Mon Jun 9 22:45:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux lukas@lenprac:~/tmp/yoga-laptop/docs$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04 LTS Release: 14.04 Codename: trusty

This is the output of orientation --debug 4 iio device number being used is 0 iio trigger number being used is 0 Finding orientation 0 Polling the data

lukas@lenprac:~/tmp/yoga-laptop/sensors$ ./status Sensor name: accel_3d Channel /sys/bus/iio/devices/iio:device0/scan_elements/in_accel_x_en:t status: -1 Channel /sys/bus/iio/devices/iio:device0/scan_elements/in_accel_y_en:t status: -1 Channel /sys/bus/iio/devices/iio:device0/scan_elements/in_accel_z_en:t status: -1 Buffer status: 0 Buffer length: 128 Current trigger: accel_3d-dev0

lukas@lenprac:~/tmp/yoga-laptop/sensors$ ./status 1 Sensor name: gyro_3d Channel /sys/bus/iio/devices/iio:device1/scan_elements/in_anglvel_x_en:t status: 0 Channel /sys/bus/iio/devices/iio:device1/scan_elements/in_anglvel_y_en:t status: 0 Channel /sys/bus/iio/devices/iio:device1/scan_elements/in_anglvel_z_en:t status: 0 Buffer status: 0 Buffer length: 2 Current trigger:

I install drivers from sensors/drivers by sudo make install. Then in sensors directory install and set permissions.

Script unstick 0 does not help.

Is anything what I forget? .. or is something what I can try further?

pfps commented 10 years ago

I'm not sure what is going wrong. I use Fedora.

Other Ubuntu users have reported problems, but I think that they may have overcome them. You could look through the other problem reports, if you haven't already. Otherwise, maybe some Ubuntu user can chime in.

pfps commented 10 years ago

There is another issue from someone who got the sensors to work on Ubuntu 14.04. Please take a look there and see if you can glean any information from that thread.

I just labelled the issue with Ubuntu. It is a closed issue so you have to click on the correct button to see it.

lksv commented 10 years ago

I try the whole setup step once again and now the sensors work very well. Probably it was my mistake in previous setup.

Thank you for this great project!