F41 hangs on shutdown

My Fedora 41 KDE install can’t shut down properly. I’m stuck on the logo screen. I was able to turn it off and get a few pictures of the console.


I was able to figure out that this is likely caused by the NVIDIA drivers. I have the proprietary drivers installed (used this guide). Using EnvyControl I can switch to integrated graphics, which fixes the issue. Also, if I leave it in hybrid mode and turn off the integrated graphics in the UEFI, it also fixes the issue.

System:
  Kernel: 6.11.4-301.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.43.1-2.fc41
  Console: pty pts/2 Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Laptop System: LENOVO product: 82WS v: Legion Pro 7 16ARX8H
    serial: <filter>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T76461 WIN serial: <filter>
    UEFI: LENOVO v: LPCN52WW date: 05/21/2024
Battery:
  ID-1: BAT0 charge: 29.1 Wh (28.0%) condition: 103.8/99.9 Wh (103.9%)
    volts: 14.7 min: 15.5 model: SMP L22M4PC1 status: discharging
CPU:
  Info: 16-core model: AMD Ryzen 9 7945HX with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 4 rev: 2 cache: L1: 1024 KiB L2: 16 MiB L3: 64 MiB
  Speed (MHz): avg: 2935 min/max: 400/5461 boost: enabled cores: 1: 2935
    2: 2935 3: 2935 4: 2935 5: 2935 6: 2935 7: 2935 8: 2935 9: 2935 10: 2935
    11: 2935 12: 2935 13: 2935 14: 2935 15: 2935 16: 2935 17: 2935 18: 2935
    19: 2935 20: 2935 21: 2935 22: 2935 23: 2935 24: 2935 25: 2935 26: 2935
    27: 2935 28: 2935 29: 2935 30: 2935 31: 2935 32: 2935 bogomips: 159708
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA AD103M / GN21-X11 [GeForce RTX 4090 Laptop GPU]
    vendor: Lenovo driver: N/A arch: Lovelace bus-ID: 01:00.0
  Device-2: Advanced Micro Devices [AMD/ATI] Raphael vendor: Lenovo
    driver: amdgpu v: kernel arch: RDNA-2 bus-ID: 06:00.0 temp: 50.0 C
  Device-3: Luxvisions Innotech Integrated Camera driver: uvcvideo type: USB
    bus-ID: 3-2.4:3
  Display: unspecified server: X.Org v: 24.1.4 with: Xwayland v: 24.1.4
    driver: dri: radeonsi gpu: amdgpu resolution: 2560x1600~240Hz
  API: EGL v: 1.5 drivers: nvidia,radeonsi,swrast platforms:
    active: gbm,x11,surfaceless,device inactive: wayland,device-2
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 24.2.8 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon 610M (radeonsi raphael_mendocino
    LLVM 19.1.0 DRM 3.59 6.11.4-301.fc41.x86_64)
  API: Vulkan v: 1.3.296 drivers: N/A surfaces: xcb,xlib devices: 3
Audio:
  Device-1: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
    vendor: Lenovo driver: snd_rpl_pci_acp6x v: kernel bus-ID: 06:00.5
  Device-2: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 06:00.6
  API: ALSA v: k6.11.4-301.fc41.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: off
Network:
  Device-1: Realtek RTL8852CE PCIe 802.11ax Wireless Network vendor: Lenovo
    driver: rtw89_8852ce v: kernel port: 3000 bus-ID: 04:00.0
  IF: wlp4s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: 2000 bus-ID: 05:00.0
  IF: enp5s0 state: down mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-3: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB
    bus-ID: 5-1.1:3
  Report: btmgmt ID: hci0 rfk-id: 2 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
Drives:
  Local Storage: total: 1.84 TiB used: 28.68 GiB (1.5%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDKBA1T0TFH size: 953.87 GiB
    temp: 34.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 990 PRO 1TB size: 931.51 GiB
    temp: 36.9 C
Partition:
  ID-1: / size: 929.93 GiB used: 28.36 GiB (3.1%) fs: btrfs
    dev: /dev/nvme1n1p3
  ID-2: /boot size: 973.4 MiB used: 299 MiB (30.7%) fs: ext4
    dev: /dev/nvme1n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-4: /home size: 929.93 GiB used: 28.36 GiB (3.1%) fs: btrfs
    dev: /dev/nvme1n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.8 C mobo: N/A gpu: amdgpu temp: 50.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 64 GiB note: est. available: 61.98 GiB used: 6.19 GiB (10.0%)
  Processes: 592 Uptime: 11m Init: systemd target: graphical (5)
  Packages: 19 note: see --rpm Compilers: gcc: 14.2.1 Shell: Sudo
    v: 1.9.15p5 inxi: 3.3.36