我想通过键盘或鼠标唤醒我的系统。这可以通过/proc/acpi/wakeup和一个简单的
echo DEVNAME > /proc/acpi/wakeup我的唤醒文件看起来像这样
Device S-state Status Sysfs node
---------------------------------------
1. P0P2 S4 *disabled pci:0000:00:01.0
2. P0P3 S4 *disabled
3. P0P1 S4 *disabled pci:0000:00:1e.0
4. UAR1 S4 *disabled pnp:00:0c
5. EUSB S4 *disabled pci:0000:00:1d.7
6. USBE S4 *disabled pci:0000:00:1a.7
7. P0P5 S4 *disabled
8. P0P6 S4 *disabled
9. P0P7 S4 *disabled
10. P0P8 S4 *disabled pci:0000:00:1c.4
11. P0P9 S4 *disabled pci:0000:00:1c.5
12. GBEC S4 *disabled
13. USB0 S4 *disabled pci:0000:00:1d.0
14. USB1 S4 *disabled pci:0000:00:1d.1
15. USB2 S4 *disabled pci:0000:00:1d.2
16. USB3 S4 *disabled
17. USB4 S4 *disabled pci:0000:00:1a.0
18. USB5 S4 *disabled pci:0000:00:1a.1
19. USB6 S4 *disabled pci:0000:00:1a.2
20. P0P4 S4 *disabled pci:0000:00:1c.0我的问题是:我如何才能找到哪个(USB)设备属于我的鼠标/键盘?到目前为止,我在lsusb上失败了,但也许我错过了正确的开关。
发布于 2012-07-21 15:21:44
grep `ls /dev/input/by-path/*-mouse |\
head -1 |\
cut -d- -f 3` /proc/acpi/wakeup |\
gawk '{print $1}'这将找到鼠标的输入设备,然后在/proc/acpi/wakeup中查找PCI ID,给出名称。实际上,您可以将该命令的输出重定向到/proc/acpi/wakeup,以便从该设备启用唤醒。
https://unix.stackexchange.com/questions/17633
复制相似问题