[Bug 218578] MXC6655 accelerometer not working with MXC4005 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=218578

--- Comment #28 from Hans de Goede (jwrdegoede@xxxxxxxxxxxxxxxxx) ---
> I have attached an ACPI Dump as requested.

Thank you. First of all sorry for asking for one needlessly I now see there
already was one attached to this bug.

So the ACPI firmware node describing the MXC6655 does contain a ROTM method
like we have also seen on BOSC0200 and KIOX000A ACPI firmware nodes and that
does correctly describe the rotation matrix of the accelerometer if I compare
it with your hwdb, the only thing which is different is that it inverts the Z
axis, but that axis is not used for rotation so chances are that inverting it
is actually correct for apps which do care about it.

I have prepared a set of patches:
https://lore.kernel.org/linux-iio/20240417164616.74651-1-hdegoede@xxxxxxxxxx/

Which adds ROTM parsing to the mxc4005 driver. I have started a F39 kernel
build with the original set of fixes + these patches on top here:

https://koji.fedoraproject.org/koji/taskinfo?taskID=116515238

This is still building atm, this should complete building in a couple of hours.
Once this is done building please give this a test run. Here are some
instructions for directly installing a kernel from koji (Fedora's buildsystem):
https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt

If you don't have time to test the next couple of days, please at least
download the kernel rpms.

After booting this kernel you should be able to do:

cat /sys/bus/iio/devices/iio:device0/in_mount_matrix

(assuming iio:device0 is the accel)

And this should then show:

0, -1, 0; -1, 0, 0; 0, 0, -1

and you could drop the hwdb entry for the tablet if you want since
iio-sensor-proxy should now pick it up from this file (hwdb entries will
override the contents of this file so that broken firmware settings can be
fixed).

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux