403ebba5841595119493c4f3aea4cd5fa5ad59ad
[oweals/hwids.git] / udev / 60-sensor.hwdb
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 #
42 # Sort by brand, model
43
44 #########################################
45 # Acer
46 #########################################
47 sensor:modalias:acpi:BMA250E*:dmi:*:svnAcer:pnIconiaW1-810:*
48  ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
49
50 #########################################
51 # AsusTek
52 #########################################
53 sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100CHI*
54  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
55
56 sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TA*
57  ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
58
59 sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LD*
60  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
61
62 sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP300LJ*
63  ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
64
65 #########################################
66 # Chuwi
67 #########################################
68
69 # Chuwi Vi8 Plus
70 sensor:modalias:acpi:BOSC0200*:dmi:*:svnHampoo:pnD2D3_Vi8A1:*
71  ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
72
73 # Chuwi Hi13
74 sensor:modalias:acpi:KIOX000A*:dmi:svnChuwi*:pnHi13
75  ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
76
77 #########################################
78 # Cube
79 #########################################
80
81 # Cube iWork8 Air
82 sensor:modalias:acpi:KIOX000A*:dmi:*:svncube:pni1-TF:*
83  ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
84
85 # Cube i7 Stylus
86 sensor:modalias:acpi:KIOX000A*:dmi:*:svnCube:pni7Stylus:*
87  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
88
89 #########################################
90 # Endless
91 #########################################
92 sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3*
93  ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0
94
95 #########################################
96 # GP-electronic
97 #########################################
98 sensor:modalias:acpi:KIOX000A*:dmi:bvnINSYDECorp.:bvrBYT70A.YNCHENG.WIN.007:*:svnInsyde:pnT701:*
99  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
100
101 #########################################
102 # HP
103 #########################################
104 sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8540w*
105 sensor:modalias:platform:lis3lv02d:dmi:*svn*Hewlett-Packard*:*pn*HPEliteBook8560w*
106   ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 0, -1; 0, 1, 0
107
108 sensor:modalias:acpi:SMO8500*:dmi:*:svnHewlett-Packard:pnHPStream7Tablet:*
109   ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
110
111 #########################################
112 # I.T.Works
113 #########################################
114
115 # The I.T.Works TW891 2-in-1's DMI has the product-name field set, but not
116 # the sys-vendor field. This makes the DMI data a bit generic, so we match
117 # the whole dmi modalias, except for the BIOS version/date
118 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.:
119  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
120
121 #########################################
122 # Jumper
123 #########################################
124
125 # EZpad mini 3
126 sensor:modalias:acpi:BOSC0200*:dmi:bvnINSYDECorp.:bvrjumperx.T87.KFBNEE*
127  ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 1
128
129 #########################################
130 # Lamina
131 #########################################
132 sensor:modalias:acpi:SMO8500*:dmi:*svnLamina*:*pnT701BR.SE*
133  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
134
135 sensor:modalias:acpi:KIOX000A*:dmi:*svnLAMINA:pnT-1016BNORD*
136  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
137
138 #########################################
139 # Lenovo
140 #########################################
141 sensor:modalias:acpi:NCPE0388*:dmi:*:rnLenovoYOGA510-14IKB:*
142  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
143
144 #########################################
145 # Peaq
146 #########################################
147 sensor:modalias:acpi:SMO8500*:dmi:*:svnPEAQ:pnPEAQPMMC1010MD99187:*
148  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
149
150 #########################################
151 # Pipo
152 #########################################
153 sensor:modalias:acpi:KIOX000A*:dmi:*:svnPIPO:pnW2S:*
154  ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1
155
156 #########################################
157 # Ployer
158 #########################################
159 sensor:modalias:acpi:BMA250E*:dmi:*:svnShenzhenPLOYER*:pnMOMO7W:*
160  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
161
162 #########################################
163 # Point of View
164 #########################################
165
166 # The Point of View TAB-P800W does not have its product name filled, so we
167 # match the entire dmi-alias, assuming that the use of a BMA250E +
168 # bios-version + bios-date combo is unique
169 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.:
170  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
171
172 #########################################
173 # Trekstor
174 #########################################
175 sensor:modalias:acpi:BMA250*:dmi:*:bvrTREK.G.WI71C.JGBMRBA*:*:svnInsyde:pnST70416-6:*
176  ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1
177
178 #########################################
179 # Cytrix (Mytrix)
180 #########################################
181 sensor:modalias:acpi:*KIOX000A*:dmi:*svn*CytrixTechnology:*pn*Complex11t*
182  ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
183