PinePhone's magnetometer does not appear in iio sysfs
Describe your issue
What's the expected behaviour?
pinephone-compass
should find the magnetometer and use it.
What's the current behaviour?
It does not find it and displays "No magnetometer found: Running in simulation mode"
How to reproduce your issue?
Install pinephone-compass
and run it.
What device are you using?
PinePhone KDE community edition. It should have the magnetometer (LIS3MDL?) that was used before Pine64 switched the magnetometer component due to component shortages.
On what postmarketOS version did you encounter the issue?
edge (master
branch)
I confirm that the issue still is present after running sudo apk upgrade -a
.
On what environment did you encounter the issue?
Phone environments
Phosh
How did you get postmarketOS image?
from https://images.postmarketos.org
Additional information
pinephone-compass looks for the devices in /sys/bus/iio/devices/iio:device*
.
However, on my PinePhone there does not appear to be a magnetometer within these paths (here is a recursive path listing). I'm not sure if this is a kernel issue, or maybe a hardware issue specific to my device, or if the magnetometer just moved to another path.