Computer reboots after shutdown

Hi there,

Since i installed Garuda, i can't shutdown my computer properly. It shuts down, the PSU goes into standby mode (visible because my case LEDs and fans turn off), then immadiately turns back on.

Then, i can't even shut down the machine by pushing the power button, it always turns back on until i allow it to get to the login screen.
Then, shutting down from the login screen actually does work.

I have wake by PCI-e enabled in UEFI, and disabling it solves the issue.
However, and i need it enabled as i often use wake-on-lan to remotely boot my machine.

I tried logging off and then shutting down from the login screen, it doesn't work either.

The only way to shut down my machine properly appears to be doing it from the login screen, without ever opening a session.
=> It looks like something in my user session initialization is messing up with my hardware (possibly wake-on-lan ?) but i don't know how to dig deeper in this issue.

System:
Kernel: 6.2.6-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=9524c41d-7c0a-4cf5-8fb0-d3ae1cafffe9 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=b2ca9daf-41fe-4f98-b519-e2dd36230aa8 loglevel=3
Desktop: KDE Plasma v: 5.27.3 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
Mobo: ASUSTeK model: ROG STRIX B550-A GAMING v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 2803
date: 04/27/2022
CPU:
Info: model: AMD Ryzen 5 5600 bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 3524 high: 3601 min/max: 2200/4467 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3601 2: 3500
3: 3500 4: 3500 5: 3500 6: 3500 7: 3500 8: 3500 9: 3500 10: 3500 11: 3600
12: 3589 bogomips: 84004
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm)
built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-2
empty: DP-1,DP-3,HDMI-A-1 bus-ID: 0d:00.0 chip-ID: 1002:73df
class-ID: 0300
Device-2: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
bus-ID: 2-2.1:4 chip-ID: 046d:0825 class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
s-diag: 777mm (30.58")
Monitor-1: DP-2 mapped: DisplayPort-1 model: AOC Q3279WG5B
serial: <filter> built: 2017 res: 2560x1440 hz: 60 dpi: 90 gamma: 1.2
size: 725x428mm (28.54x16.85") diag: 842mm (33.1") ratio: 15:9 modes:
max: 2560x1440 min: 720x400
API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon RX 6700 XT (navi22
LLVM 15.0.7 DRM 3.49 6.2.6-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
bus-ID: 2-2.1:4 pcie: chip-ID: 046d:0825 gen: 4 speed: 16 GT/s
class-ID: 0102 serial: <filter> lanes: 16 bus-ID: 0d:00.1
chip-ID: 1002:ab28 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0f:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Logitech Webcam C270 type: USB driver: snd-usb-audio,uvcvideo
Device-4: ASUSTek STRIX SOUND CARD type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-1:2 chip-ID: 0b05:180d
class-ID: 0300
Sound API: ALSA v: k6.2.6-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.67 running: yes
Network:
Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: AzureWave driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 bus-ID: 07:00.0 chip-ID: 168c:0042 class-ID: 0280
IF: wlp7s0 state: down mac: <filter>
Device-2: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 0a:00.0
chip-ID: 8086:15f3 class-ID: 0200
IF: enp10s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: IMC Networks type: USB driver: btusb v: 0.8 bus-ID: 1-7.2:4
chip-ID: 13d3:3501 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 3.09 TiB used: 330.53 GiB (10.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 950 PRO 256GB
size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 2B0QBXX7 temp: 32.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:5 vendor: Kingston model: SNV2S500G
size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
lanes: 4 type: SSD serial: <filter> rev: ELFK0S.6 temp: 31.9 C scheme: GPT
ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DM001-1CH164
size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: CC26 scheme: GPT
ID-4: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT256MX100SSD1
size: 238.47 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: MU02
ID-5: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 840 PRO Series
size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
type: SSD serial: <filter> rev: 6B0Q
ID-6: /dev/sdd maj-min: 8:48 type: USB vendor: Generic
model: MassStorageClass size: 119.08 GiB block-size: physical: 512 B
logical: 512 B type: N/A serial: <filter> rev: 1536 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 457.65 GiB size: 457.65 GiB (100.00%)
used: 17.52 GiB (3.8%) fs: btrfs dev: /dev/nvme1n1p3 maj-min: 259:8
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:6
ID-3: /home raw-size: 457.65 GiB size: 457.65 GiB (100.00%)
used: 17.52 GiB (3.8%) fs: btrfs dev: /dev/nvme1n1p3 maj-min: 259:8
ID-4: /var/log raw-size: 457.65 GiB size: 457.65 GiB (100.00%)
used: 17.52 GiB (3.8%) fs: btrfs dev: /dev/nvme1n1p3 maj-min: 259:8
ID-5: /var/tmp raw-size: 457.65 GiB size: 457.65 GiB (100.00%)
used: 17.52 GiB (3.8%) fs: btrfs dev: /dev/nvme1n1p3 maj-min: 259:8
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme1n1p2 maj-min: 259:7
ID-2: swap-2 type: zram size: 31.23 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 46.0 C mobo: N/A gpu: amdgpu temp: 44.0 C
mem: 40.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:
Processes: 360 Uptime: 2m wakeups: 0 Memory: 31.23 GiB
used: 3.51 GiB (11.3%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1403
libs: 414 tools: octopi,pamac,paru pm: rpm pkgs: 0 Shell: fish v: 3.6.0
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.25
Garuda (2.6.15-1):
System install date:     2023-03-15
Last full system update: 2023-03-16
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       Probably (Run as root to verify)
Failed units:

This is a common motherboard bug which is exposed by enabling WoL. The relevant topic with suggested fixes is here: Wake-on-LAN - ArchWiki

Wake-up after shutdown

It is known that some motherboards are affected by a bug that can cause immediate or random wake-up after a shutdown whenever the BIOS WoL feature is enabled (as discussed in this thread for example).

Fix using BIOS Settings

The following actions in the BIOS preferences can solve this issue with some motherboards:

  1. Disable all references to xHCI in the USB settings (note this will also disable USB 3.0 at boot time)
  2. Disable EuP 2013 if it is explicitly an option
  3. Optionally enable wake-up on keyboard actions

Note: There are mixed opinions as to the value of #3 above and it may be motherboard dependent.

Fix by Kernel quirks

The issue can also be solved by adding the following kernel boot parameter: xhci_hcd.quirks=270336 This activates the following quirks:

  • XHCI_SPURIOUS_REBOOT
  • XHCI_SPURIOUS_WAKEUP
6 Likes

Thanks a lot, adding the kernel quirks option in /etc/default/grub seems to have done the trick.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.