I see my computer wake up sometimes when I’m not using it.
After some searching its the devices in /proc/acpi/wakeup that are allowed to do this.
By echoing the “4-character device name” to /proc/acpi/wakeup you can enable/disable these.
(eg: $ echo USB1 | sudo tee /proc/acpi/wakeup to enable/disable USB1)
I would like an extra panel under Power Management, called “Wake-Up Events”
or something, so i can check and uncheck these.
Currently i have solved this issue with a systemd script, but it could be so much easier just in a nice tab
Thanks a lot
For those interested, these are my devices, i enabled only the power button. So no mouse click, keyboard touch or wlan/lan packet can wake it up. (see systemd script below, change accordingly for your own benefit)
This is interesting, as I have a similar problem sometimes: wakeup by USB is enabled in my BIOS, because I want to power on my system via keyboard.
This works well. But sometimes it will wakeup by mouse move as well.
This is a problem, as my roccat mouse is really sensitive and will wake the system if s. o. shakes my desk even slightly. I am not talking about me or other people, this would be no problem - but my robot vacuum cleaner wakes the system then!
Wakeup by mouse move definitely is not always enabled - I checked this manually. I don’t know why it is enabled sometimes, but mostly not.
BTT:
The output of cat /proc/acpi/wakeup lists USB controllers only for me and no USB devices:
THANK YOU!!! I've been struggling with this for far too long in another topic I started, and though I don't understand this solution it totally works. Unless you or someone corrects my dim understanding or offers a warning about the three password inputs required, I'm going to write it up in super basic language as a new post in Tips, Tricks and Tutorials with links back to this post and my post seeking solutions. This seems to be a chronic problem with a spectrum of suggested solutions that didn't seem to work for me in Ubuntu Mate 20.04.1 so hopefully it may help other newbies.
I don't know if you created that script or are just sharing it. Either way..THAAAANK YOU BIG @#$KING TIME!!
For YEARS with multiple hardware setups I have been bashing my head against a wall trying to figure out why my Linux distro installations would auto-turn on my PC after doing a complete shut down as I always do basically every night. I'd disable everything in bios talking about auto wake from the lan to usb, pci.etc, but never had this persistent problem in any version of Windows and that was one of the very first things that always made me do the boot-of-shame back to Windows
I've been on LM 20 Cinnamon since Late July 2020 and the problem persistent ..still with my Asrock z97m pro4 micro atx motherboard.
I can 100% confirm what you shared FINALLY worked for my system even though it's a Linux Mint and a different desktop environment as of tonight after doing 20 "shutdown -P now" via terminal to manually power off the PC, waiting at least 20 seconds ( given before it would auto power back on within 6 seconds or less of the fans completely stop spinning) between manually powering it back on via pressing the power button on my PC's case......20 times- rounds
You are AWESOME for sharing this! I have pasted this link in the linuxmintforums.com as a new post.