diff options
author | Mario Limonciello <superm1@gmail.com> | 2022-05-10 03:16:22 +0200 |
---|---|---|
committer | Mario Limonciello <superm1@gmail.com> | 2022-05-10 04:14:12 +0200 |
commit | fa9a43a6905187195c9e86a61a906647726c3e55 (patch) | |
tree | 2a7f4c1fb20b27ac40a9478a4a724ef7bb7db68e /rules.d | |
parent | Merge pull request #23321 from poettering/sockaddr-no-cast (diff) | |
download | systemd-fa9a43a6905187195c9e86a61a906647726c3e55.tar.xz systemd-fa9a43a6905187195c9e86a61a906647726c3e55.zip |
Add support to set autosuspend delay via hwdb
Diffstat (limited to 'rules.d')
-rw-r--r-- | rules.d/60-autosuspend.rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.d/60-autosuspend.rules b/rules.d/60-autosuspend.rules index 332d052caa..ce31a920ed 100644 --- a/rules.d/60-autosuspend.rules +++ b/rules.d/60-autosuspend.rules @@ -15,4 +15,8 @@ ENV{ID_AUTOSUSPEND}=="1", TEST=="power/control", \ ENV{ID_PERSIST}=="0", TEST=="power/persist", \ ATTR{power/persist}="0" +# Set up an autosuspend delay if hwdb say so +ENV{ID_AUTOSUSPEND_DELAY_MS}!="", TEST=="power/control", \ + ATTR{power/autosuspend_delay_ms}="$env{ID_AUTOSUSPEND_DELAY_MS}" + LABEL="autosuspend_end" |