Ubuntu 20.04.2 Screen Dims Randomly

I have tried all relevant Settings choices, including "xset s off; xset s noblank; xset -dpms; xrandr --output HDMI-1 --brightness 1.0" as ordinary user and root, but the screen still dims itself occasionally at random. How can I permanently turn OFF screen dimming?

There must be some code in the Ubuntu installation to do this!

Maybe something in /etc?


I have the same problem. I opened a bug on ubuntu's launchpad. Hoping they fix it.

Interestingly the bug stopped happening on this particular kernel version: 5.11.0-16-generic. Now it's back again.

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1938477