Every time after I restart I have to enter this in the terminal to set the brightness:
xrandr -q | grep " connected"
xrandr --output LVDS --brightness 0.5
Could someone tell me if there is there any way to set up the brightness and remain like that even after a restart?
You can take that code, turn it into a script , and add that script to startup applications, so that on every login this runs automatically.
Script would be like so:
Save it in a file, e.g. myscript.sh. , preferably in
/usr/bin
, but not necessarily. Give that script executable permissions withchmod +x scriptname.sh
Then add full path to script in Startup Applications or make your own
.desktop
file in/home/yourusername/.config/autostart
clone the script on my https://github.com/el-beth/backlight.sh.git and paste the
backlight.sh
script file in any of the directories in $PATH of your shell for instance /bin or /usr/bin and makebacklight.sh
executable. After doing this, just create a .desktop file in/home/USERNAME/.config/autostart
.