summaryrefslogtreecommitdiff
path: root/hwdb.d
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-10 13:52:36 +0200
committerGitHub <noreply@github.com>2022-05-10 13:52:36 +0200
commit07b420a3b98f09e22804152def09f1b31e527be7 (patch)
treed156260a4f4ab16f582cea345edfb882fcff917e /hwdb.d
parent756491af392a99c4286d876b0041535e50df80ad (diff)
parentf32049eda3b06deaae3d6d7d06a9dfd16528c443 (diff)
downloadsystemd-07b420a3b98f09e22804152def09f1b31e527be7.tar.gz
Merge pull request #23329 from superm1/mlimonci/lg850-gl
Set auto-suspend delay on LG850-GL
Diffstat (limited to 'hwdb.d')
-rw-r--r--hwdb.d/60-autosuspend.hwdb11
-rwxr-xr-xhwdb.d/parse_hwdb.py1
2 files changed, 11 insertions, 1 deletions
diff --git a/hwdb.d/60-autosuspend.hwdb b/hwdb.d/60-autosuspend.hwdb
index 1b6c1e1c8f..07f7fa9344 100644
--- a/hwdb.d/60-autosuspend.hwdb
+++ b/hwdb.d/60-autosuspend.hwdb
@@ -24,8 +24,12 @@
#
# Allowed properties are:
# ID_AUTOSUSPEND=1
+# ID_AUTOSUSPEND_DELAY_MS=####
# ID_PERSIST=0
#
+# ID_AUTOSUSPEND_DELAY_MS adjusts the delay for autosuspend to something
+# different than the kernel default of 2000ms.
+#
# ID_PERSIST=0 allows disabling the kernels USB "persist" feature, which allows
# the continued use of devices after a power loss (due to suspend). Disable it
# if the device will loose state without a USB power session and the driver
@@ -71,13 +75,18 @@ usb:v0627p0001:*QEMU USB Tablet*
ID_AUTOSUSPEND=1
#########################################
-# Sierra Wireless
+# WWAN
#########################################
# Sierra Wireless EM7345 4G LTE modem
usb:v1199pA001*
ID_AUTOSUSPEND=1
+# Fibocom LG850-GL
+usb:v2CB7p0007*
+ ID_AUTOSUSPEND=1
+ ID_AUTOSUSPEND_DELAY_MS=7000
+
#########################################
# Wacom
#########################################
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
index 93179b675c..7bad559699 100755
--- a/hwdb.d/parse_hwdb.py
+++ b/hwdb.d/parse_hwdb.py
@@ -135,6 +135,7 @@ def property_grammar():
('MOUSE_WHEEL_CLICK_COUNT', INTEGER),
('MOUSE_WHEEL_CLICK_COUNT_HORIZONTAL', INTEGER),
('ID_AUTOSUSPEND', Or((Literal('0'), Literal('1')))),
+ ('ID_AUTOSUSPEND_DELAY_MS', INTEGER),
('ID_AV_PRODUCTION_CONTROLLER', Or((Literal('0'), Literal('1')))),
('ID_PERSIST', Or((Literal('0'), Literal('1')))),
('ID_PDA', Or((Literal('0'), Literal('1')))),