Amdgpu can't return from monitor sleep and cant suspend

if pc is inactive and screen sleeps or i try to enter suspend as i understand my pc crashes.
monitors are off and cant return, same with keyboard and mouse. only pc reset helps.
i have 6500xt gpu, with nvidia 3060ti sleep is working.
I wanna fix this problem with 6500xt gpu.
same problem was with 6500xt on windows, but with latest radeon drivers - no issue with that on windows…

maybe some1 had something like this and can help me?

System:
  Kernel: 6.5.6-300.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-13.fc39 Desktop: GNOME v: 45.0 Distro: Fedora release 39 (Thirty
    Nine)
Machine:
  Type: Desktop System: LENOVO product: 90RC000RMW v: Legion T5 26AMR5
    serial: <filter>
  Mobo: LENOVO model: 3716 v: SDK0J40700 WIN 3258191368799 serial: <filter>
    UEFI: LENOVO v: O4MKT2EA date: 03/01/2023
Memory:
  System RAM: total: 32 GiB available: 31.19 GiB used: 4.71 GiB (15.1%)
  Array-1: capacity: 64 GiB slots: 4 modules: 4 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: DIMM 0 type: DDR4 size: 8 GiB speed: 3200 MT/s
  Device-2: DIMM 1 type: DDR4 size: 8 GiB speed: 3200 MT/s
  Device-3: DIMM 0 type: DDR4 size: 8 GiB speed: 3200 MT/s
  Device-4: DIMM 1 type: DDR4 size: 8 GiB speed: 3200 MT/s
CPU:
  Info: 6-core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2
    rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 32 MiB
  Speed (MHz): avg: 2433 high: 3600 min/max: 2200/4208 boost: enabled cores:
    1: 2200 2: 3600 3: 2200 4: 2200 5: 2200 6: 3600 7: 2200 8: 2200 9: 2200
    10: 2200 11: 2200 12: 2200 bogomips: 86235
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 24 [Radeon RX 6400/6500 XT/6500M]
    vendor: Tul / PowerColor driver: amdgpu v: kernel arch: RDNA-2
    bus-ID: 08:00.0
  Display: server: X.Org v: 1.20.14 with: Xwayland v: 23.2.1 driver: X:
    loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi
    gpu: amdgpu resolution: 1: 3440x1440 2: 1920x1080~60Hz
  API: OpenGL v: 4.6 Mesa 23.2.1 renderer: AMD Radeon RX 6500 XT (navi24
    LLVM 16.0.6 DRM 3.54 6.5.6-300.fc39.x86_64) direct-render: Yes
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel
    bus-ID: 08:00.1
  Device-2: AMD Starship/Matisse HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 0a:00.4
  Device-3: ROCCAT Juke driver: hid-generic,snd-usb-audio,usbhid type: USB
    bus-ID: 1-1:4
  API: ALSA v: k6.5.6-300.fc39.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.80 status: n/a (root, process)
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 04:00.0
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel port: f000 bus-ID: 05:00.0
  IF: enp5s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB
    bus-ID: 1-10:3
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: N/A
Drives:
  Local Storage: total: 942.7 GiB used: 7.65 GiB (0.8%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-000L7
    size: 476.94 GiB temp: 36.9 C
  ID-2: /dev/sda vendor: Samsung model: SSD 860 EVO 500GB size: 465.76 GiB
    temp: 31 C
Partition:
  ID-1: / size: 475.35 GiB used: 7.3 GiB (1.5%) fs: btrfs dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 345 MiB (35.4%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 7.3 GiB (1.5%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 49.1 C mobo: N/A gpu: amdgpu temp: 55.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Processes: 411 Uptime: 1h 39m Init: systemd target: graphical (5)
  Compilers: N/A Packages: N/A note: see --rpm Shell: Sudo v: 1.9.14p3
  inxi: 3.3.29

also befor screen goes to sleep or pc goes to suspend i got this error

1 Like

I haven’t seen the issue. But I once saw someone report something that might be similar:

… [had] problems coming back from suspend. It resumes but the screen is black. It turns out it successfully suspended but it takes a VT switch and back to Alt-F2 to display the desktop again.

Does switching VTs make the monitors come back on? (i.e. Ctrl+Alt+F3 followed by Ctrl+Alt+F2)

thaks for replay, Gregory.
But as I mansioned - whole pc crashes - keyboard are unresponsible. BT keyboard is blinking and searching where to connect, same is with wired keyboard - keyboard is like turned off…

Possibly try to use fwupdmgr to make sure your firmware is up to date. Try possibly fwupdmgr get-updates.

sadly, but no updates available…

If the problem is in the driver, then you might have to wait until a kernel update comes along that fixes the problem. Short of that, workarounds you might try include:

  1. Fiddling with the parameters to the amdgpu driver to see if you can find some setting that works for you.
  2. Disable the system’s automatic suspend and use that old-fashioned manual power button on your monitor.

who makes you think, that this going to happen?
what i starting to think, that im unlucky with my gpu. and i dont wanna come back to nvidia :smiley:

Has this problem just started since upgrading to Fedora Linux 39? You could install an older kernel from a previous Fedora Linux release with something like, e.g., dnf downgrade --releasever=38 kernel. That won’t remove your current kernel because Fedora Linux defaults to keeping three of them installed. But if you think it might work with older kernels, that is an option. (You’ll have to reboot and manually select the older kernel after you install it of course.)

Also, 6.5.6-300.fc39.x86_64 was released on 2023-10-06. It looks like kernel-6.5.9-300.fc39.x86_64 is available now. You have tried the newer kernels right?