Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 5 down vote accepted

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

display-setup-script=/usr/local/sbin/lightdm-setup.sh

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

#! /bin/sh
xbacklight =100

And make the file executable (chmod +x /usr/local/sbin/lightdm-setup.sh). 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 –  Muhammad Ahmad Zafar Nov 30 '13 at 9:16
add comment

Your Answer

 
discard

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.