Failed wakeup: dim screen breaks auto suspend - Fedora 41, kernel 6.13.5

About 3 months ago I noticed a problem that I can’t wake up my laptop. Probably it caused by installing Nvidia drivers from RPM Fusion:

  • akmod-nvidia
  • xorg-x11-drv-nvidia-cuda

I removed these packages, but it seems to have no effect on the problem.

Solved!
Eventually I found out that it was not enough to just uninstall those particular packages. I had to uninstall all the Nvidia packages:

sudo dnf remove akmod-nvidia xorg-x11-drv-nvidia-cuda 'nvidia*'

This solved the problem. But I would appreciate and test any suggestions, ideas how this problem could be tackled without removing these packages.

I’ve done several different experiments, and it turns out that the problem only occurs when a laptop with a dimmed screen is supposed to automatically suspend (after 15 minutes of inactivity).

  • If I directly click the “Suspend” option in the “Power Off” menu, it goes into suspend mode and can be woken up as usual without any problems.
  • If the Dim Screen option is turned off, the laptop goes into automatic suspend mode and could also be woken up as usual without any problems.
  • If I move the mouse or type on the keyboard when the screen is already off, but before it goes to suspend mode, the system also works normally. This might be obvious, but I had to mention it.

When my laptop goes into suspended mode (normally), its cooling fans stop working, and the power button changes from solid to blinking.

If the screen is dimmed and 30 seconds remain before the laptop goes into suspend mode, the cooling fans will start up and run more loudly. This will continue until I turn the laptop off. During this time, the power button also keeps the light on.

Current System (inxi -Fzxx)

System:
  Kernel: 6.13.5-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
  Desktop: GNOME v: 47.4 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 41 (Forty One)
Machine:
  Type: Laptop System: HP product: HP ZBook Studio G3 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 80D4 v: KBC Version 11.75 serial: <superuser required>
    part-nu: T6E17UTR UEFI: HP v: N82 Ver. 01.62 date: 03/15/2024
Battery:
  ID-1: BAT0 charge: 55.8 Wh (95.5%) condition: 58.4/63.1 Wh (92.6%)
    volts: 16.5 min: 15.2 model: Hewlett-Packard Primary serial: <filter>
    status: not charging
  Device-1: hidpp_battery_2 model: Logitech Wireless Mouse MX Master 3
    serial: <filter> charge: 55% (should be ignored) status: discharging
CPU:
  Info: quad core model: Intel Core i7-6700HQ bits: 64 type: MT MCP
    arch: Skylake-S rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 800 min/max: 800/3500 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800 bogomips: 41599
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel HD Graphics 530 vendor: Hewlett-Packard driver: i915
    v: kernel arch: Gen-9 ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1,
    HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:191b
  Device-2: NVIDIA GM107GLM [Quadro M1000M] vendor: Hewlett-Packard
    driver: nvidia v: 570.86.16 arch: Maxwell pcie: speed: 8 GT/s lanes: 16
    ports: active: none off: DP-3,DP-4 empty: none bus-ID: 01:00.0
    chip-ID: 10de:13b1
  Device-3: Cheng Uei Precision Industry (Foxlink) HP HD Camera
    driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-7:2
    chip-ID: 05c8:0383
  Display: wayland server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6
    compositor: gnome-shell driver: gpu: i915,nvidia,nvidia-nvswitch
    display-ID: 0
  Monitor-1: DP-3 model: Dell U3419W res: 3440x1440 dpi: 109
    diag: 867mm (34.1")
  Monitor-2: DP-4 model: Dell U3421WE res: 3440x1440 dpi: 109
    diag: 867mm (34.1")
  Monitor-3: eDP-1 model: BOE Display 0x06fc res: 3840x2160 dpi: 283
    diag: 396mm (15.6")
  API: OpenGL v: 4.6 vendor: intel mesa v: 25.0.0 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: Mesa Intel HD Graphics 530 (SKL GT2)
    device-ID: 8086:191b display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo gpu: nvidia-settings x11: xdriinfo, xdpyinfo,
    xprop, xrandr
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
    chip-ID: 8086:a170
  Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX]
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fbc
  API: ALSA v: k6.13.5-200.fc41.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Intel Ethernet I219-LM vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b7
  IF: enp0s31f6 state: down mac: <filter>
  Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel pcie:
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:24f3
  IF: wlp3s0 state: up mac: <filter>
  Device-3: Realtek RTL8153 Gigabit Ethernet Adapter driver: r8152 type: USB
    rev: 3.0 speed: 5 Gb/s lanes: 1 bus-ID: 4-2.6:3 chip-ID: 0bda:8153
  IF: enp59s0u2u6 state: down mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-12:3 chip-ID: 8087:0a2b
  Report: btmgmt ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 4.2
    lmp-v: 8
Drives:
  Local Storage: total: 1.82 TiB used: 612.28 GiB (32.9%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 960 EVO 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 25.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
Partition:
  ID-1: / size: 913.3 GiB used: 612.17 GiB (67.0%) fs: btrfs dev: /dev/dm-0
    mapped: luks-d569a5ef-8996-4c42-ab0a-aab25e712dfd
  ID-2: /boot/efi size: 1024 MiB used: 118.6 MiB (11.6%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 913.3 GiB used: 612.17 GiB (67.0%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-d569a5ef-8996-4c42-ab0a-aab25e712dfd
  ID-4: /opt size: 913.3 GiB used: 612.17 GiB (67.0%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-d569a5ef-8996-4c42-ab0a-aab25e712dfd
  ID-5: /var/log size: 913.3 GiB used: 612.17 GiB (67.0%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-d569a5ef-8996-4c42-ab0a-aab25e712dfd
  ID-6: /var/tmp size: 913.3 GiB used: 612.17 GiB (67.0%) fs: btrfs
    dev: /dev/dm-0 mapped: luks-d569a5ef-8996-4c42-ab0a-aab25e712dfd
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 31.2 MiB (0.4%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme1n1p3
Sensors:
  System Temperatures: cpu: 54.0 C pch: 48.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.46 GiB used: 6.59 GiB (42.6%)
  Processes: 387 Power: uptime: 1h 1m wakeups: 2 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 54
    Compilers: gcc: 14.2.1 Shell: Zsh v: 5.9 running-in: tmux: inxi: 3.3.37

Failing

Approximate timeline:

  • 19:39:00 - me stopped moving mouse
  • 19:39:30 - dims screen a bit
  • 19:40:00 - screen turned off
  • 19:54:30 - coolers starts working harder
  • 19:56:00 - me trying to wake up system

Suspend Wake Up Fail Log

Success (screen dimming is off)

Approximate timeline:

  • 20:00 - me stopped moving mouse
  • 20:15 - starts transition to suspended mode
  • 20:16 - suspended
  • 20:30 - me waking up system

Suspend Wake Up Success Log

suspend-resume gnome wayland nvidia