[Solved] amdgpu or dedicated in general stops working after resuming from susp 15 December 2023, 12:21:58 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 openrcdmesg 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 gpuif you need any other info i will try to deliver asap. Last Edit: 18 December 2023, 11:24:43 by Hitman
Re: amdgpu or dedicated gpu in general stops working after resuming from suspend Reply #1 – 16 December 2023, 14:32:41 Quote from: Jaroslav – on 15 December 2023, 12:21:58Recently, 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/PRIMEhttps://wiki.archlinux.org/title/AMDGPUhttps://wiki.gentoo.org/wiki/AMDGPU#Power_managementhttps://wiki.gentoo.org/wiki/AMDGPU#Test.2C_if_a_discrete_graphics_card_is_in_use
Re: amdgpu or dedicated gpu in general stops working after resuming from suspend Reply #2 – 16 December 2023, 21:10:59 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...