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
42 # Sort by brand, model
44 #########################################
46 #########################################
47 sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB*
48 ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 0
50 #########################################
52 #########################################
53 sensor:modalias:acpi:ACCE0001*:dmi:*svnEndless*:*pnELT-NL3*
54 ACCEL_MOUNT_MATRIX=0, 1, 0; 0, 0, -1; -1, 0, 0
56 #########################################
58 #########################################
59 sensor:modalias:acpi:BMA250*:dmi:*svn*WinBook*:*pn*TW100*
60 ACCEL_MOUNT_MATRIX=0, -1, 0; -1, 0, 0; 0, 0, 0