Scheduled automation of main and external screen color temperature and brightness

Esteemed,
I am working in a script to be scheduled to reduce display color temperature (sct command) hourly through the day. This is done. Now, if you consider, how should one reduce brightness using a command and grades/percentages, according to the human eye perception?
My notebook keyboard has brightness handling keys. It has 7 levels, same as mate-power-backlight-helper, much less than the mate-power can handle. How do I access the commands it executes? Or the commands handled by mate-power-preferences / manager ?
Should I betake to xbacklight? Appears to be that sct settings gets overwrited by xrandr --brightness, no?
What automation tool do I use? cron job, systemd service?
The fixes in https://github.com/faf0/sct#about are still good? or sct already had those fixes? I can evidence sct doesn’t work on my VGA screen, though.

Mate Ubuntu 17.04 32 bit

1 Like

If you are writing a script, there shouldn’t be a need to use cron or other external schedulers. You would unnecessarily increase the dependency requirements of your script. Be it a python or bash script you will likely want to use their own features. Python has its own scheduler and bash has the built-in sleep and timer commands that you can attach to loops.

For the best way to handle screen brightness you will want to start with this Arch wiki: https://wiki.archlinux.org/index.php/backlight

https://paste.linux.community/view/433aac48
here is the piece i am working, if it could be called a script. I don’t know how this script would be running as a “daemon”, but my instincts tell me Python would have more fine tune for schedule setup, no? So I could write it again in Python. But for the ‘daemon’ part, how is it triggered to run?

Hi all,

Maybe worth mentioning that Redshift can reduce the brightness as well?

1 Like