Live data from Hacker News

I helped fix sleep-wake hangs on Linux with AMD GPUs

nyanpasu64.gitlab.io

121–130 of 218 posts

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#121
post #89

Earlier quoted context omitted.

My luck has been a little less good. Latest problem I'm having is the driver spamming my logs after waking from sleep with "[drm] scheduler comp_1.0.n is not ready, skipping" after "WARNING: CPU: 12 PID: 11871 at drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:100 generic_reg_update_ex+0x1d2/0x290 [amdgpu]" https://gitlab.freedesktop.org/drm/amd/-/issues/3911

I have something similar with dmesg spam and a possibly related issue, sadly: https://gitlab.freedesktop.org/drm/amd/-/issues/3790

Using an ICC profile per the last comment in that report didn't fix it for you?

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#122
post #107

Earlier quoted context omitted.

It’s much better on ARM. And their external monitor support is so much faster and reliable now. Having control over all their hardware has made a noticeable improvement.

This is not my experience. My M1 Pro MacBook has very strange issues with sound over HDMI. I usually need to reboot it when I connect it to my TV or media won't play if the sound is output over HDMI.

Same here on an M1. If you find a solution…

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#124
post #23

Earlier quoted context omitted.

Remarkable that it's 2025 and laptop sleep/suspend still doesn't work right on linux. I think the first time I encountered this was probably 15 years ago now?

If you have a modern machine with S0 sleep, which is "modern standby" it's very much solved. What it does is it pauses all userspace processes, disables all cores but one and keeps it running on the lowest frequency. The system stays "on" but all devices go in power-saving state which is good enough for days. So it's not really a problem unless you really wanna do deeper sleeps.

Another way to put it: nobody solved this problem, so the next move was to embrace never sleeping and market it as a feature.

Microsoft also went that route with the Surface line, it just never sleeps.

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#125
post #36

Earlier quoted context omitted.

Sleep & suspend doesn’t work on Windows either. Power control is the kind of stuff that benefits from very tight integration, and PCs just don’t have that. Firmware is seen by most vendors as a pure cost to minimize, so you get a fragmented market full of subcontractors delivering the bare minimum that is considered “working”. Manufacturers also know most people aren’t going to use a big part of the functions they’re…

Even Apple struggled to get it working perfectly in my experience across several models in the PPC/x86 era. Yes they are better(-ish) but when I had Apple laptops I'd still see weird sleep/wake issues in around 1 in every ~50 sleep/wake cycles. I also had one Apple laptop which had its battery going from 100% to 0% overnight during sleep requiring a cold start in the morning on a regular basis despite it being put to…

> Lenovo manages to do sleep/wake fine in Linux almost as well as Apple in my experience and I sleep/wake my Lenovo laptop regularly -- this is across two different models I have used so far (X1 and X390).

I'd rate my OpenBSD X1 as not terrible too. Not as smooth as MacBook but adequate.

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#126
post #108

Earlier quoted context omitted.

Are there issues in Windows? Sure but if you give me 100 laptops, 80% will do this right without any issue. Maybe 30% of those laptops will work right on any Linux distro without major fucking around with bullshit trying to make it work. Yes those numbers are made up but I have been running versions of Linux since Slackware in the 90s. I still have a desktop with an amd cpu and nvidia gpu that I can’t get to sleep/su…

Oh no, Windows Modern Standby is infamously terrible and unreliable. Here is a youtube video with millions of views explaining the problems in detail: https://youtu.be/OHKKcd3sx2c

Two years ago, that video was published.

Good thing it's all fixed now, eh! /s

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#127
post #47

Earlier quoted context omitted.

This space is problematic enough that you could reliably segfault 2017-2019 Intel MacBooks by closing the lid before unplugging HID peripherals, preventing suspend (and cooking it in your bag on the commute home). It also plagues Windows on custom PC builds, even when there are vendor drivers. Not every component plays nicely with suspend states, ASPM, C-sates, load line calibration, etc. And while often the capabili…

My custom-build desktop had an issue with the previous AM4 motherboard I had where if you told Windows to hibernate, the entire machine would shut down as normal, but then a few seconds later it'd wake back up by itself and unhibernate. I had to turn off the PSU power switch during those few moments to keep it in hibernate mode. New mobo and that's gone now. BIOS updates never helped. Really odd.

Probably no help to you now, but if someone has a Windows machine that keeps waking up by itself, you can see what triggered the wake by running

    powercfg /lastwake
in a command window as admin.

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#128

AMD GPU linux drivers are (were?) a nightmare in general, and this includes iGPUs in their processors. Sadly, I don't have the impression that AMD is actively working on fixing this. Just to make sure I'm not griping over something long fixed, I took a quick look and instantly found someone with a very similar issue to the one I ran into happening on a semi-recent kernel: https://community.amd.com/t5/pc-drivers-softw…

> It looks to me that if you want to have a working computer under Linux, it's worth the extra cost to avoid AMD. I think this is a rather hasty conclusion. The popular opinion is the opposite. If you want a working computer under Linux, it's worth it to avoid NVIDIA, especially for laptops. Sure, AMD are not perfect contributors to the kernel, but they are contributing more than NVIDIA[0]. NVIDIA has made some moves…

Are you using proprietary Nvidia drivers? They work flawlessly for me, even better than the AMD open source "mainline" kernel drivers.

Re: I helped fix sleep-wake hangs on Linux with AMD GPUs

#129
post #107

Earlier quoted context omitted.

It’s much better on ARM. And their external monitor support is so much faster and reliable now. Having control over all their hardware has made a noticeable improvement.

This is not my experience. My M1 Pro MacBook has very strange issues with sound over HDMI. I usually need to reboot it when I connect it to my TV or media won't play if the sound is output over HDMI.

Every time I turn on my M1 Max Mac I have to unplug and replug the HDMI but other than that the machine is a dream to use.
Post reply on HN