]> git.ipfire.org Git - thirdparty/systemd.git/blob - rules/61-autosuspend-manual.rules
dcc0405d1980445a6756a903b8aa52ed43f1f248
[thirdparty/systemd.git] / rules / 61-autosuspend-manual.rules
1 # This udev rule is for any devices that should enter automatic suspend
2 # but are not already included in generated rules from ChromeOS via
3 # tools/make-autosuspend-rules.py
4 #
5
6 ACTION!="add", GOTO="autosuspend_manual_end"
7 SUBSYSTEM!="usb", GOTO="autosuspend_manual_end"
8
9 SUBSYSTEM=="usb", GOTO="autosuspend_manual_usb"
10
11 # USB rules
12 LABEL="autosuspend_manual_usb"
13 GOTO="autosuspend_manual_end"
14
15 # Enable autosuspend
16 LABEL="autosuspend_manual_enable"
17 TEST=="power/control", ATTR{power/control}="auto", GOTO="autosuspend_manual_end"
18
19 LABEL="autosuspend_manual_end"
20