Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1783  / 2 Years ago, wed, april 13, 2022, 7:13:34

I want to know if there is a command or program that shows the reason of the last wakeup from suspend.



In windows exists a builtin command which shows the last wakeup reason, for example the keyboard or mouse, or via WOL.



The thing is that it happened already 2 times to find my computer awake in the morning when I clearly put it to sleep at night.



/var/log/pm-suspend.log:




Tue Oct 22 23:50:24 EEST 2013: performing suspend
Wed Oct 23 08:24:11 EEST 2013: Awake.
Wed Oct 23 08:24:11 EEST 2013: Running hooks for resume




/var/log/syslog



dmesg



PS: Default 13.10 installation, WOL enabled, but I don't think this is a problem since I used WOL before (with Archlinux and SuSe) and it only woke when I told it to do so.


More From » 64-bit

 Answers
2

After investigating more, the fault was caused by my wireless mouse. If I put the computer into sleep and then moved the mouse, the computer would wake.



The solution was adding echo "disabled" > /sys/bus/usb/devices/3-7/power/wakeup in /etc/rc.local for it to run every time I power my computer.



That tells the usb port on which I have my EDR transmitter to disable the option of waking up via mouse.



Simple and clean.


[#28803] Friday, April 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rowbris

Total Points: 419
Total Questions: 122
Total Answers: 101

Location: Norway
Member since Mon, May 23, 2022
2 Years ago
;