Closed kmbt closed 4 years ago
The command:
watch -n 0.1 cat /sys/bus/iio/devices/iio\:device*/*raw*
actually makes rotation work as in #135 . The commit mentioned in the README: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f1664eaacec31035450132c46ed2915fd2b2049a is applied to my kernel.
I've also tested a recent kernel: 4.15.0, with iio-sensor-proxy
2.2-1 as well as 2.4-2. The results are the same. Rotation works only with the cat
trick.
Kernel broke again: https://marc.info/?l=linux-iio&m=151136436026917&w=2
Is there a workaround?
Finding a working kernel. And if you find the last working kernel, then please tell me, as I can use that when I finally get the time to (try to) root cause this problem again.
4.15.18-1-MANJARO worked for me, the sensors are working with no watch ...
stuff needed. But it looks like sleep or hybernation breaks the things, an sensors are no more updated. The watch
call does not help too.
Linux Sun2 4.15.18-2-MANJARO got my yoga 920 sensors working even after laptop sleep.
There's a second bug (and fix) referenced in the README now, please make sure that your kernel contains this fix. Ask your distributor if in doubt.
dmesg.txt
kernel_config.txt
lspci.txt
Rotation not working,
monitor-sensor
doesn't output any data.Output of
$ G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy