How can I run:
xbacklight -set 0
before login screen?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityFor this you can use the file /etc/rc.local
. Insert your command to this file before exit 0
and anytime you start your system the command is executed. Please ensure that he file is also executable.
/etc/rc.local
runs. So you might need to add sleep 10
, or that with a different number, to be sure that the display is ready to take the command.
From your question, it appears you want to set screen brightness on startup. With current architecture (Xorg, not Mir or Wayland) you can do it like written on: How do I set default display brightness?