Skip to content

Fix: Enable Tablet Mode Auto-Rotation on Arch Linux #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tynen
Copy link

@tynen tynen commented Aug 8, 2025

Of course. Here is a pull request description based on the guide you created. You can use this as a template for submitting your changes.


Fix: Enable Tablet Mode Auto-Rotation on Arch Linux

Problem

Automatic screen rotation does not work out of the box on many Arch Linux installations (and its derivatives) for two primary reasons:

  1. The iio-sensor-proxy package, which is required to read accelerometer data, is not installed by default.
  2. The version of iio-sensor-proxy available in some repositories (version 3.7) has a known [upstream bug](https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/411) that prevents it from correctly processing sensor data due to a faulty udev rule.

This leaves users without a functional tablet mode experience.

Solution

This PR adds a new guide that provides a clear, step-by-step solution for Arch Linux users to enable automatic screen rotation. The guide instructs users to:

  1. Install the necessary package: sudo pacman -S iio-sensor-proxy
  2. Apply a udev workaround: A sed command is used to comment out the problematic iio-buffer-accel line in the udev rules, forcing the system to use a working method to poll the sensor.
  3. Restart the relevant services to apply the changes immediately.

This approach resolves the issue completely and restores the expected auto-rotation functionality.

How to Test

  1. Follow the steps outlined in the new "Arch Linux Tablet Mode Setup" guide.
  2. Run monitor-sensor --accel after completing the steps.
  3. Confirm that the output includes the line === Has accelerometer (orientation: normal).
  4. Physically rotate the device to confirm the screen orientation changes accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant