When my laptop is on battery, the brightness changes depending on what’s on the screen.

It changes when I maximize or minimize a window, when I open or close a tooltip, when the visual bell goes off in my terminal, when I move my mouse onto something, when I’m watching a video with no input.

It is extremely annoying and I would like it to stop happening.

All the solutions I have seen only work for a Dell Inspiron with Intel CPU, and mine is AMD.

System stats

Hardware: Dell Inspiron 15 with AMD Ryzen 7 CPU, 16GB RAM, AMD Radeon graphics.

Software: Debian GNU/Linux 13 (trixie) with Linux 6.12.43 kernel and KDE Plasma 6.3.6 desktop