Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [Solved] amdgpu or dedicated in general stops working after resuming from susp (Read 650 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[Solved] amdgpu or dedicated in general stops working after resuming from susp

Recently, being like a week ago, i changed my enviroment variables to force my latpop (Acer Aspire A515-45G SN: NXA8AEC004212180677600) to use its dedicated gpu (AMD Radeon Lexa 550x) instead of the integrated one (AMD lucienne from Ryzen 5 5500U). But after doing so i started having suspend issues - after resuming none of my programs that were using the dedicated gpu would work, they become unresponsive, and if i left them on the screen before suspend, they usually end up looking like a bunch colored noise. programs using the integrated gpu (e.g. my WM - dwm) are running fine. if i try to run something using that gpu entire computer freezes (cant switch to other terminal with ctrl+alt+f2,3 either).

other system info:
Artix linux with openrc

dmesg writes a bunch of errors, but looking online, i found issues mildly resembling mine that were solved, but never quite the same thing that i have. I attached a dmesg log, in it I put the pc to suspend[311.71], resumed[312.07], did cat /sys/kernel/debug/dri/1/amdgpu_gpu_recover [384.82], attempted suspend again, this time failing[406.11], then i tried running some software on the gpu[log end] (no log about the freeze).

I also attached lspci - of interest are 01:00.0 - dedicated gpu, 05:00.0 - integrated gpu

if you need any other info i will try to deliver asap.

Re: amdgpu or dedicated gpu in general stops working after resuming from suspend

Reply #1
Recently, being like a week ago, ...

You can leave out what has been changed, because you have already posted the most important information.

RTFM:

https://wiki.archlinux.org/title/PRIME
https://wiki.archlinux.org/title/AMDGPU
https://wiki.gentoo.org/wiki/AMDGPU#Power_management
https://wiki.gentoo.org/wiki/AMDGPU#Test.2C_if_a_discrete_graphics_card_is_in_use
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: amdgpu or dedicated gpu in general stops working after resuming from suspend

Reply #2
tldr.: the gentoo article about power management made me do a fresh search  for power management parameters, disabling runpm seems to have worked. (eg. setting amdgpu.runpm=0 as kernel parameter)

i seem to have several power management issues, before it was a problem with ssd disconnecting- i started to pay attention to this only after it broke my kernel and i switched to artix, cause might as well i thought. i obviously fixed that with disabling different powersaving feature. I already at that point gave up on the laptop battery (it would last only like 1.5h instead of advertised 5h lol like all laptops), i wish they just made them larger, like whats a few hundred grams extra, instead of hacking these half broken efi crap. but i guess its also a linux problem?

considering dmesg doesnt write out almost anything about the dedicated gpu, i assume its just idle when sleeping... (only pci config reset on resume)

anyways im off to edit the grub settings. oh and i guess i will mark this as hopefully solved...