You are not logged in.

#26 2023-10-14 11:49:06

DinoNugget1337
Member
Registered: 2023-09-28
Posts: 34

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

So 6.6-rc4/rc5 fixed it for everyone? I'm on rc5 now and still have this issue. I begin to think that for me this is an arch specific issue as I'm only experiencing this on arch. Tried out opensuse and, like Linux Mint, that one is working correctly, even on 6.5.x kernels.

Last edited by DinoNugget1337 (2023-10-14 13:13:57)

Offline

#27 2023-10-14 19:25:00

progandy
Member
Registered: 2012-05-17
Posts: 5,199

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

DinoNugget1337 wrote:

So 6.6-rc4/rc5 fixed it for everyone? I'm on rc5 now and still have this issue. I begin to think that for me this is an arch specific issue as I'm only experiencing this on arch. Tried out opensuse and, like Linux Mint, that one is working correctly, even on 6.5.x kernels.

I'd guess this is completely unrelated, but I have some problems with my laptop freezing on suspend/poweroff (Radeon RX Vega M GL) with 6.5.7 and some earlier versions I could solve by blacklisting rtsx_pci and rtsx_pci_sdmmc (kernel module for my builtin sdcard reader). Some others had issues with the driver in earlier kernel versions as well (6.5.5 or so), but that was patched. I looks like the patch did not work for me, but I did not have time to debug further. If those kernel modules are loaded in your setup, maybe try to blacklist them:

lsmod | grep rtsx

https://lore.kernel.org/stable/5DHV0S.D … d687ce94a2
https://wiki.archlinux.org/title/Kernel … acklisting

Edit: opensuse and linux mint might have reverted the patch identified in the bug I linked.

Last edited by progandy (2023-10-14 19:32:11)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#28 2023-10-18 21:10:35

nedy
Member
Registered: 2023-10-18
Posts: 1

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

Mainboard: ASUS TUF B650-PLUS WIFI
CPU: AMD Ryzen 9 7900X3D
GPU: AMD Radeon 7800 XT

Kernel: 6.5.7-arch1-1

I use KDE Plasma with SDDM login manager.

Workaround: I noticed that if I logoff my user beforehand and press shutdown in the login screen, the computer shuts down / power off.

PS. I found a forum entry in garudalinux (Arch flavor), who fixed the issue with "linux-mainline" kernel. Haven't tried it yet.

Last edited by nedy (2023-10-18 21:37:15)

Offline

#29 2023-10-21 21:20:11

evilch3n
Member
Registered: 2020-04-12
Posts: 12

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

nedy wrote:

Mainboard: ASUS TUF B650-PLUS WIFI
CPU: AMD Ryzen 9 7900X3D
GPU: AMD Radeon 7800 XT

Kernel: 6.5.7-arch1-1

I use KDE Plasma with SDDM login manager.

Workaround: I noticed that if I logoff my user beforehand and press shutdown in the login screen, the computer shuts down / power off.

PS. I found a forum entry in garudalinux (Arch flavor), who fixed the issue with "linux-mainline" kernel. Haven't tried it yet.


yeah that was the first info i found before this thread, iam really really looking forward to 6.6 release! (didnt install RC because i dont wanna mess with that) i hope it will fix the problems... atleast the thread looks promising. i will 100% report back when kernel 6.6 is released.

Offline

#30 2023-10-31 15:34:28

ruffnekk
Member
Registered: 2023-10-25
Posts: 3

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

I am really looking forward to this discussion as I have the exact same problem with my 7800 XT!

Edit: I don't have this problem on my Fedora System, just Arch.

Last edited by ruffnekk (2023-10-31 15:46:08)

Offline

#31 2023-11-01 21:19:50

debellator
Member
From: Hamburg
Registered: 2012-07-23
Posts: 24

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

Last week I switched from a RX6600XT to a RX7700XT and recognized these shutdown / reboot issues as well. In 8 out of 10 shutdowns the computer restarted with a MCE error.

Yesterday I installed the 6.6 kernel from the testing repo and I did not have any issues so far.

Offline

#32 2023-11-04 18:03:31

dIQi
Member
Registered: 2023-11-04
Posts: 67

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

I'm in the same position.  Fortunately suspend is good.  To reboot / shutdown I'm logging out then...

https://wiki.archlinux.org/title/keyboa … el_(SysRq)

Offline

#33 2023-11-08 10:43:32

dIQi
Member
Registered: 2023-11-04
Posts: 67

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

Reinstalled last night using archlinux-2023.11.01-x86_64.iso, wouldn't reboot even though no graphical session had been started.  Same thing, fan spun up and hung

Offline

#34 2023-11-08 13:18:57

seth
Member
Registered: 2012-09-03
Posts: 51,324

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

@dIQi

To reboot / shutdown I'm logging out then...

After the logout you can shutdown the system regularily? Or do you have to rely on the sysrq?
Do you use SDDM?

Edit: also do you have an nvme?
Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Last edited by seth (2023-11-08 13:19:22)

Online

#35 2023-11-08 20:08:17

dIQi
Member
Registered: 2023-11-04
Posts: 67

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

I was previously using a nvme but this new install is on spinning mental.  Same result with both.  Is the disk type important here?

I'm currently using GDM but will be happy to try SDDM if it helps

journalctl -b

What I'm seeing is if I try and shutdown normally everything goes as planned until the moment when I expect the power to end, then the GPU fans spin up and it hangs until I hold the power button down

Offline

#36 2023-11-08 21:50:24

seth
Member
Registered: 2012-09-03
Posts: 51,324

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

The suggestion was that there're records for shutdown issues w/ SDDM (so no concern) and issues w/ libblockdev and some NVMEs. The latter are frequently troublesome b/c of APST.
There's still one in the system, so you want to try to disable that.

Nov 08 19:59:16 archlinux udisksd[1709]: Error probing device: Error sending ATA command IDENTIFY DEVICE to '/dev/sdb': Unexpected sense data returned:
                                         0000: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
                                         0010: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
                                          (g-io-error-quark, 0)

looks bad?
Also, likely unrelated but you've NM and systemd-networkd enabled. Pick one, disable the other.

when I expect the power to end, then the GPU fans spin up and it hangs

sudo journalctl -eb1

Does it say that the journal stopped?
Since you linked it: Does the sysrq (+o) power down the system?

The GPU fans likely spin up by default, not because the GPU heats up.
There're multiple reports for various NUCs not powering down - fixed by CMOS resets and firmware downgrades :\

Online

#37 2023-11-08 23:09:31

dIQi
Member
Registered: 2023-11-04
Posts: 67

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

sudo journalctl -eb1

Nov 08 00:36:42 archlinux systemd[1]: Reached target System Power Off.
Nov 08 00:36:42 archlinux systemd[1]: Shutting down.
Nov 08 00:36:42 archlinux systemd-journald[22]: Journal stopped

Anyway.... sysrq (+o) does power down the system and as the docs say

Whenever possible, it is recommended that you use these shortcuts instead of doing a hard shutdown (holding down the power button to completely power off the system

Last edited by dIQi (2023-11-08 23:59:09)

Offline

#38 2023-11-09 07:07:00

seth
Member
Registered: 2012-09-03
Posts: 51,324

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

sysrq (+o) does power down the system

From the stall or out of the session?

Can you reboot? Can you reboot/power-off with either of

reboot=bios
reboot=acpi
reboot=kbd
reboot=triple
reboot=efi
reboot=pci

https://wiki.archlinux.org/title/Kernel_parameters

Online

#39 2023-11-09 11:19:43

evilch3n
Member
Registered: 2020-04-12
Posts: 12

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

so 6.6 finally left the testing repos and i installed it yesterday... SADLY the system still reboots after a shutdown iam very very sad - waited soooo long for the new kernel

if anyone has some more ideas please let me know

@seth i know you are talking to qIQi but should i try some of those reboot kernel-parameters too or is it a different topic?

Offline

#40 2023-11-09 13:43:20

seth
Member
Registered: 2012-09-03
Posts: 51,324

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

It's not gonna hurt and youalso want to check whether you can power down the system w/ the sysrq
In doubt

echo 1 > /proc/sys/kernel/sysrq
echo 'reisuo' > /proc/sysrq-trigger # "reisub" would be expected to reboot

Though I'm not sure this is a software issue in your case, can you eg. shutdown the system from the install iso or grml?

Online

#41 2023-11-10 00:33:21

dIQi
Member
Registered: 2023-11-04
Posts: 67

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

Tried all 6 reboot=, rebooted 6 times and get the same result as without, doesn't shutdown

sysrq (+o) only powers off the system if it's not in the hung state.  If it's hung then the keyboard is dead, capslock light doesn't work etc

Last edited by dIQi (2023-11-10 00:40:15)

Offline

#42 2023-11-10 01:40:58

tuxfever
Member
Registered: 2023-11-10
Posts: 2

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

I can confirm the problem on my machine aswell. I have an AMD RX 7800 XT paired with an i7 6700k. The linux-mainline kernel 6.6.0-rc6-1 fixed the issue for me. However with the linux-zen kernel 6.6.1, which arrived today in the official repositories, the issue is still present. I don't know if this indicates that some arch specific configuration in the linux kernel might cause this behavior. We could try compiling an older version of the linux kernel from kernel.org to confirm it, but I will first update the linux-mainline kernel to see if the issue is still not present in the current version. I will report back once I compiled the current version of linux-mainline again.

Offline

#43 2023-11-10 07:51:29

seth
Member
Registered: 2012-09-03
Posts: 51,324

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

sysrq (+o) only powers off the system if it's not in the hung state.  If it's hung then the keyboard is dead, capslock light doesn't work etc

ie. the system completely shuts down but doesn't power off - are there BIOS updates available (sorry if I asked that before)?
Can you take down the system in a less direct fashion?

echo 1 > /proc/sys/kernel/sysrq
echo 'reisuo' > /proc/sysrq-trigger

@tuxfever, linux-mainline != linux-zen, do other kernels (lts or the regular one) work for you?
In case there's a misconception: the zen kernel isn't the kernel for AMDs zen platform, they both stole the word wink

Online

#44 2023-11-10 13:54:33

tuxfever
Member
Registered: 2023-11-10
Posts: 2

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

@seth The regular kernel does indeed not have the same issue. (Works like linux-mainline) I should have tested that beforehand. I unfortunately cannot test the lts kernel since it does not have support for the RX 7800XT yet. I did not install the zen kernel because of the zen platform though big_smile
@dIQi I just noticed that you are using GDM. Then I suppose you are also using the gnome desktop? I noticed some weird behavior with GDM. Sometimes the login would just fail and I would only have a black screen with a mouse cursor. My temporary solution without rebooting the machine was to go to a tty and just restart GDM using systemctl. Whenever this happened I was also unable to shutdown my PC successfully even with the linux-mainline kernel. I switched to KDE Plasma for that reason. Therefore I would definitely suggest trying out a different display manager like SDDM and different desktop environment.

Offline

#45 2023-11-10 15:17:34

evilch3n
Member
Registered: 2020-04-12
Posts: 12

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

echo 1 > /proc/sys/kernel/sysrq
echo 'reisuo' > /proc/sysrq-trigger

those commands wouldn't work even with sudo - always got no permission

i've tested those reboot kernel-params, sometimes the machine would shutdown properly but then it felt kinda random because without changing something the next shutdown would reboot again.

additionally i noticed i get the same MCE's when booting now from page-1 of this thread.

ontopic the kernel topic:  i also use the zen-kernel because i thought that would be a better choice after reading the kernel-wiki-entry. is it safe and easy just to install linux instead of linux-zen or maybe linux-mainline from AUR?

is there even a difference between the linux package and the AUR linux-mainline package now?

Offline

#46 2023-11-10 15:59:44

loqs
Member
Registered: 2014-03-06
Posts: 17,378

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

evilch3n wrote:
echo 1 > /proc/sys/kernel/sysrq
echo 'reisuo' > /proc/sysrq-trigger

those commands wouldn't work even with sudo - always got no permission

Because the redirection is performed by the current shell before sudo is invoked,  with only 'echo 1' being performed as root.

sudo sh -c 'echo 1 > /proc/sys/kernel/sysrq'

Offline

#47 2023-11-10 17:42:13

seth
Member
Registered: 2012-09-03
Posts: 51,324

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

is it safe and easy just to install linux instead of linux-zen or maybe linux-mainline from AUR?

It's safe, "linux" is "easy" (linux-mainline will require you to build the kernel) and you can actually install them next to the zen kernel, provided there's enough space on the boot partition
(You might have to update the bootloader config, you certainly will when using grub)

And b/c of tuxfever's findings you absolutely should - even if it wasn't easy.

A common pattern to write into privileged files from an unprivileged shell is

echo 1 | sudo tee /proc/sys/kernel/sysrq
echo 'reisuo' | sudo tee /proc/sysrq-trigger

Online

#48 2023-11-10 23:36:42

evilch3n
Member
Registered: 2020-04-12
Posts: 12

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

> And b/c of tuxfever's findings you absolutely should - even if it wasn't easy.

installed 6.6-1 arch (non-zen) no more MCE's or reboots yet tried a couple of times now. looks promising.

@loqs thanks for the explanation - learned something new smile

@seth as always big thanks

you guys are great

Offline

#49 2023-11-10 23:46:51

dIQi
Member
Registered: 2023-11-04
Posts: 67

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

tuxfever wrote:

@seth The regular kernel does indeed not have the same issue. (Works like linux-mainline) I should have tested that beforehand. I unfortunately cannot test the lts kernel since it does not have support for the RX 7800XT yet. I did not install the zen kernel because of the zen platform though big_smile
@dIQi I just noticed that you are using GDM. Then I suppose you are also using the gnome desktop? I noticed some weird behavior with GDM. Sometimes the login would just fail and I would only have a black screen with a mouse cursor. My temporary solution without rebooting the machine was to go to a tty and just restart GDM using systemctl. Whenever this happened I was also unable to shutdown my PC successfully even with the linux-mainline kernel. I switched to KDE Plasma for that reason. Therefore I would definitely suggest trying out a different display manager like SDDM and different desktop environment.

Apart from my other problem I've not had any other issues with the 7800 XT.  Although I consider the other problem to be pretty bad and have started to think that AMD have sold me a lump of iron

I'll try SDDM and KDE Plasma, thanks for the tip

Offline

#50 2023-11-11 21:19:55

dIQi
Member
Registered: 2023-11-04
Posts: 67

Re: Cannot Shutdown/poweroff with AMD Radeon 7800 XT, poweroff>rebootloop

Tried SDDM and KDE Plasma.  Still unable to restart / shutdown.  Same with SDDM and Openbox

Offline

Board footer

Powered by FluxBB