I have a simple script that adjusts the monitor's brightness that is set to run on startup.
#!/bin/bash gpio -g 18 1024 gpio -g mode pwm gpio pwmc 1000 gpio -g 18 800
I am calling this script from
It seems to work and after booting up, it adjusts the brightness before getting to login, but after I log in the screen goes dark, i.e., it looks like GPIO pin
18 is reset to
0. To fix this, I have to bring up a terminal and manually run the script to readjust the brightness.
An easy enough way to deal with this appears to be simply manually running the script again after logging in or maybe calling it from
$HOME/.profile, but I would prefer a more permanent solution that makes the adjustment system-wide.
Adding the script to
$HOME/.profile did not do the trick. It looks like some other script is called after that turns the screen dark again (possibly resetting GPIO