]>
Commit | Line | Data |
---|---|---|
1 | # This file is part of systemd. | |
2 | # | |
3 | # The lookup keys are composed in: | |
4 | # 60-sensor.rules | |
5 | # | |
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. | |
10 | # | |
11 | # Match string formats: | |
12 | # sensor:modalias:<parent device modalias>:dmi:<dmi string> | |
13 | # | |
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): | |
17 | # systemd-hwdb update | |
18 | # udevadm trigger -y `dirname $(udevadm info -n "/dev/iio:deviceXXX" -q path)` | |
19 | # where /dev/iio:deviceXXX is the device in question. | |
20 | # | |
21 | # If your changes are generally applicable, preferably send them as a pull | |
22 | # request to | |
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 | |
27 | # | |
28 | # For hwdb format and systemd behavior: | |
29 | # https://www.freedesktop.org/software/systemd/man/hwdb.html | |
30 | # | |
31 | # Allowed properties are: | |
32 | # ACCEL_MOUNT_MATRIX=<matrix> | |
33 | # | |
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. | |
38 | # | |
39 | # [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfc57732ad38f93ae6232a3b4e64fd077383a0f1 | |
40 | # | |
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 | |
47 | # is held upright. | |
48 | # | |
49 | # Sort by brand, model | |
50 | ||
51 | ######################################### | |
52 | # Acer | |
53 | ######################################### | |
54 | sensor:modalias:acpi:INVN6500*:dmi:*svn*Acer*:*pn*AspireSW5-012* | |
55 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
56 | ||
57 | sensor:modalias:acpi:BMA250E*:dmi:*:svnAcer:pnIconiaW1-810:* | |
58 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
59 | ||
60 | ######################################### | |
61 | # AsusTek | |
62 | ######################################### | |
63 | sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100CHI* | |
64 | ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1 | |
65 | ||
66 | sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TA* | |
67 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
68 | ||
69 | sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:pnT200TA* | |
70 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
71 | ||
72 | sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LA* | |
73 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
74 | ||
75 | sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LD* | |
76 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
77 | ||
78 | sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LJ* | |
79 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
80 | ||
81 | ######################################### | |
82 | # Axxo | |
83 | ######################################### | |
84 | sensor:modalias:acpi:SMO8500*:dmi:*:svnStandard:pnWCBT1011:* | |
85 | ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1 | |
86 | ||
87 | ######################################### | |
88 | # Chuwi | |
89 | ######################################### | |
90 | ||
91 | # Chuwi Vi8 (CWI506) | |
92 | sensor:modalias:acpi:BMA250E*:dmi:bvnINSYDECorp.:bvrCHUWI.D86JLBNR*:svnInsyde:pni86:* | |
93 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
94 | ||
95 | # Chuwi Vi8 Plus (CWI519) | |
96 | sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnD2D3_Vi8A1:* | |
97 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
98 | ||
99 | # Chuwi Hi8 Pro | |
100 | sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnX1D3_C806N:* | |
101 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
102 | ||
103 | # Chuwi Hi10 Pro | |
104 | sensor:modalias:acpi:BOSC0200*:dmi:*:svn*CHUWIINNOVATIONANDTECHNOLOGY*:pnHi10protablet:* | |
105 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
106 | ||
107 | # Chuwi Hi13 | |
108 | sensor:modalias:acpi:KIOX000A*:dmi:svnChuwi*:pnHi13 | |
109 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
110 | ||
111 | # Chuwi HiBook | |
112 | # Chuwi HiBook does not have its product name filled, so we | |
113 | # match the entire dmi-alias, assuming that the use of a BOSC0200 + | |
114 | # bios-version + bios-date combo is unique | |
115 | sensor:modalias:acpi:BOSC0200*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd05/07/2016:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnHampoo:rnCherryTrailCR:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring: | |
116 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
117 | ||
118 | ######################################### | |
119 | # Cube | |
120 | ######################################### | |
121 | ||
122 | # Cube iWork8 Air | |
123 | sensor:modalias:acpi:KIOX000A*:dmi:*:svncube:pni1-TF:* | |
124 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
125 | ||
126 | # Cube i7 Stylus | |
127 | sensor:modalias:acpi:KIOX000A*:dmi:*:svnCube:pni7Stylus:* | |
128 | ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1 | |
129 | ||
130 | ######################################### | |
131 | # Endless | |
132 | ######################################### | |
133 | sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3* | |
134 | ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0 | |
135 | ||
136 | ######################################### | |
137 | # GP-electronic | |
138 | ######################################### | |
139 | sensor:modalias:acpi:KIOX000A*:dmi:bvnINSYDECorp.:bvrBYT70A.YNCHENG.WIN.007:*:svnInsyde:pnT701:* | |
140 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
141 | ||
142 | ######################################### | |
143 | # HP | |
144 | ######################################### | |
145 | sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8540w* | |
146 | sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8560w* | |
147 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, -1; 0, 1, 0 | |
148 | ||
149 | sensor:modalias:acpi:SMO8500*:dmi:*:svnHewlett-Packard:pnHPStream7Tablet:* | |
150 | sensor:modalias:acpi:SMO8500*:dmi:*:svnHewlett-Packard:pnHPStream8Tablet:* | |
151 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
152 | ||
153 | ######################################### | |
154 | # I.T.Works | |
155 | ######################################### | |
156 | ||
157 | # The I.T.Works TW891 2-in-1's DMI has the product-name field set, but not | |
158 | # the sys-vendor field. This makes the DMI data a bit generic, so we match | |
159 | # the whole dmi modalias, except for the BIOS version/date | |
160 | 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.: | |
161 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
162 | ||
163 | ######################################### | |
164 | # Jumper | |
165 | ######################################### | |
166 | ||
167 | # EZpad mini 3 | |
168 | sensor:modalias:acpi:BOSC0200*:dmi:bvnINSYDECorp.:bvrjumperx.T87.KFBNEE* | |
169 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
170 | ||
171 | ######################################### | |
172 | # Lamina | |
173 | ######################################### | |
174 | sensor:modalias:acpi:SMO8500*:dmi:*svnLamina*:*pnT701BR.SE* | |
175 | ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1 | |
176 | ||
177 | sensor:modalias:acpi:KIOX000A*:dmi:*svnLAMINA:pnT-1016BNORD* | |
178 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
179 | ||
180 | ######################################### | |
181 | # Lenovo | |
182 | ######################################### | |
183 | sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:* | |
184 | ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1 | |
185 | ||
186 | sensor:modalias:acpi:BOSC0200:BOSC0200:dmi:*ThinkPadYoga11e3rdGen* | |
187 | ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1 | |
188 | ||
189 | sensor:modalias:acpi:BMA250E*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-1030:* | |
190 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1 | |
191 | ||
192 | ######################################### | |
193 | # Peaq | |
194 | ######################################### | |
195 | sensor:modalias:acpi:SMO8500*:dmi:*:svnPEAQ:pnPEAQPMMC1010MD99187:* | |
196 | ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1 | |
197 | ||
198 | ######################################### | |
199 | # Pipo | |
200 | ######################################### | |
201 | sensor:modalias:acpi:KIOX000A*:dmi:*:svnPIPO:pnW2S:* | |
202 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
203 | ||
204 | ######################################### | |
205 | # Ployer | |
206 | ######################################### | |
207 | sensor:modalias:acpi:BMA250E*:dmi:*:svnShenzhenPLOYER*:pnMOMO7W:* | |
208 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
209 | ||
210 | ######################################### | |
211 | # Point of View | |
212 | ######################################### | |
213 | ||
214 | # The Point of View TAB-P800W does not have its product name filled, so we | |
215 | # match the entire dmi-alias, assuming that the use of a BMA250E + | |
216 | # bios-version + bios-date combo is unique | |
217 | 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.: | |
218 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
219 | ||
220 | ######################################### | |
221 | # Teclast | |
222 | ######################################### | |
223 | sensor:modalias:acpi:KIOX000A*:dmi:*:svnTECLAST:pnX80Pro:* | |
224 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
225 | ||
226 | sensor:modalias:acpi:KIOX000A*:dmi:*:svnTECLAST:pnX98PlusII:* | |
227 | ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1 | |
228 | ||
229 | ######################################### | |
230 | # Trekstor | |
231 | ######################################### | |
232 | sensor:modalias:acpi:BMA250*:dmi:*:bvrTREK.G.WI71C.JGBMRBA*:*:svnInsyde:pnST70416-6:* | |
233 | sensor:modalias:acpi:BMA250*:dmi:*:bvrTREK.G.WI71C.JGBMRBA*:*:svnTrekStor:pnSurfTabwintron7.0ST70416-6:* | |
234 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1 | |
235 | ||
236 | ######################################### | |
237 | # Cytrix (Mytrix) | |
238 | ######################################### | |
239 | sensor:modalias:acpi:*KIOX000A*:dmi:*svn*CytrixTechnology:*pn*Complex11t* | |
240 | ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1 |