Automatic laptop brightness

On Linux:
Code:
#crontab -e

0 08 * * * DISPLAY=:0 xbacklight =20



Since xbacklight does not work for me, I'm trying to do it through
brightness:
Code:
36 18 * * * root DISPLAY=:0.0 && /usr/local/bin/xbrightness 59501 1.3

But it doesn't work! Why?
 
He does not use something for me under the user. :(

Code:
$ gammy
2022-01-15 20:58:13.741 ERROR [100221] [config::read@53] Unable to open config
 
$ pkg install graphics/intel-backlight

.config/scripts/backlight:

Code:
#!/bin/sh

if ! [ ${intel_backlight} -eq 100 ]; then
    intel_backlight 70
fi

/usr/local/etc/doas.conf:
Code:
permit nopass your_user as root cmd /home/your_user/.config/scrtipts/backlight
 
Run as root (not the norm, I simply haven't created a user account in this test environment):

1642277215216.png

elimelech007 is the Gammy window obscured, or maybe unexpectedly minimised to the system tray?
 
Back
Top