I am running my laptop on Kubuntu 20.04 LTS. Of course, the system has the possibility to gradually dim the screen after a period of inactivity. However, this happens in abrupt steps, which, especially when that is seen in the periphery of the visual field, can be quite disturbing and annoying.
I would rather have the screen darken smoothly: for example, go from brightness of 60% to 30% over a course of a few seconds and then again to 0% in the same tempo. Would that be possible?
I found that one can set the screen brightness by modifying (as a root) the value of
/sys/class/backlight/intel_backlight/brightness (the folder
intel_backlight might be called differently on your machine), but I do not know how to make this happen automatically. In other words, I would even be able to write the script to do that smoothly but how do I then make the system use it automatically?