# Auto screen rotation - accelerometer not working in Linux

**URL:** <https://forum.chuwi.com/t/auto-screen-rotation-accelerometer-not-working-in-linux/43647>\
**Category:** UBook X\
**Created:** [March 8, 2024, 12:16am UTC](https://forum.chuwi.com/t/auto-screen-rotation-accelerometer-not-working-in-linux/43647 "2024-03-08T00:16:14Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![ed61](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@ed61](https://forum.chuwi.com/u/ed61)\
**Post date:** [August 5, 2024, 4:24pm UTC](https://forum.chuwi.com/t/auto-screen-rotation-accelerometer-not-working-in-linux/43647/21 "2024-08-05T16:24:00Z")

</div>

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

Because someone already pushed the [60-sensor.hwdb](https://github.com/systemd/systemd/blob/main/hwdb.d/60-sensor.hwdb) config for the Ubook X into github, before I entered the Freebook config in the same github file:

```auto
# 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

```

---

<div class="post-metadata">

**Author:** ![newts](https://avatars.discourse-cdn.com/v4/letter/n/b19c9b/32.png) [@newts](https://forum.chuwi.com/u/newts)\
**Post date:** [February 14, 2025, 1:18am UTC](https://forum.chuwi.com/t/auto-screen-rotation-accelerometer-not-working-in-linux/43647/22 "2025-02-14T01:18:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dhanush](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@dhanush](https://forum.chuwi.com/u/dhanush)\
**Post date:** [March 1, 2025, 10:22pm UTC](https://forum.chuwi.com/t/auto-screen-rotation-accelerometer-not-working-in-linux/43647/23 "2025-03-01T22:22:39Z")

</div>

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:

```auto

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.

[Previous page](https://forum.chuwi.com/t/auto-screen-rotation-accelerometer-not-working-in-linux/43647.md?page=1)
