Ubuntu – Set the screen brightness on startup

bootbrightnessscreen

On Ubuntu 14.04 I tried to dim the screen brightness to 50% on each system start in /etc/rc.local with the line

xbacklight -set 50%

right before the line exit 0

Why does this not work?

Is there a better solution?

Best Answer

You cannot call xbacklight in rc.local, because rc.local is not running in the X environment.

Add this command to your startup programs (gnome-session-properties):

xbacklight -set 50%

This will work