hwdb: Document expected MOUNT_MATRIX on devices with non upright display (#7177)
authorHans de Goede <j.w.r.degoede@gmail.com>
Wed, 25 Oct 2017 07:47:27 +0000 (09:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Oct 2017 07:47:27 +0000 (09:47 +0200)
On some devices the display (LCD panel) is mounted non upright
in the device's casing, e.g. mounted upside-down or 90 degree rotated.

Document the expected ACCEL_MOUNT_MATRIX settings for such devices.

hwdb/60-sensor.hwdb

index 9dca1dd..35b942b 100644 (file)
 #
 # [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfc57732ad38f93ae6232a3b4e64fd077383a0f1
 #
+# Note for devices where the display (LCD panel) is mounted non upright
+# in the device's casing, e.g. mounted upside-down or 90 degree rotated,
+# the ACCEL_MOUNT_MATRIX should be such that the x and y axis matches the
+# x and y axis of the display, not those of the casing, so that desktop
+# environments using the accelerometer data for rotation will e.g.
+# automatically flip their output for an upside-down display when the device
+# is held upright.
 #
 # Sort by brand, model