From b141888b3059694f5e2fbfe597c1703c8caa0bd2 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 25 Oct 2017 09:47:27 +0200 Subject: [PATCH] hwdb: Document expected MOUNT_MATRIX on devices with non upright display (#7177) 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index 9dca1dd8d8..35b942bde2 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -38,6 +38,13 @@ # # [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