kitakar5525 / chromeos-kernel-linux-surface

linux-surface kernel for chromiumos.
GNU General Public License v3.0
18 stars 1 forks source link

sysfs sensor values not updated on Surface 3 #10

Closed kitakar5525 closed 4 years ago

kitakar5525 commented 4 years ago

It seems to be sensors are not working on Surface 3.

Sensor values are not updated on Surface 3:

# On Surface 3
$ grep -H . /sys/bus/iio/devices/iio:device?/in*_raw
/sys/bus/iio/devices/iio:device0/in_illuminance_raw:0
/sys/bus/iio/devices/iio:device0/in_intensity_both_raw:0
/sys/bus/iio/devices/iio:device1/in_anglvel_x_raw:0
/sys/bus/iio/devices/iio:device1/in_anglvel_y_raw:0
/sys/bus/iio/devices/iio:device1/in_anglvel_z_raw:0
/sys/bus/iio/devices/iio:device2/in_accel_x_raw:0
/sys/bus/iio/devices/iio:device2/in_accel_y_raw:0
/sys/bus/iio/devices/iio:device2/in_accel_z_raw:-1000
/sys/bus/iio/devices/iio:device3/in_rot_quaternion_raw:0 0 0 0

On the other hand, it's working on Surface Book 1:

# On SB1
grep -H . /sys/bus/iio/devices/iio:device?/in*_raw
/sys/bus/iio/devices/iio:device0/in_anglvel_x_raw:0
/sys/bus/iio/devices/iio:device0/in_anglvel_y_raw:0
/sys/bus/iio/devices/iio:device0/in_anglvel_z_raw:0
/sys/bus/iio/devices/iio:device1/in_illuminance_raw:321
/sys/bus/iio/devices/iio:device1/in_intensity_both_raw:321
/sys/bus/iio/devices/iio:device2/in_accel_x_raw:49
/sys/bus/iio/devices/iio:device2/in_accel_y_raw:-970
/sys/bus/iio/devices/iio:device2/in_accel_z_raw:-263
/sys/bus/iio/devices/iio:device3/in_rot_quaternion_raw:0 0 0 0
kitakar5525 commented 4 years ago

Of course it's working on Arch Linux on Surface 3.

EDIT: The values are not updated on Arch Linux on Surface 3, too. But rotation/automatic brightness are working with GNOME+iio-sensor-proxy. I may be misunderstanding.

kitakar5525 commented 4 years ago

The values are not updated on sysfs. I'm not sure why. But sensors actually work. Closing this issue because this is not a real problem.