hadess / iio-sensor-proxy

IIO accelerometer sensor to input device proxy
197 stars 64 forks source link

After upgrade to Linux 4.17rc1 it's required to suspend/resume to get accelerometer and ambient light sensor working #224

Closed RussianNeuroMancer closed 6 years ago

RussianNeuroMancer commented 6 years ago

Accelerometer and ambient light sensor works only after suspend/resume on Lenovo Miix2 (INV6050 sensor; iio-sensor-proxy version is 2.4) after upgrade from Linux 4.16 to Linux 4.17rc1. Both sensors is detected after boot but undefined:

~$ monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: undefined)
=== Has ambient light sensor (value: 0.000000, unit: lux)

After suspend/resume both sensors start working normally.

There is no such issue with Linux 4.16.0.

hadess commented 6 years ago

It's a kernel issue, nothing I can do about it.

MCSH commented 6 years ago

I'm not sure if it's the same problem but after suspend/resume when it rotates, the screen goes blank and only the cursor is visible

RussianNeuroMancer commented 6 years ago

@hadess

It's a kernel issue, nothing I can do about it.

Ok, I'll recheck with 4.17 and fill to kernel bugtracker.

@MCSH

the screen goes blank and only the cursor is visible

Your issue is either combination of two (this one and some other in video driver, compositor, something else) or completely different.