Closed GreatEmerald closed 7 years ago
I also have the same issue and get the same message even after restarting the service: "=== Has accelerometer (orientation: undefined)" Using Manjaro on Lenovo Yoga 460
on Linux mint I had to revert to kernel 4.4 to get it work again. no luck with 4.10 and 4.11.
And I just got it to work by using the linux-sunxi kernel for Cherry Trail: https://github.com/jwrdegoede/linux-sunxi
Rotation works fine and monitor-sensor
also reports rotation events. So apparently this is a kernel issue.
The problem is likely still there, just better hidden. See the "Known problems" section of the README.
I have the exact same issue on an HP elitebook x360 1030 G2. The kernel is 4.10.0-28 on Ubuntu 17.04. iio_sensor_proxy is 2.2 and the source contains the 3 seconds sleep kludge, but it does not work.
I installed the last stable kernel release 4.12.3. It works fine now for me. There were some warnings from the kernel on the i915 firmware, so I updated part of it from the Intel website (Ubuntu Zesty).
From https://github.com/hadess/iio-sensor-proxy/blob/master/README.md#known-problems:
Every Linux kernel from 4.3 up to version 4.12 had a bug that made made iio-sensor-proxy fail to see any events coming from sensors until the sensor was power-cycled (unplugged and replugged, or suspended and resumed).
The bug was finally fixed in this commit in the upstream kernel and backported to stable releases. If you experience unresponsive sensors, ask your distributor to make sure this patch was applied to the version you're using.
Please reopen if you still have problems with a kernel containing this fix.
Running monitor-sensor, the first time around it outputs:
But if I restart
iio-sensor-proxy
, it rather prints:However, rotation is still not detected. It stays that way no matter how I move the screen around.
Output of
G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
:The HWDB and dmesg are attached. dmesg.txt udevadm.txt
This might be similar to #163 due to related hardware.