summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2021-01-19 14:59:42 +0100
committerBenjamin Berg <bberg@redhat.com>2021-01-20 22:14:23 +0100
commitb25e76eadab20948f280ab039ac8e941ba320d21 (patch)
treee338ab2e8bc1d95682118bb418b439525b34b5a3 /tools
parent84171ba17926c43b1aaabbcead8327824606cbf2 (diff)
downloadsystemd-b25e76eadab20948f280ab039ac8e941ba320d21.tar.gz
hwdb: Pull autosuspend rules from upstream libfprint
libfprint includes a list of known fingerprint readers that can be autosuspended. Upstream libfprint generates this file from the USB IDs registered to drivers and a list of well-known readers that are currently unsupported. Closes: #17663
Diffstat (limited to 'tools')
-rwxr-xr-xtools/autosuspend-update.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/autosuspend-update.sh b/tools/autosuspend-update.sh
index ce945f84f6..b037dd8d5a 100755
--- a/tools/autosuspend-update.sh
+++ b/tools/autosuspend-update.sh
@@ -4,4 +4,13 @@ set -eu
cd "$1"
(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
- | base64 -d > tools/chromiumos/gen_autosuspend_rules.py \ No newline at end of file
+ | base64 -d > tools/chromiumos/gen_autosuspend_rules.py
+
+(cat <<%EOF
+# This file is part of systemd.
+#
+# Rules to autosuspend known fingerprint readers (pulled from libfprint).
+#
+%EOF
+curl --fail -L 'https://gitlab.freedesktop.org/libfprint/libfprint/-/raw/master/data/autosuspend.hwdb') \
+ > hwdb.d/60-autosuspend-fingerprint-reader.hwdb