Set Startup Display Brightness in Peppermint 4

This shows you how to adjust the screen brightness in Peppermint 4 OS, and make it start up with that brightness level. This shows you how to add an autostart .desktop file to make it start up at your desired brightness level.

First, decide on your brightness level. In terminal, use this command to adjust the brightness level to 75% of full brightness:

xrandr --output LVDS1 --brightness 0.75 

Of, set the brightness to 50% like this:

xrandr --output LVDS1 --brightness 0.50 

You may have to change “LVDS1” above to the name of your screen. Get the name of your screen from the output of this command:

 xrandr 

You can put your display screen brightness back to full brightness with this:

xrandr --output LVDS1 --brightness 1 

After you decide on what level of brightness you want, create an autostart .desktop file that will make that brightness level be set automatically when you start your computer.

If you don’t create the autostart .desktop file, the brightness will reset back to full strength on reboot.

Create The autostart .desktop File

In terminal, navigate to the autostart directory:

cd ~/.config/autostart 

If the directory does not exist, navigate to the .config directory, then create an autostart/ directory, then navigate to it:

cd ~/.config
mkdir autostart
cd autostart

Create a new file named brightness.desktop:

gedit brightness.desktop

Paste this into the new text file:

[Desktop Entry]
Name=Screen Brightness Autostart
Comment=Set screen brightness to 75% at bootup
Exec=xrandr --output LVDS1 --brightness 0.75
Icon=video-display
Terminal=false
Type=Application

But change “75%” and “0.75” to your desired brightness level. Also, change “LVDS1” to the name of your screen.

Save the file, then close it. To be sure that it saved, type “ls” in terminal. The new file should be listed there.

Now, when you start the computer, the brightness will be set at the level that you set in this file.

See more: ,

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]