]> git.ipfire.org Git - thirdparty/systemd.git/blame - hwdb/60-sensor.hwdb
basic/log: add the log_struct terminator to macro
[thirdparty/systemd.git] / hwdb / 60-sensor.hwdb
CommitLineData
1f886b50
BN
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
d24e70fe 18# udevadm trigger -v -p DEVNAME=/dev/iio:deviceXXX
1f886b50
BN
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#
6472f5f9
GB
28# For hwdb format and systemd behavior:
29# https://www.freedesktop.org/software/systemd/man/hwdb.html
30#
1f886b50
BN
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
6472f5f9 40#
b141888b
HG
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.
1f886b50
BN
48#
49# Sort by brand, model
50
7ab6111f
HG
51#########################################
52# Acer
53#########################################
d8bd96ab
54sensor:modalias:acpi:INVN6500*:dmi:*svn*Acer*:*pn*AspireSW5-012*
55 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
56
7ab6111f
HG
57sensor:modalias:acpi:BMA250E*:dmi:*:svnAcer:pnIconiaW1-810:*
58 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
59
b0488902
HG
60#########################################
61# Archos
62#########################################
63sensor:modalias:acpi:SMO8500*:dmi:*:svnARCHOS:pnARCHOS80Cesium:*
64 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
65
e8e4f5d9
GB
66#########################################
67# AsusTek
68#########################################
7ab6111f
HG
69sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100CHI*
70 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
71
72sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TA*
73 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
74
dd1d57b0
HG
75sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:pnT200TA*
76 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
77
28da8a9f
SDR
78sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LA*
79 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
80
d74c1dea
TS
81sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LD*
82 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
83
40591b41
PS
84sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LJ*
85 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
86
b391a8d8
GB
87sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB*
88 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
89
ae934a73 90sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LD*
e9ee721a 91 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
ae934a73 92
3a26bc1d
HG
93#########################################
94# Axxo
95#########################################
96sensor:modalias:acpi:SMO8500*:dmi:*:svnStandard:pnWCBT1011:*
97 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
98
7ab6111f
HG
99#########################################
100# Chuwi
101#########################################
102
016d5f6f
HG
103# Chuwi Vi8 (CWI506)
104sensor:modalias:acpi:BMA250E*:dmi:bvnINSYDECorp.:bvrCHUWI.D86JLBNR*:svnInsyde:pni86:*
105 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
106
107# Chuwi Vi8 Plus (CWI519)
7ab6111f
HG
108sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnD2D3_Vi8A1:*
109 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
110
2a2fcbee
HG
111# Chuwi Hi8 Pro
112sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnX1D3_C806N:*
113 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
114
c6111112
SDR
115# Chuwi Hi10 Pro
116sensor:modalias:acpi:BOSC0200*:dmi:*:svn*CHUWIINNOVATIONANDTECHNOLOGY*:pnHi10protablet:*
117 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
118
a2896612
GL
119# Chuwi Hi12
120sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnP02BD6_HI-122LP:*
121 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
122
c70b51a7 123# Chuwi Hi13
124sensor:modalias:acpi:KIOX000A*:dmi:svnChuwi*:pnHi13
125 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
126
7c3bdf54 127# Chuwi HiBook
534ab2ea
VV
128# Chuwi HiBook does not have its product name filled, so we
129# match the entire dmi-alias, assuming that the use of a BOSC0200 +
130# bios-version + bios-date combo is unique
131sensor:modalias:acpi:BOSC0200*:dmi:bvnAmericanMegatrendsInc.:bvr5.11:bd05/07/2016:svnDefaultstring:pnDefaultstring:pvrDefaultstring:rvnHampoo:rnCherryTrailCR:rvrDefaultstring:cvnDefaultstring:ct3:cvrDefaultstring:
27c1decf 132 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
7c3bdf54 133
7ab6111f
HG
134#########################################
135# Cube
136#########################################
137
138# Cube iWork8 Air
139sensor:modalias:acpi:KIOX000A*:dmi:*:svncube:pni1-TF:*
140 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
141
53349ea7
DG
142# Cube i7 Stylus
143sensor:modalias:acpi:KIOX000A*:dmi:*:svnCube:pni7Stylus:*
144 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
145
82cb27cf
OM
146# Cube i7 Book (i16)
147sensor:modalias:acpi:KIOX000A*:dmi:*:svnCube:pni16:*
148 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
149
839e7ac2
HG
150#########################################
151# Cytrix (Mytrix)
152#########################################
153sensor:modalias:acpi:*KIOX000A*:dmi:*svn*CytrixTechnology:*pn*Complex11t*
154 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
155
ebf482e7
DD
156#########################################
157# Endless
158#########################################
159sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3*
160 ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0
161
fc17f194
DL
162#########################################
163# Eve Technology
164#########################################
165sensor:modalias:acpi:KIOX000A*:dmi:*:svnEVE*:pnEveV:*
166 ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
167
7ab6111f
HG
168#########################################
169# GP-electronic
170#########################################
171sensor:modalias:acpi:KIOX000A*:dmi:bvnINSYDECorp.:bvrBYT70A.YNCHENG.WIN.007:*:svnInsyde:pnT701:*
14d89e32 172 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
7ab6111f 173
128e6266
TA
174#########################################
175# HP
176#########################################
177sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8540w*
178sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8560w*
179 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, -1; 0, 1, 0
180
7ab6111f 181sensor:modalias:acpi:SMO8500*:dmi:*:svnHewlett-Packard:pnHPStream7Tablet:*
79f3cd2b 182sensor:modalias:acpi:SMO8500*:dmi:*:svnHewlett-Packard:pnHPStream8Tablet:*
7ab6111f
HG
183 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
184
185#########################################
186# I.T.Works
187#########################################
188
189# The I.T.Works TW891 2-in-1's DMI has the product-name field set, but not
190# the sys-vendor field. This makes the DMI data a bit generic, so we match
191# the whole dmi modalias, except for the BIOS version/date
192sensor: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.:
193 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
194
03994fa2
HG
195# I.T.Works TW701 7" windows tablet, same hw as Trekstor ST70416-6
196sensor:modalias:acpi:BMA250*:dmi:*:bvritWORKS.G.WI71C.JGBMRB*:*:svnInsyde:pni71c:*
197 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
198
839e7ac2
HG
199#########################################
200# iOTA 360
201#########################################
202sensor:modalias:acpi:KIOX000A*:dmi:*svn*iOTA*:*pn*IOTA2210*
203 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
204
7ab6111f
HG
205#########################################
206# Jumper
207#########################################
208
209# EZpad mini 3
210sensor:modalias:acpi:BOSC0200*:dmi:bvnINSYDECorp.:bvrjumperx.T87.KFBNEE*
211 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
212
47628ee1
LB
213# EZpad 6 Pro
214sensor:modalias:acpi:BOSC0200*:dmi:*:svnJumper:pnEZpad:*:rvr.A006:*
215 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
216
d5a21d85
HG
217#########################################
218# Kazam
219#########################################
220sensor:modalias:acpi:KIOX000A*:dmi:bvnINSYDECorp.:bvrVISION.I22K*:svnKAZAM:pnVISION:*
221 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
222
7ab6111f
HG
223#########################################
224# Lamina
225#########################################
226sensor:modalias:acpi:SMO8500*:dmi:*svnLamina*:*pnT701BR.SE*
227 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
228
20d8b122
ML
229sensor:modalias:acpi:KIOX000A*:dmi:*svnLAMINA:pnT-1016BNORD*
230 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
231
586377fc 232#########################################
233# Lenovo
234#########################################
235sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:*
236 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
237
5cfde7ad
LKS
238sensor:modalias:acpi:BOSC0200:BOSC0200:dmi:*ThinkPadYoga11e3rdGen*
239 ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1
240
51aa8826 241# Miix3-1030
575cfb62
MS
242sensor:modalias:acpi:BMA250E*:dmi:bvnLENOVO:*:pvrLenovoMIIX3-1030:*
243 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
244
d167ea98
HG
245# IdeaPad Miix 310 note this only is for BIOS version (bvr) 1HCN4?WW, which has
246# a portrait LCD panel, versions with bvr 1HCN3?WW have a landscape panel
247sensor:modalias:acpi:KIOX000A*:dmi:bvnLENOVO:bvr1HCN4?WW:*:svnLENOVO:pn80SG:*
248 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
249
34ee3102 250# IdeaPad Miix 320, different batches use a different sensor
51aa8826 251sensor:modalias:acpi:*BOSC0200*:dmi:*:svnLENOVO*:pn80XF:*
34ee3102 252sensor:modalias:acpi:SMO8840*:dmi:*:svnLENOVO:pn80XF:pvrLenovoMIIX320*
51aa8826 253 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
254
0a186735
PM
255#########################################
256# LINX
257#########################################
258
259# Linx 1010B
260sensor:modalias:acpi:BOSC0200*:dmi:*:svnLINX*:pnLINX1010B:*
261 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, -1
262
366b21ef
HG
263#########################################
264# MSI
265#########################################
266sensor:modalias:acpi:SMO8500*:dmi:*:svnMicro-StarInternationalCo.,Ltd.:pnS100:*
267 ACCEL_MOUNT_MATRIX=0, -1, 0; 1, 0, 0; 0, 0, 1
268
fb5881bf
HG
269#########################################
270# Nuvision (TMax)
271#########################################
272sensor:modalias:acpi:KIOX000A*:dmi:*:svnTMAX:pnTM800W560L:*
273 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
274
3ecb1077
HG
275#########################################
276# Onda
277#########################################
278sensor:modalias:acpi:BMA250E*:dmi:bvnINSYDECorp.:bvrONDA.D89*:svnInsyde:pnONDATablet:*
279sensor:modalias:acpi:BMA250E*:dmi:bvnINSYDECorp.:bvrONDA.W89*:svnInsyde:pnONDATablet:*
280 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
281
7ab6111f
HG
282#########################################
283# Peaq
284#########################################
285sensor:modalias:acpi:SMO8500*:dmi:*:svnPEAQ:pnPEAQPMMC1010MD99187:*
286 ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
287
288#########################################
289# Pipo
290#########################################
291sensor:modalias:acpi:KIOX000A*:dmi:*:svnPIPO:pnW2S:*
292 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
293
86f8fd71
HG
294# Pipo W4
295sensor:modalias:acpi:SMO8500*:dmi:*:bvrV8L_WIN32_CHIPHD_*_DX:*:rvnAMICorporation:rnAptioCRB:*
296 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
297
7ab6111f
HG
298#########################################
299# Ployer
300#########################################
301sensor:modalias:acpi:BMA250E*:dmi:*:svnShenzhenPLOYER*:pnMOMO7W:*
302 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
303
304#########################################
305# Point of View
306#########################################
307
308# The Point of View TAB-P800W does not have its product name filled, so we
309# match the entire dmi-alias, assuming that the use of a BMA250E +
310# bios-version + bios-date combo is unique
311sensor: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.:
b870058f 312sensor:modalias:acpi:BMA250E*:dmi:bvnAmericanMegatrendsInc.:bvr3BAIR1014:bd10/24/2014:svnTobefilledbyO.E.M.:pnTobefilledbyO.E.M.:pvrTobefilledbyO.E.M.:rvnAMICorporation:rnAptioCRB:rvrTobefilledbyO.E.M.:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
7ab6111f
HG
313 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
314
0611b8f0
HG
315#########################################
316# Teclast
317#########################################
318sensor:modalias:acpi:KIOX000A*:dmi:*:svnTECLAST:pnX80Pro:*
319 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
320
04a0ea93
PC
321sensor:modalias:acpi:KIOX000A*:dmi:*:svnTECLAST:pnX98PlusII:*
322 ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
323
7ab6111f
HG
324#########################################
325# Trekstor
326#########################################
327sensor:modalias:acpi:BMA250*:dmi:*:bvrTREK.G.WI71C.JGBMRBA*:*:svnInsyde:pnST70416-6:*
66500345 328sensor:modalias:acpi:BMA250*:dmi:*:bvrTREK.G.WI71C.JGBMRBA*:*:svnTrekStor:pnSurfTabwintron7.0ST70416-6:*
7ab6111f 329 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
fd2f44a2
HG
330
331#########################################
332# Yours
333#########################################
334sensor:modalias:acpi:BMA250E*:dmi:*:svnYOURS:pnY8W81:*
335 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1