Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My situation:

  1. Need auto login for my Wheezy.

  2. Sometimes I'm away from my PC when it rebootsso I need to lock the screen after auto login.

When I type /usr/bin/gnome-screensaver-command -l it locks fine. But adding it to startup applications somehow does not work.

Any ideas how to solve my problem?

share|improve this question

1 Answer 1

Create executable script and add it to startup applications instead of screensaver initialization; this should work fine:

/usr/bin/gnome-screensaver &
sleep 1
/usr/bin/gnome-screensaver-command -l

When you add gnome-screensaver-command -l to startup, it runs when screensaver isn't fully initialized. Because of that it doesn't work.

share|improve this answer
I'm surprised this is not a built in option. Works well though. Any ideas about how insecure this might be? – pcnate Oct 22 at 23:32

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.