From baf5e6537126692519becb4f7ad993ad26a64f1c Mon Sep 17 00:00:00 2001 From: M0Rf30 Date: Sat, 28 Jan 2017 13:49:40 +0100 Subject: [PATCH 1/3] hwdb: use -y option to udevadm trigger to correctly do sysname-match --- hwdb/60-sensor.hwdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index 3160cf77e8..a5f20ab078 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -15,7 +15,7 @@ # /etc/udev/hwdb.d/61-sensor-local.hwdb # and add your rules there. To load the new rules execute (as root): # systemd-hwdb update -# udevadm trigger `dirname $(udevadm info -n "/dev/iio:deviceXXX" -q path)` +# udevadm trigger -y `dirname $(udevadm info -n "/dev/iio:deviceXXX" -q path)` # where /dev/iio:deviceXXX is the device in question. # # If your changes are generally applicable, preferably send them as a pull From 6472f5f97f2ea4ac7e3084481dc7bc53de41926e Mon Sep 17 00:00:00 2001 From: M0Rf30 Date: Sat, 28 Jan 2017 23:48:15 +0100 Subject: [PATCH 2/3] hwdb: references added to hwdb rules format, needed to write syntax-correctly rules --- hwdb/60-sensor.hwdb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index a5f20ab078..6050dde1d3 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -25,6 +25,9 @@ # include your new rules, a description of the device, and the output of # udevadm info --export-db # +# For hwdb format and systemd behavior: +# https://www.freedesktop.org/software/systemd/man/hwdb.html +# # Allowed properties are: # ACCEL_MOUNT_MATRIX= # @@ -34,7 +37,7 @@ # eg. the identity matrix. # # [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfc57732ad38f93ae6232a3b4e64fd077383a0f1 - +# # # Sort by brand, model From e8e4f5d970e79d7d76bb2938bd5ddf135a559426 Mon Sep 17 00:00:00 2001 From: M0Rf30 Date: Sat, 28 Jan 2017 23:48:55 +0100 Subject: [PATCH 3/3] hwdb: Asus TP500LB accelerometer support --- hwdb/60-sensor.hwdb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hwdb/60-sensor.hwdb b/hwdb/60-sensor.hwdb index 6050dde1d3..fcbdcabf30 100644 --- a/hwdb/60-sensor.hwdb +++ b/hwdb/60-sensor.hwdb @@ -41,6 +41,12 @@ # # Sort by brand, model +######################################### +# AsusTek +######################################### +sensor:modalias:acpi:SMO8500*:dmi:*svn*ASUSTeK*:*pn*TP500LB* + ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 0 + ######################################### # Winbook #########################################