Linux 阻止外设意外唤醒系统

cat cat /proc/acpi/wakeup
Device    S-state      Status   Sysfs node
P0P1      S4    *disabled
USB1      S3    *disabled
USB2      S3    *disabled
USB3      S3    *disabled
USB4      S3    *disabled
USB5      S3    *disabled
USB6      S3    *disabled
USB7      S3    *disabled
RP01      S4    *disabled  pci:0000:00:1c.0
RP04      S4    *disabled  pci:0000:00:1c.3
PEG0      S4    *disabled  pci:0000:00:01.0
PEGP      S4    *disabled  pci:0000:01:00.0
PEGA      S4    *disabled
PEG1      S4    *disabled
PEG2      S4    *disabled
PEG3      S4    *disabled
EHC1      S3    *enabled   pci:0000:00:1d.0
EHC2      S3    *enabled   pci:0000:00:1a.0
XHC      S4    *enabled   pci:0000:00:14.0
PWRB      S5    *enabled   platform:PNP0C0C:00

 

 

root [ /home/tmp/Desktop ]#  echo EHC1 disable > /proc/acpi/wakeup
root [ /home/tmp/Desktop ]#  echo EHC2 disable > /proc/acpi/wakeup
root [ /home/tmp/Desktop ]#  echo XHC disable > /proc/acpi/wakeup
root [ /home/tmp/Desktop ]# cat /proc/acpi/wakeup
Device    S-state      Status   Sysfs node
P0P1      S4    *disabled
USB1      S3    *disabled
USB2      S3    *disabled
USB3      S3    *disabled
USB4      S3    *disabled
USB5      S3    *disabled
USB6      S3    *disabled
USB7      S3    *disabled
RP01      S4    *disabled  pci:0000:00:1c.0
RP04      S4    *disabled  pci:0000:00:1c.3
PEG0      S4    *disabled  pci:0000:00:01.0
PEGP      S4    *disabled  pci:0000:01:00.0
PEGA      S4    *disabled
PEG1      S4    *disabled
PEG2      S4    *disabled
PEG3      S4    *disabled
EHC1      S3    *disabled  pci:0000:00:1d.0
EHC2      S3    *disabled  pci:0000:00:1a.0
XHC      S4    *disabled  pci:0000:00:14.0
PWRB      S5    *enabled   platform:PNP0C0C:00

发表评论

电子邮件地址不会被公开。 必填项已用*标注

跳至工具栏