]>
Commit | Line | Data |
---|---|---|
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 | |
baf5e653 | 18 | # udevadm trigger -y `dirname $(udevadm info -n "/dev/iio:deviceXXX" -q path)` |
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 | # |
1f886b50 BN |
41 | # |
42 | # Sort by brand, model | |
43 | ||
e8e4f5d9 GB |
44 | ######################################### |
45 | # AsusTek | |
46 | ######################################### | |
47 | sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB* | |
48 | ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 0 | |
49 | ||
ebf482e7 DD |
50 | ######################################### |
51 | # Endless | |
52 | ######################################### | |
53 | sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3* | |
54 | ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0 | |
55 | ||
1f886b50 BN |
56 | ######################################### |
57 | # Winbook | |
58 | ######################################### | |
59 | sensor:modalias:acpi:BMA250*:dmi:*svn*WinBook*:*pn*TW100* | |
60 | ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 0 |