linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 218578] New: MXC6655 accelerometer not working with MXC4005 driver
@ 2024-03-09 17:55 bugzilla-daemon
  2024-03-09 18:05 ` [Bug 218578] " bugzilla-daemon
                   ` (34 more replies)
  0 siblings, 35 replies; 36+ messages in thread
From: bugzilla-daemon @ 2024-03-09 17:55 UTC (permalink / raw)
  To: linux-iio

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

            Bug ID: 218578
           Summary: MXC6655 accelerometer not working with MXC4005 driver
           Product: Drivers
           Version: 2.5
          Hardware: Intel
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: IIO
          Assignee: drivers_iio@kernel-bugs.kernel.org
          Reporter: kernelbugzilla@kirkschnable.com
        Regression: No

Created attachment 305970
  --> https://bugzilla.kernel.org/attachment.cgi?id=305970&action=edit
Output from udevadm info -n /dev/iio\:device0 && also some samples of
accelerometer raw values I see in /sys/bus/iio/devices/iio:device:0/.

Hello,

I recently bought two Chuwi tablets which contain MXC6655 accelerometers.  The
accelerometers work in Windows 11 and the tablet rotates as expected in
Windows, but upon installing Linux the tablet auto rotation was not working.

The Chuwi tablets are:
- UBook X Pro 2023
- UBook X 2023

This does not appear to be distro specific, as I am seeing the same behavior on
both:
- Linux Mint 21.3, with kernel 5.15.0-91-generic
- Fedora 39 Workstation, with kernel 6.5.6-300.fc39.x86_64

I came across this thread indicating that support was added for this in 2020
via the MXC4005 driver: https://www.spinics.net/lists/linux-iio/msg53171.html

This seems to be double confirmed by another issue I found here on this bug
tracker: https://bugzilla.kernel.org/show_bug.cgi?id=206703

Unfortunately in my case, I see the MXC4005 driver is in fact loaded and
running, however it appears the raw data is not changing.  When looking at the
output from iio-sensor-proxy with "monitor-sensor", the orientation always
reports "left-up".

I tried a test where I watched a cat of all of the files in
/sys/bus/iio/devices/iio:device0/, and I never see the raw data changing when
the tablet is rotated.  I'm attaching the values I see from the raw data in the
text file.  Interestingly, Fedora reports different raw values, but
iio-sensor-proxy still says orientation is left-up with these values.  In both
cases, the values don't change when the tablet is rotated.

The output of "udevadm info -n /dev/iio\:device0" is attached too.

lsmod reports that the mxc4005 driver is loaded, along with industrialio and
industrialio_triggered_buffer.  Unloading the mxc4005 module with rmmod causes
it to disappear from iio-sensor-proxy as expected, but otherwise unloading and
reloading the driver seems to have no effect on the symptoms.

If there is any further information I can gather which will be helpful, or any
testing I can help with, please let me know. 

Thanks!

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

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

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2024-04-19  7:37 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-09 17:55 [Bug 218578] New: MXC6655 accelerometer not working with MXC4005 driver bugzilla-daemon
2024-03-09 18:05 ` [Bug 218578] " bugzilla-daemon
2024-03-09 18:17 ` bugzilla-daemon
2024-03-10 12:33 ` [Bug 218578] New: " Jonathan Cameron
2024-03-10 12:33 ` [Bug 218578] " bugzilla-daemon
2024-03-11  4:21 ` bugzilla-daemon
2024-03-11  4:34 ` bugzilla-daemon
2024-03-11 18:29 ` bugzilla-daemon
2024-03-13 22:13 ` bugzilla-daemon
2024-03-13 22:14 ` bugzilla-daemon
2024-03-13 22:14 ` bugzilla-daemon
2024-03-14  9:35 ` bugzilla-daemon
2024-03-14  9:36 ` bugzilla-daemon
2024-03-14  9:37 ` bugzilla-daemon
2024-03-15  2:30 ` bugzilla-daemon
2024-03-15  2:31 ` bugzilla-daemon
2024-03-15  2:32 ` bugzilla-daemon
2024-03-15  2:33 ` bugzilla-daemon
2024-03-15 15:13 ` bugzilla-daemon
2024-03-17 23:45 ` bugzilla-daemon
2024-03-18 10:43 ` bugzilla-daemon
2024-03-20  8:38 ` bugzilla-daemon
2024-03-22 22:09 ` bugzilla-daemon
2024-03-26 11:45 ` bugzilla-daemon
2024-03-26 22:34 ` bugzilla-daemon
2024-03-26 22:37 ` bugzilla-daemon
2024-03-27 14:38 ` bugzilla-daemon
2024-04-04 22:33 ` bugzilla-daemon
2024-04-08 14:31 ` bugzilla-daemon
2024-04-10 22:29 ` bugzilla-daemon
2024-04-10 22:30 ` bugzilla-daemon
2024-04-17 16:57 ` bugzilla-daemon
2024-04-17 17:01 ` bugzilla-daemon
2024-04-17 19:32 ` bugzilla-daemon
2024-04-18 23:08 ` bugzilla-daemon
2024-04-19  7:37 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).