Closed M0Rf30 closed 6 years ago
Any i2c errors in the kernel logs? Does a suspend/resume work? Are you certain that you're testing the new kernel and the new iio-sensor-proxy?
Suspend / resume seems to work. Before the 4.12.10 kernel, watch process didn't work after resume. I've entered "dmesg | grep i2c" and no errors.
Here dmesg: https://gist.github.com/M0Rf30/ee393fb81b6b6eb9389781e284629258
kernel version (uname -a ):
Linux unknown 4.12.10-1-zen #1 ZEN SMP PREEMPT Wed Aug 30 17:48:24 UTC 2017 x86_64 GNU/Linux
iio-sensor-proxy-git package:
iio-sensor-proxy-git r264.401d59e-1 [installed]
package file list:
iio-sensor-proxy-git /etc/
iio-sensor-proxy-git /etc/dbus-1/
iio-sensor-proxy-git /etc/dbus-1/system.d/
iio-sensor-proxy-git /etc/dbus-1/system.d/net.hadess.SensorProxy.conf
iio-sensor-proxy-git /usr/
iio-sensor-proxy-git /usr/bin/
iio-sensor-proxy-git /usr/bin/iio-sensor-proxy
iio-sensor-proxy-git /usr/bin/monitor-sensor
iio-sensor-proxy-git /usr/lib/
iio-sensor-proxy-git /usr/lib/systemd/
iio-sensor-proxy-git /usr/lib/systemd/system/
iio-sensor-proxy-git /usr/lib/systemd/system/iio-sensor-proxy.service
iio-sensor-proxy-git /usr/lib/udev/
iio-sensor-proxy-git /usr/lib/udev/rules.d/
iio-sensor-proxy-git /usr/lib/udev/rules.d/80-iio-sensor-proxy.rules
here udevadm info --export-db
output:
https://gist.github.com/M0Rf30/79f6f67181a18d4a95947afaf4d82bd4
here gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy
output:
https://gist.github.com/M0Rf30/15ec09d3e75a895aa197fc33f09a35ac
I have no idea then, you'll need to contact the upstream kernel maintainer for this subsystem to get this sorted out.
Bug submitted on Kernel Bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=196871
Same here with Lenovo Flex-3. Ubuntu 17.10 with kernel 4.13.0-16.
Orientation reports undefined
until I run
watch -n 0.1 cat '/sys/bus/iio/devices/iio:device'*/*raw*
Same here with Lenovo Yoga 720 13IKB ubuntu 17.10 kernel 4.13.0-16 or 4.13.11-041311.2
iio-sensor-proxy 2.2-1 or 2.4
orientation: undefined
until I poll
/sys/bus/iio/devices/iio:device'*/in_accel_*_raw
I don't know how, but for me it's fixed. So I close the issue. Thanks hadess
After having updated the kernel to 4.12.10 (containing the famous fix referenced in README), I've updated iio-sensor-proxy to latest commit, libgudev to 232 and here I post the log with DEBUG variable enabled.
https://gist.github.com/M0Rf30/8ed0318ebaa87c790579ab1dfc5d6360
monitor-sensor gives "undefined" after sending this command:
watch -n 0.1 cat '/sys/bus/iio/devices/iio:device'*/*raw*
it works like a charm and the relative entry in journal becomeset 02 13:04:48 unknown iio-sensor-prox[414]: process_scan_1.....
Stopping the watch process it returns to
set 02 13:04:50 unknown iio-sensor-prox[414]: No new data available on 'iio:device0'
and no more reactions