diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb index b0d0d084de..0f75fd11a8 100644 --- a/hwdb.d/60-sensor.hwdb +++ b/hwdb.d/60-sensor.hwdb @@ -67,11 +67,24 @@ # or 'display'. The default, when unset, is equivalent to: # ACCEL_LOCATION=display # +# A note about setting ACCEL_MOUNT_MATRIX for ACCEL_LOCATION=base sensors, +# on 360 degree hinges style 2-in-1s with 2 sensors (one in the display and +# 1 in the base). Userspace will use both sensors to calculate the angle between +# the 2 halves and the angle is defined as being 0 when the device is folded +# as a regular clamshell laptop with its lid closed. This means that the +# base-accelerometer's mount-matrix must be such, that after applying +# the mount-matrices to both sensors, the base-accelerometer's readings must +# be identical to the display-accelerometer's readings (when the lid is +# closed). +# # Sort by brand, model ######################################### # Acer ######################################### +sensor:modalias:acpi:KIOX0009*:dmi:*:svnAcer:pnAspireSW3-016:* + ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, -1 + sensor:modalias:acpi:INVN6500*:dmi:*svn*Acer*:*pn*AspireSW5-011:* ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 @@ -458,7 +471,10 @@ sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:* ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1 sensor:modalias:acpi:BOSC0200*:dmi:*ThinkPadYoga11e3rdGen:* - ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1 + ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, -1 + +sensor:modalias:acpi:BOSC0200*:dmi:*:svnLENOVO:*pvrThinkPadYoga11e4thGen:* + ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, -1 # Miix3-1030 sensor:modalias:acpi:BMA250E*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-1030:* @@ -530,10 +546,12 @@ sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION:pnE*:* # Medion Akoya E3222 MD62450 sensor:modalias:acpi:KIOX010A*:dmi:*:svnMEDION:pnMEDION*:* ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 + ACCEL_LOCATION=display -# Medion Akoya E2221T MD60691 -sensor:modalias:acpi:KIOX020A*:dmi:*:pnE2221TMD60691*:* - ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1 +# Same as above, but for base sensor +sensor:modalias:acpi:KIOX020A*:dmi:*:svnMEDION:pnE*:* +sensor:modalias:acpi:KIOX020A*:dmi:*:svnMEDION:pnMEDION*:* + ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, -1 ACCEL_LOCATION=base ######################################### @@ -760,6 +778,16 @@ sensor:modalias:acpi:KIOX000A*:dmi:*:svnUMAX:pnVisionBook10WiPro:* sensor:modalias:acpi:SMO8500*:dmi:*:svnUMAX:pnVisionBook10WiPlus:* ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 +######################################### +# Voyo +######################################### +# Voyo Winpad A15 +# The Winpad A15 does not have its product name filled, so we +# match the entire dmi-alias, assuming that the use of a SMO8500 + +# bios-version + bios-date combo is unique +sensor:modalias:acpi:SMO8500*:dmi:bvnAmericanMegatrendsInc.:bvr5.6.5:bd11/20/2014:br5.6:svnTobefilledbyO.E.M.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnAMICorporation:rnAptioCRB:rvrTobefilledbyO.E.M.:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:* + ACCEL_MOUNT_MATRIX=0, -1, 0; 1, 0, 0; 0, 0, -1 + ######################################### # Wortmann #########################################