]> git.ipfire.org Git - thirdparty/systemd.git/commit
hwdb: Permit unsetting power/persist for USB devices
authorBenjamin Berg <bberg@redhat.com>
Wed, 15 Sep 2021 16:37:24 +0000 (18:37 +0200)
committerBenjamin Berg <bberg@redhat.com>
Tue, 21 Sep 2021 18:28:10 +0000 (20:28 +0200)
commitbd37360a210603cb2c27feb7602008c71ca2ab67
tree49dc751f33417e5e3dcc6e41739563f0048a0ef4
parent7e99216c1dde13097ffda370064dd29d4dfd87cb
hwdb: Permit unsetting power/persist for USB devices

The USB persist feature allows devices that can retain their state when
powered down to work across suspend/resume. This is in particular useful
for USB drives.

However, the persist feature can get in the way for devices that are
unable to retain their state when power is lost. An example of such
stateful devices are fingerprint readers where USB persist should be
disabled to ensure userspace can detect whether the USB device had a
power loss during system suspend.

This will initially be used by the libfprint autosuspend hwdb.

Closes: #20754
hwdb.d/60-autosuspend.hwdb
hwdb.d/parse_hwdb.py
rules.d/60-autosuspend.rules