Screen brightness issue after hibernate on kernel 6.12

Which Linux distro are you using?
NixOS

Which release version?
Unstable-24-12-25

Which kernel are you using?
6.12
Which BIOS version are you using?
3.05

Which Framework Laptop 13 model are you using? (AMD Ryzen™ 7040 Series, Intel® Core™ Ultra Series 1, 13th Gen Intel® Core™ , 12th Gen Intel® Core™, 11th Gen Intel® Core™)
AMD 7040

I noticed a problem with screen brightness management when hibernating with kernel 6.12.
When returning from hibernate, the screen brightness starts to increase linearly without any actions. When arriving at max brightness, it blinks 10 times and then completely turns off. It is impossible to recover the screen after that, reboot is the only solution.

Reverting to 6.6 solves the issue.

Anybody noticed this ?

I have the exact same issue on Fedora 41 on kernel version 6.12.5-200.fc41.x86_64.
AMD 7040 unit.
BIOS 3.05

ok so it is definitely related ot the kernel . I was unable to gather a trace and did not find anything in kernel bug tracker.

I wonder if it is limited to framework machines or others are also impacted.

Yeah I’m on nixOS and have the same issue.
There’s a 6.11.11 kernel package that is working for me that you could use while we wait. 6.6 LTS kernel still has the suspend bug that the laptop might turn on in your bag and overheat.
In another thread there’s some chat and it’s probably some changes with the AMD GPU drivers that are causing the issue.

can you give me the package ref ?

BTW I don’t know if the suspend bug is the same as the one fixed by the preventwakeonAC fix I found in the nixos-hardware repo but even if I disable the fix, I am unable to wake the machine using the keyboard anymore.

boot.kernelPackages = pkgs.linuxPackages_6_11;

On my phone so can’t format it well. But you can append 6_1x for any kernel variant.

Yeah at this point there’s been so many suspend bugs and fixes I can’t keep up. It may indeed be fixed by that hardware import.

Here is the relevant bug in Fedora: 2333543 – Lenovo Ideapad 1 14ALC7 monitor flickers and dies after suspend with kernel 6.12.5
Looks like a fix will hopefully land in 6.12.9.

thanks Leo.
Confirming that the workaround of using performance mode is so far working for me on 6.12.7.
Thanks heaps for that link.

Interestingly, I cannot hibernate more than once on the 6.12.7 kernel.
So I can do it once on the Performance profile but it hangs on the tty screen on the second go every-time. A different problem than previously as the screen never goes blank. Looking at log it might be because the previous hibernate image was never removed properly.
I have reverted back to 6.11 where all is working. (apart from suspend on lid close when on the power saving profile - but there are some niggles not worth fighting…)

Seems now to be working with 6.12.9 kernel in Gentoo. Did several cycles with hibernation without facing the display went first bright and blank afterwards.

uname -rvpi
6.12.9-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 13:30:50 CET 2025 AMD Ryzen 7 5700U with Radeon Graphics AuthenticAMD

I confirm that it is fixed with kernel version 6.12.9.

I am running 6.12.9-200.fc41.x86_64 on Fedora 41. The update landed in stable yesterday.

If you’re stuck on an older kernel like me you can work around this issue by disabling ABM:

echo 0 | sudo tee /sys/class/backlight/amdgpu_bl*/device/amdgpu/panel_power_savings

You may have issues getting this change to persist if you’re using PPD, in which case you can also add amdgpu.abmlevel=0 to your kernel params. This will disable ABM and prevent programs from enabling it.