3

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.

0
5

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.

3
  • 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
  • I have no /etc/lightdm/lightdm.conf file. Is there somewhere template for it? – reducing activity Aug 19 '19 at 15:20
  • Maybe you are using gdm instead of lightdm? Then this answer might help you. – elmicha Aug 26 '19 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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