Sometimes when my computer is on sleep or hibernate, it will randomly wake up. Is there a way to know what caused this?
Using Linux Mint 20, but I guess the answer isn't necessarily Mint specific.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
The motherboard / BIOS are responsible for powering on a machine. There's not many things that will trigger a motherboard to power on. I would try checking your BIOS settings to see what's enabled.
The events that are common for power on are:
Turning the power on when power restored can be semi-random (in rare cases) as you describe. If your mains power dips for any reason then this will trigger your PC to start up. It may not be obvious that the power has dipped enough, other equipment may not even notice it happened
I saw this happen once where a whole computer room would randomly turn itself on, but always around 7am. It turned out the factory across the road turned all it's heavy machinery on around that time and pulled the mains voltage down just enough to trigger the PCs.