1 # This file is part of systemd.
3 # The lookup keys are composed in:
6 # Note: The format of the "sensor:" prefix match key is a
7 # contract between the rules file and the hardware data, it might
8 # change in later revisions to support more or better matches, it
9 # is not necessarily expected to be a stable ABI.
11 # Match string formats:
12 # sensor:modalias:<parent device modalias>:dmi:<dmi string>
14 # To add local entries, create a new file
15 # /etc/udev/hwdb.d/61-sensor-local.hwdb
16 # and add your rules there. To load the new rules execute (as root):
18 # udevadm trigger -y `dirname $(udevadm info -n "/dev/iio:deviceXXX" -q path)`
19 # where /dev/iio:deviceXXX is the device in question.
21 # If your changes are generally applicable, preferably send them as a pull
23 # https://github.com/systemd/systemd
24 # or create a bug report on https://github.com/systemd/systemd/issues and
25 # include your new rules, a description of the device, and the output of
26 # udevadm info --export-db
28 # For hwdb format and systemd behavior:
29 # https://www.freedesktop.org/software/systemd/man/hwdb.html
31 # Allowed properties are:
32 # ACCEL_MOUNT_MATRIX=<matrix>
34 # where <matrix> is a mount-matrix in the format specified in the IIO
35 # subsystem[1]. The default, when unset, is equivalent to:
36 # ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1
37 # eg. the identity matrix.
39 # [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfc57732ad38f93ae6232a3b4e64fd077383a0f1
41 # Note for devices where the display (LCD panel) is mounted non upright
42 # in the device's casing, e.g. mounted upside-down or 90 degree rotated,
43 # the ACCEL_MOUNT_MATRIX should be such that the x and y axis matches the
44 # x and y axis of the display, not those of the casing, so that desktop
45 # environments using the accelerometer data for rotation will e.g.
46 # automatically flip their output for an upside-down display when the device
49 # Sort by brand, model
51 #########################################
53 #########################################
54 sensor:modalias:acpi:BMA250E*:dmi:*:svnAcer:pnIconiaW1-810:*
55 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
57 #########################################
59 #########################################
60 sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100CHI*
61 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
63 sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TA*
64 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
66 sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LD*
67 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
69 sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LJ*
70 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
72 #########################################
74 #########################################
77 sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnD2D3_Vi8A1:*
78 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
81 sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnX1D3_C806N:*
82 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
85 sensor:modalias:acpi:KIOX000A*:dmi:svnChuwi*:pnHi13
86 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
88 #########################################
90 #########################################
93 sensor:modalias:acpi:KIOX000A*:dmi:*:svncube:pni1-TF:*
94 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
97 sensor:modalias:acpi:KIOX000A*:dmi:*:svnCube:pni7Stylus:*
98 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
100 #########################################
102 #########################################
103 sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3*
104 ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0
106 #########################################
108 #########################################
109 sensor:modalias:acpi:KIOX000A*:dmi:bvnINSYDECorp.:bvrBYT70A.YNCHENG.WIN.007:*:svnInsyde:pnT701:*
110 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
112 #########################################
114 #########################################
115 sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8540w*
116 sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8560w*
117 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, -1; 0, 1, 0
119 sensor:modalias:acpi:SMO8500*:dmi:*:svnHewlett-Packard:pnHPStream7Tablet:*
120 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
122 #########################################
124 #########################################
126 # The I.T.Works TW891 2-in-1's DMI has the product-name field set, but not
127 # the sys-vendor field. This makes the DMI data a bit generic, so we match
128 # the whole dmi modalias, except for the BIOS version/date
129 sensor:modalias:acpi:KIOX000A*:dmi:bvnAmericanMegatrendsInc.:*:svnTobefilledbyO.E.M.:pnTW891:pvrTobefilledbyO.E.M.:rvnTobefilledbyO.E.M.:rnTW891:rvr1.0:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
130 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
132 #########################################
134 #########################################
137 sensor:modalias:acpi:BOSC0200*:dmi:bvnINSYDECorp.:bvrjumperx.T87.KFBNEE*
138 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
140 #########################################
142 #########################################
143 sensor:modalias:acpi:SMO8500*:dmi:*svnLamina*:*pnT701BR.SE*
144 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
146 sensor:modalias:acpi:KIOX000A*:dmi:*svnLAMINA:pnT-1016BNORD*
147 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
149 #########################################
151 #########################################
152 sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:*
153 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
155 sensor:modalias:acpi:BOSC0200:BOSC0200:dmi:*ThinkPadYoga11e3rdGen*
156 ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
158 #########################################
160 #########################################
161 sensor:modalias:acpi:SMO8500*:dmi:*:svnPEAQ:pnPEAQPMMC1010MD99187:*
162 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
164 #########################################
166 #########################################
167 sensor:modalias:acpi:KIOX000A*:dmi:*:svnPIPO:pnW2S:*
168 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
170 #########################################
172 #########################################
173 sensor:modalias:acpi:BMA250E*:dmi:*:svnShenzhenPLOYER*:pnMOMO7W:*
174 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
176 #########################################
178 #########################################
180 # The Point of View TAB-P800W does not have its product name filled, so we
181 # match the entire dmi-alias, assuming that the use of a BMA250E +
182 # bios-version + bios-date combo is unique
183 sensor:modalias:acpi:BMA250E*:dmi:bvnAmericanMegatrendsInc.:bvr3BAIR1013:bd08/22/2014:svnTobefilledbyO.E.M.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnAMICorporation:rnAptioCRB:rvrTobefilledbyO.E.M.:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
184 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
186 #########################################
188 #########################################
189 sensor:modalias:acpi:BMA250*:dmi:*:bvrTREK.G.WI71C.JGBMRBA*:*:svnInsyde:pnST70416-6:*
190 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
192 #########################################
194 #########################################
195 sensor:modalias:acpi:*KIOX000A*:dmi:*svn*CytrixTechnology:*pn*Complex11t*
196 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1