Auto screen rotation - accelerometer not working in Linux

I think the OP [kirk] already solved this issue.

Because someone already pushed the 60-sensor.hwdb config for the Ubook X into github, before I entered the Freebook config in the same github file:

# Chuwi Ubook X (CWI535)
sensor:modalias:acpi:MXC6655*:dmi:*:svnCHUWIInnovationAndTechnology*:pnUBookX:*
 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, -1

# Chuwi Freebook N100
sensor:modalias:acpi:MDA6655*:dmi:*:svnCHUWI*:pnFreeBook:*
 ACCEL_MOUNT_MATRIX=0, -1, 0;1, 0, 0;0, 0, 1
1 Like

So this fixed it for me after futzing with the udev stuff for a while with no effect. Thanks! I wonder why they hide this feature so well?

Chuwi freebook i3 1215u
After trying multiple modifications to the sensor configuration on my Chuwi FreeBook, I finally found that simply deleting the system-wide hwdb file fixed the issue.

If you’re experiencing incorrect accelerometer i not recommend this but you can, try the following steps:


sudo rm /usr/lib/udev/hwdb.d/60-sensor.hwdb
sudo systemd-hwdb update
sudo udevadm control --reload-rules && sudo udevadm trigger

This resolved the issue for me. It seems that some previous configuration changes might have caused the incorrect rotation in the first place.

If you’re also using a Chuwi FreeBook i3 12150u with rotation isue, try this and report back with your results! I’ll report again if I reinstall the OS to confirm the fix.

1 Like