Laptop's backlight stops working after sleep when on energy saving mode

Hello, I use Fedora 41 KDE, recently I noticed a problem where laptop’s backlight stops working after sleep when on energy saving mode. After waking up it starts bouncing between max and low brightness until it turns off. Turning on performance mode fixed the issue but I feel that is the workaround and there should be a permanent solution.

inxi -Fzxx
System:
  Kernel: 6.12.8-200.fc41.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.43.1-5.fc41
  Desktop: KDE Plasma v: 6.2.5 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: Fedora Linux 41 (KDE Plasma)
Machine:
  Type: Laptop System: HP product: OMEN by HP Laptop 16-c0xxx v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 8912 v: 89.62 serial: <superuser required>
    part-nu: 491L8EA#ACB UEFI: AMI v: F.20 date: 03/16/2023
Battery:
  ID-1: BAT0 charge: 72.0 Wh (100.0%) condition: 72.0/72.0 Wh (100.0%)
    volts: 11.5 min: 11.6 model: HP Primary serial: <filter> status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 3168 min/max: 400/4463 boost: enabled cores: 1: 3168
    2: 3168 3: 3168 4: 3168 5: 3168 6: 3168 7: 3168 8: 3168 9: 3168 10: 3168
    11: 3168 12: 3168 13: 3168 14: 3168 15: 3168 16: 3168 bogomips: 102210
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q]
    vendor: Hewlett-Packard driver: nvidia v: 565.77 arch: Ampere pcie:
    speed: 5 GT/s lanes: 8 ports: active: none empty: DP-2,HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:249d
  Device-2: Advanced Micro Devices [AMD/ATI] Cezanne [Radeon Vega Series /
    Radeon Mobile Series] vendor: Hewlett-Packard driver: amdgpu v: kernel
    arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1
    bus-ID: 07:00.0 chip-ID: 1002:1638 temp: 34.0 C
  Device-3: Quanta HP Wide Vision HD Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-3:2 chip-ID: 0408:5425
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: amdgpu,modesetting
    unloaded: fbdev,vesa dri: radeonsi,nouveau gpu: nvidia,amdgpu
    display-ID: 0
  Monitor-1: eDP-1 res: 1920x1080 size: N/A
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 1 drv: radeonsi
    gbm: drv: kms_swrast surfaceless: drv: nvidia wayland: drv: radeonsi x11:
    drv: radeonsi
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 24.3.2 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi renoir LLVM
    19.1.5 DRM 3.59 6.12.8-200.fc41.x86_64) device-ID: 1002:1638
    display-ID: :0.0
  API: Vulkan v: 1.3.296 surfaces: xcb,xlib,wayland device: 0
    type: integrated-gpu driver: N/A device-ID: 1002:1638 device: 1
    type: discrete-gpu driver: N/A device-ID: 10de:249d device: 2 type: cpu
    driver: N/A device-ID: 10005:0000
Audio:
  Device-1: NVIDIA GA104 High Definition Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: speed: 5 GT/s lanes: 8 bus-ID: 01:00.1
    chip-ID: 10de:228b
  Device-2: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition
    Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 07:00.1 chip-ID: 1002:1637
  Device-3: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
    vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 07:00.5 chip-ID: 1022:15e2
  Device-4: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s
    lanes: 16 bus-ID: 07:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.12.8-200.fc41.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw89_8852ae v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8852
  IF: wlo1 state: up mac: <filter>
  IF-ID-1: nekoray-tun state: unknown speed: 10000 Mbps duplex: full
    mac: N/A
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-4:3 chip-ID: 0bda:2852
  Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.2
    lmp-v: 11
Drives:
  Local Storage: total: 2.75 TiB used: 452.19 GiB (16.1%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730
    SDBPNTY-1T00-1006 size: 953.87 GiB speed: 31.6 Gb/s lanes: 4
    serial: <filter> temp: 27.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 980 PRO 2TB size: 1.82 TiB
    speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 28.9 C
Partition:
  ID-1: / size: 1024 GiB used: 372.48 GiB (36.4%) fs: btrfs
    dev: /dev/nvme1n1p2
  ID-2: /boot size: 974.7 MiB used: 357.3 MiB (36.7%) fs: ext4
    dev: /dev/nvme1n1p1
  ID-3: /boot/efi size: 256 MiB used: 105.7 MiB (41.3%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 1024 GiB used: 372.48 GiB (36.4%) fs: btrfs
    dev: /dev/nvme1n1p2
Swap:
  ID-1: swap-1 type: file size: 64 GiB used: 0 KiB (0.0%) priority: -2
    file: /swap/swapfile
Sensors:
  System Temperatures: cpu: 41.8 C mobo: N/A gpu: amdgpu temp: 35.0 C
  Fan Speeds (rpm): fan-1: 0 fan-2: 0
Info:
  Memory: total: 32 GiB note: est. available: 30.68 GiB used: 4.92 GiB (16.0%)
  Processes: 482 Power: uptime: 5m wakeups: 1 Init: systemd v: 256
    target: graphical (5) default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 70
    Compilers: clang: 17 alt: 18 gcc: 14.2.1 Shell: Zsh v: 5.9
    running-in: konsole inxi: 3.3.36

Something of a known problem - it’s a kernel issue.

People have had success with running in performance mode instead and upgrading to the latest 6.12.8 kernel (and is fix is apparently already in 6.12.9).

See how you get on.