有时计算机可以通过任何 USB 设备或打开盖子从挂起状态恢复

有时计算机可以通过任何 USB 设备或打开盖子从挂起状态恢复

我有一台戴尔 Venue 11 平板电脑,配有原装键盘/触控板。安装 LUbuntu 20.04 后,有时可以通过任意键或触控板从挂起状态恢复,有时可以通过打开盖子从挂起状态恢复,这会导致由于振动、过热和热保护系统关闭而导致在包中恢复。在以下链接中,打开盖子恢复后有 dmesg 输出。挂起期间似乎有很多 mmc1 sdhci 错误:

[https://drive.google.com/drive/folders/1fPSDkfeanu1c9SoKmRVrlERT5QyoxbQy?usp=sharing][1]

平板电脑配置为仅通过电源按钮(PNP0C0C:00)从挂起状态恢复。

/etc/rc.local:

#!/bin/bash
for f in /sys/bus/*/devices/*/power/wakeup
do
    echo disabled > $f
done
sleep 1
echo enabled > /sys/bus/acpi/devices/PNP0C0C:00/power/wakeup
echo enabled > /sys/bus/platform/devices/INT33D6:00/power/wakeup
echo enabled > /sys/bus/platform/devices/PNP0C0C:00/power/wakeup
exit 0

配置记录成功:

:~$ for f in /sys/bus/*/devices/*/power/wakeup; do echo $f; cat $f; done
/sys/bus/acpi/devices/PNP0C0A:00/power/wakeup
disabled
/sys/bus/acpi/devices/PNP0C0A:01/power/wakeup
disabled
/sys/bus/acpi/devices/PNP0C0C:00/power/wakeup
enabled
/sys/bus/acpi/devices/PNP0C0D:00/power/wakeup
disabled
/sys/bus/pci/devices/0000:00:14.0/power/wakeup
disabled
/sys/bus/pci/devices/0000:00:16.0/power/wakeup
disabled
/sys/bus/pci/devices/0000:00:1b.0/power/wakeup
disabled
/sys/bus/pci/devices/0000:00:1c.0/power/wakeup
disabled
/sys/bus/pci/devices/0000:00:1c.3/power/wakeup
disabled
/sys/bus/pci/devices/0000:00:1f.2/power/wakeup
disabled
/sys/bus/pci/devices/0000:01:00.0/power/wakeup
disabled
/sys/bus/pci/devices/0000:02:00.0/power/wakeup
disabled
/sys/bus/platform/devices/alarmtimer.0.auto/power/wakeup
disabled
/sys/bus/platform/devices/INT33D6:00/power/wakeup
enabled
/sys/bus/platform/devices/PNP0C0C:00/power/wakeup
enabled
/sys/bus/platform/devices/PNP0C0D:00/power/wakeup
disabled
/sys/bus/pnp/devices/00:02/power/wakeup
disabled
/sys/bus/serio/devices/serio0/power/wakeup
disabled
/sys/bus/usb/devices/1-2.1.1.2/power/wakeup
disabled
/sys/bus/usb/devices/1-2.1.1.3/power/wakeup
disabled
/sys/bus/usb/devices/1-2.1.1/power/wakeup
disabled
/sys/bus/usb/devices/1-2.1/power/wakeup
disabled
/sys/bus/usb/devices/1-2/power/wakeup
disabled
/sys/bus/usb/devices/1-4/power/wakeup
disabled
/sys/bus/usb/devices/2-2.1.1.4/power/wakeup
disabled
/sys/bus/usb/devices/2-2.1.1/power/wakeup
disabled
/sys/bus/usb/devices/2-2.1/power/wakeup
disabled
/sys/bus/usb/devices/2-2/power/wakeup
disabled
/sys/bus/usb/devices/usb1/power/wakeup
disabled
/sys/bus/usb/devices/usb2/power/wakeup
disabled

我尝试禁用 INT33D6:00。之后系统无法唤醒。

如何配置系统仅通过电源按钮恢复?

答案1

唯一成功的解决方案是在挂起之前解除 USB 控制器的绑定。请参阅答案 1如何为处于暂停状态的设备设置 S3/S4 状态

对我来说,它无法在 LUbuntu 18.04 上运行。但它在 LUbuntu 20.04 上成功运行。此外,它解决了 USB 以太网控制器的问题,该控制器在恢复后无法恢复连接。只有一个缺点 - 恢复需要大约 4-5 秒来重新初始化 USB(两个带有大量外围设备的 USB 集线器)。

相关内容