Edit for anybody who finds this post later: It was an Ubuntu specific issue. Swapping it for Fedora has allowed sleep to work perfectly. I suspect the Ubuntu kernels have an issue with certain motherboards.

So this is a problem I’ve had for a while, but I’ve finally decided I’m sick of it enough to see if anybody has any ideas.

Basically, I replaced my PCs motherboard and PSU to make them fit into a mini itx case so I’d have more space.

Ever since then, I’ve had an issue where putting my PC to sleep causes it to appear to sleep properly for a split second, all the lights and fans turning off. But then immediately after that, the lights and fans come back on as if it were trying to wake from sleep, except it just gets stuck like that, with no video output to the monitor, no audio output to the speakers, and unresponsive to any button presses. Even pressing and holding the power button does nothing.

I can restore it from this state by shutting off my power supply then immediately turning it back on. This results in the computer acting like I woke it up from sleep completely normally. Even the logs show no errors, saying that it went to sleep properly and that it woke up properly when I flicked the switch.

Weirdly, I had no issues having it sleep on Windows initially, displaying the expected behavior of all the fans and lights turning off and staying off, and coming back to life with video and audio when I tap the power button. This behavior started the first time I tried to put it to sleep in Ubuntu, where it did what I explained above. Since then, not even Windows will sleep properly anymore.

This behavior seems to exclusively happen when using suspend to ram. Hibernation works fine on Windows and Linux, as well as standby. As a result, I’ve been using those as a workaround.

My setup is the following:
Motherboard: Gigabyte a520i AC
PSU: Cooler Master v850 SFX
GPU: Radeon RX5700 XT (can’t remember the exact brand)
CPU: Ryzen 5 3500
RAM: 16 gigabytes. Corsair Vengeance sounds like the right one, but I don’t entirely remember.

Not sure if it’s important, but I’m also running an Samsung 970 Evo Plus NVME, a Samsung 860 Evo 2.5 inch SSD, some kind of western digital HDD, a Viotek monitor, and a wireless Logitech mouse and keyboard (which aren’t Bluetooth, they use receivers.) I’ve tested without the mouse and keyboard just in case though and the same behavior was exhibited.

Any help is appreciated. Even if nobody knows what’s going on, being a few steps closer to finally solving this would be nice. I’m posting this right before bed though, so I may not see any replies until tomorrow unless I end up too hyper focused on this to sleep.

EDIT: Issue was fixed on Windows by running “powercfg/a” to check sleep states, which shouldn’t have worked, so I think the windows issue was just a fluke since it didn’t start until Ubuntu started doing it.
Ubuntu’s still broken though. Nothing I do fixes it and I suspect there’s an incompatibility between it and my motherboard. Probably need to wait for a new kernel update that happens to fix it.

  • @jgkawell
    link
    English
    410 months ago

    I’ve had a similar issue before and it was wake-on-lan causing it. Disabling that feature (usually in the UEFI/BIOS) solved it.

    • @[email protected]OP
      link
      fedilink
      410 months ago

      Unfortunately, disabling wake on lane didn’t help the issue. It still won’t sleep properly. I think however that that solved a completely different issue I was having of my PC randomly turning on on occasion.

    • @bobsuruncle
      link
      English
      410 months ago

      That was my first thought too. Regardless it’s got to be uefi/bios related as it’s across OSes