Fix: Enable Tablet Mode Auto-Rotation on Arch Linux #62
+48
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
iio-sensor-proxy
package, which is required to read accelerometer data, is not installed by default.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 faultyudev
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:
sudo pacman -S iio-sensor-proxy
sed
command is used to comment out the problematiciio-buffer-accel
line in theudev
rules, forcing the system to use a working method to poll the sensor.This approach resolves the issue completely and restores the expected auto-rotation functionality.
How to Test
monitor-sensor --accel
after completing the steps.=== Has accelerometer (orientation: normal)
.