Closed constantbeginner closed 4 years ago
This seems to be using the old lis3lv02d sensor driver from drivers/misc/lis3lv02d/
I don't think that is a good idea. It uses a custom chardev and not the IIO subsystem, is not very well maintained and there is a modern driver for it. In my opinon the kernel need to be reconfigured not to build this module and use drivers/iio/accel/st_accel_i2c.c instead.
Possibly the IIO driver needs to be patched to properly detect the lis3lv02d on x86/ACPI as well.
Unfortunately this is all way above my skill level. If there is anything I could do to help, I would be happy to try. Would that be useful if I try to reconfigure the kernel (never done it before) and let you know the outcome?
I don't think that is a good idea. It uses a custom chardev and not the IIO subsystem, is not very well maintained and there is a modern driver for it. In my opinon the kernel need to be reconfigured not to build this module and use drivers/iio/accel/st_accel_i2c.c instead.
Possibly the IIO driver needs to be patched to properly detect the lis3lv02d on x86/ACPI as well.
lis3lv02d_joystick_enable()
in drivers/misc/lis3lv02d/lis3lv02d.c
will export the accelerometer data through an input device, which iio-sensor-proxy supports (src/drv-input-accel.c
).
You'll want to check whether the kernel is correctly configured to export that input device, and whether you have a recent version of iio-sensor-proxy.
See also #173.
@constantbeginner There seem to be a fix in preparation.
@wismill That's great news, I'll sit tight and wait for it to be released, then I'll be happy to beta test it and let you know
Fix is still in preparation.
I'm still available to test it once it's out
I'll close this seeing as the reason why there's no accelerometer is because none are accessible by the kernel. Please file a new bug once the driver's landed and if there's problems.
https://lwn.net/Articles/809084/
Edit: Please don't post links to this website, thanks.
Hello there,
on my HP Envy x360 with Ubuntu 19.04 the command
udevadm info --export-db
does not detect any iio device.lsmod | grep acc
though finds this:I have tried using
sudo systemctl start iio-sensor-proxy
which executes without giving any output whatsoever, so doesiio-sensor-proxy
gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy
produces the following error message:Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name net.hadess.SensorProxy was not provided by any .service files
launching
monitor-sensor
only producesWaiting for iio-sensor-proxy to appear
, which is plausible, since no sensor is detected.What am I missing?