Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an encrypted home folder, so I can't log in automatically (and I wouldn't want to) but also my display defaults to the minimum brightness at each boot. To fix this I run the command

`xbacklight =100`

as a startup application, but this only runs when I log in and not when a guest logs in or for the login screen which is beautiful, but not seen.

A fix for the whole issue would be preferred, or just a way to run commands during the boot process. Thanks.

share|improve this question
up vote 5 down vote accepted

You can edit /etc/lightdm/lightdm.conf and append the line


to the [SeatDefaults] section. Then create the file /usr/local/sbin/ with this content:

#! /bin/sh
xbacklight =100

And make the file executable (chmod +x /usr/local/sbin/ After a reboot or when you restart lightdm (sudo restart lightdm) your script should run.

share|improve this answer
i get low graphics screen when i boot my system after running the said commands on 12.04 32-bit – M. Ahmad Zafar Nov 30 '13 at 9:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.