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 can't disable screen lock in Lubuntu. In Power management I have it unchecked. There is another option "Enable light locker" in the "Light locker settings". I also have this unchecked but I still see black screen after 10 minutes and when I move the mouse I have to provide a password.

I hate this behaviour in all ubuntus, but usually I can just disable it in system settings. Well not here.

So lubuntu has these settings in two places and is ignoring both.

I found this question:

Stop Xscreensaver from locking screen once screensaver starts

According to this, I tried to remove "xscreensaver" package, but didn't have it installed at all. So this solves


What I learned so far:

  • this is not magic. it affects other people as well
  • it is caused by a bug in Xfce power manager:


share|improve this question
there are gnome and qt versions, do you have those installed? look for gnome-screensaver –  noleti Jul 26 at 11:34
"gnome-screensaver" also not installed –  user568021 Jul 26 at 11:35
sorry, look for lxlock? –  noleti Jul 26 at 11:36
ok.. so I just remove this? –  user568021 Jul 26 at 11:49
damnit! apt-get remove says: "Unable to locate package lxlock" –  user568021 Jul 26 at 13:05

3 Answers 3

I have found what seems a folder for autostart applications: ~/.config/autostart. In my computer, there is a .desktop file for the screen locker (light-locker.desktop). It is a sort of shortcut. If you want to know more about .desktop files and how to create entries for the applications menu, read this article of the wiki of LXDE which is the Desktop of Lubuntu.

The .desktop files put in the right folder create entries for the applications menu and I suspect in this folder they start applications when the user logs in. I am not sure, but users with different autostart programs have different "shorcuts" in this folder.

I think it is worth checking your light-locker.desktop file in case the problem was that your Lubuntu installation was not able to modified it when you use the light-locker settings app.

I have also found out that users with different configurations of Light locker have different light-locker.desktop files. As sensible, the only difference is the "exec" line, which determines which app or command is executed and its arguments or options. I mean clicking on an application menu entry is similar to run its "exec" line in a shell or terminal. It is quite easy to create a new app entry for a program in the menu. I have done this task several times.

The .desktop files can be edited by opening them with leafpad which is the default plain text editor in Lunbuntu. If you do not save any change, nothing will be modified.

The "exec" line is something like this:

Exec=light-locker --lock-after-screensaver=0 --lock-on-suspend --no-late-locking.

If you want to know what arguments light-locker has got, you can open a shell and run info light-locker. I must note there are not all of its arguments. From my point of view, that information should be improved if the developers have the chance.

However, there are several users in my Lubuntu installation and they have different Light-locker settings. I can confirm you that the following options are right:

1) If you want Light-locker to lock the screen when you suspend the computer:

Exec=light-locker --lock-after-screensaver=0 --lock-on-suspend --no-late-locking.

2) It you do not want the previous option:

Exec=light-locker --lock-after-screensaver=0 --no-lock-on-suspend --no-late-locking.

A "exec" line without --lock-after-screensaver=0 or --no-late-locking can cause the functionality you have described in your computer. You can check it by running info light-locker as I said before.

Otherwise, you could move the light-locker.desktop onto other folder and reboot to try. Before doing this latest suggestion, you'd better ask in the Lubuntu mailing list. There are people with a deeper knowledge of this OS.

share|improve this answer
Sorry I'm not following.. You are saying I should add the two options to my .desktop file? Which one.. I have these two: light-locker.desktop, screensaver-settings.desktop –  user568021 Aug 2 at 10:46
I referred to the ligh-locker.desktop file. Light locker is the default screen locker of Lubuntu. If you want to know more about .desktop file read this wiki article. –  A lubuntu user Aug 2 at 14:21
ok.. added the line you provided to the Exec= line in light-locker.desktop file... let's see what happens after some time :) –  user568021 Aug 2 at 14:30
I have just edited my second post to make it clearer. I imagine you have modified the "exec" line of the file. It should not have two "exec" lines. –  A lubuntu user Aug 2 at 14:58
You might not believe this, but it simply does not work for me. Lubuntu just ignores everything I do! –  user568021 Aug 4 at 9:58

Do you know the autostart applications are selected in "default application for LXSession" in preferences sub-menu (for Lubuntu 14.04)? I can see the screensaver and "screenlocker" applications checked there, but I have never tried disabling it.

share|improve this answer
This is getting ridiculous. Found both options, disabled, but it still gets ignored. –  user568021 Jul 29 at 11:40

This solved the problem for me:

sudo rm /etc/xdg/autostart/light-locker.desktop
share|improve this answer

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.