我正在使用 Lubuntu 20.04.3。尝试禁用唤醒(USB)鼠标(实际上,我只会保留电源按钮和盖子),我发现
$ grep . /sys/bus/usb/devices/*/product
/sys/bus/usb/devices/1-3/product:USB2.0-CRW
/sys/bus/usb/devices/2-4/product:TOSHIBA Web Camera - HD
/sys/bus/usb/devices/6-2/product:USB Receiver
/sys/bus/usb/devices/usb1/product:EHCI Host Controller
/sys/bus/usb/devices/usb2/product:EHCI Host Controller
/sys/bus/usb/devices/usb3/product:EHCI Host Controller
/sys/bus/usb/devices/usb4/product:OHCI PCI host controller
/sys/bus/usb/devices/usb5/product:OHCI PCI host controller
/sys/bus/usb/devices/usb6/product:OHCI PCI host controller
$ grep . /sys/bus/usb/devices/*/power/wakeup
/sys/bus/usb/devices/1-3/power/wakeup:disabled
/sys/bus/usb/devices/6-2/power/wakeup:disabled
/sys/bus/usb/devices/usb1/power/wakeup:disabled
/sys/bus/usb/devices/usb2/power/wakeup:disabled
/sys/bus/usb/devices/usb3/power/wakeup:disabled
/sys/bus/usb/devices/usb4/power/wakeup:disabled
/sys/bus/usb/devices/usb5/power/wakeup:disabled
/sys/bus/usb/devices/usb6/power/wakeup:disabled
$ cat /proc/acpi/wakeup
Device S-state Status Sysfs node
PB6 S4 *disabled
SPB1 S5 *disabled pci:0000:00:15.1
SPB2 S4 *disabled
SPB3 S4 *disabled
OHC1 S3 *enabled pci:0000:00:12.0
OHC3 S3 *enabled pci:0000:00:16.0
EHC1 S3 *enabled pci:0000:00:12.2
EHC3 S3 *enabled pci:0000:00:16.2
XHC0 S3 *disabled
P2P S5 *disabled pci:0000:00:14.4
LID0 S4 *enabled platform:PNP0C0D:00
这些信息不是互相矛盾吗?
/sys/bus/usb/devices/*/power/wakeup
显示 中的所有物品disabled
,但/proc/acpi/wakeup
只显示一些enabled
(除了LID0
,我认为是盖子)。
我正在另一个系统中检查,结果是一样的
$ grep . /sys/bus/usb/devices/*/product
/sys/bus/usb/devices/1-1/product:2.4G Office Mouse
/sys/bus/usb/devices/1-8/product:Integrated Camera
/sys/bus/usb/devices/usb1/product:xHCI Host Controller
/sys/bus/usb/devices/usb2/product:xHCI Host Controller
$ grep . /sys/bus/usb/devices/*/power/wakeup
/sys/bus/usb/devices/1-14/power/wakeup:disabled
/sys/bus/usb/devices/1-1/power/wakeup:disabled
/sys/bus/usb/devices/1-9/power/wakeup:disabled
/sys/bus/usb/devices/usb1/power/wakeup:disabled
/sys/bus/usb/devices/usb2/power/wakeup:disabled
$ cat /proc/acpi/wakeup | grep enabled
PEG0 S4 *enabled pci:0000:00:01.0
XHC S3 *enabled pci:0000:00:14.0
RP08 S4 *enabled pci:0000:00:1c.7
RP09 S4 *enabled pci:0000:00:1d.0
SLPB S3 *enabled platform:PNP0C0E:00
LID S4 *enabled platform:PNP0C0D:00