Skip to content

A fix for bad display orientation when Ubuntu is installed on an ASUS Q502L laptop.

Notifications You must be signed in to change notification settings

asperry/ASUS-Q502L-ubuntu-display-orientation-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Problem

When Ubuntu is installed on an ASUS Q502L laptop, the orientation of the accelerometer mounted inside the screen may not be configured correctly. This manifests as the screen rotation always being in the wrong orientation when rotation lock is off; it's as if the direction of gravity is some direction other than downward.

This problem is fixed by overwritting the rotation matrix that describes the orientation of the accelerometer relative to the screen.

How To Fix It

To fix this problem, add the 61-sensor-local.hwdb file in this repository to the /etc/udev/hwdb.d/ directory and restart the computer (you may need sudo privileges).

This sets the accelerometer orientation for iio-sensor-proxy.

References

These references are where I learned how to fix this issue:

Changing the way automatic screen rotation works in Gnome shell

Change iio-sensors data via custom ACCEL_MOUNT_MATRIX

iio-sensor-proxy Repository

60-sensor.hwdb from systemd Repository

About

A fix for bad display orientation when Ubuntu is installed on an ASUS Q502L laptop.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published