Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Automatic lock not working
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
Automatic lock not working
ppmt English 16 matttbe [Read]
04 February 2015 à 01:16

ppmt, Sunday 07 December 2014 à 20:54 | Quote


Subscription date : 29 November 2007
Messages : 3520
It's been a while it is like that but I never got round to look into it

Basically my account doesn't lock and the screen doesn't go black either

I use Ubuntu 14.04.

I can lock the screen manually so the functionality works but it will not do it by itself if I leave the laptop alone for any period of time

I then tried to switch to Unity and there it works as per the setting in Gnome. The screen goes black and then it locks itself

I tried to search for some setting in CD but can't find what would stop it from locking

Any idea?

brianw, Tuesday 09 December 2014 à 05:56 | Quote


Subscription date : 25 April 2012
Messages : 271
I am not positive but it probably has something to do with which screensaver/power manager application is set up to auto start. Ubuntu switched to an application called light locker but if you upgraded from a previous version then you probably also have xscreensaver and/or a power manager running. Can you find out which application for the screensaver/power manager is running under Unity?

ppmt, Tuesday 09 December 2014 à 12:14 | Quote


Subscription date : 29 November 2007
Messages : 3520
Hi Brian,

Thanks for the help.

When my account is locked all I can see is that process running

/usr/lib/unity/unity-panel-service --lockscreen-mode


xscreensaver is not installed

Package: xscreensaver
State: not installed
Version: 5.15-3ubuntu1
Priority: optional


neither is light-locker

I have gnome-screensaver installed however

ppmt, Monday 15 December 2014 à 13:44 | Quote


Subscription date : 29 November 2007
Messages : 3520
Right

I installed xscreensaver and now it locks by itself but....xscreensaver is really horrible

and since I have several user on the laptop that prefer Unity to CD (I know it is heresy but what can I say!) so now I have to enter my password twice when I switch to my user

once for lightdm and once for xscreensaver

matttbe, Friday 30 January 2015 à 01:38 | Quote


Subscription date : 24 January 2009
Messages : 12573
Hello and sorry for the delay!

Do you still have this bug with the latest development version? And also when putting this content to the file /usr/share/gnome-session/sessions/cairo-dock.session:
[GNOME Session]
Name=Cairo-Dock
RequiredComponents
=unity-settings-daemon;compiz;cairo-dock;
DesktopName=Unity

ppmt, Friday 30 January 2015 à 10:42 | Quote


Subscription date : 29 November 2007
Messages : 3520
I have removed xscreensaver...it was just too ugly and impractical so auto locking stopped

I have 3.4.99.alpha1 and I just updated to the latest git level.

The problem remains...it still doesn't lock.

I will update the file as recommended and come back to you after a logout

matttbe, Friday 30 January 2015 à 12:00 | Quote


Subscription date : 24 January 2009
Messages : 12573
I have removed xscreensaver...it was just too ugly and impractical so auto locking stopped
There are plenty of themes for xscreensaver but yes, the default one is maybe not so pretty
(you can install xscreensaver-gl-extra xscreensaver-data-extra packages)

The problem remains...it still doesn't lock.
Can you also check if gnome-screensaver package is installed?

ppmt, Friday 30 January 2015 à 12:09 | Quote


Subscription date : 29 November 2007
Messages : 3520
Using xscreensaver would be fine if I was the only user on the laptop but I am not so that makes it awkward for the other..

ppmt@namaste:~$ aptitude show gnome-screensaver
Package: gnome-screensaver
State: installed


By the way after changing the cairo-dock.session file, it still does not lock by itself.

matttbe, Friday 30 January 2015 à 19:22 | Quote


Subscription date : 24 January 2009
Messages : 12573
By the way after changing the cairo-dock.session file, it still does not lock by itself.
Did you see other changes?

Package: gnome-screensaver
State: installed
And does it running?
ps aux | grep screensaver


/usr/bin/gnome-screensaver --no-daemon

ppmt, Friday 30 January 2015 à 19:26 | Quote


Subscription date : 29 November 2007
Messages : 3520
Can't say I saw any change!

Yes screensaver is running does run!

ppmt 26907 0.0 0.2 491188 33552 ? Sl 09:43 0:01 /usr/bin/gnome-screensaver --no-daemon

matttbe, Friday 30 January 2015 à 19:56 | Quote


Subscription date : 24 January 2009
Messages : 12573
And do you have this problem with all users? Is it possible that an inhibitor application is running? (Screensaver Inhibitor, Caffeine, etc.)

ppmt, Friday 30 January 2015 à 20:04 | Quote


Subscription date : 29 November 2007
Messages : 3520
No it is just me that has the issue (as usual!)

The other users are using Unity though.

As far as I can see I have no program running that would prevent it.

matttbe, Sunday 01 February 2015 à 00:20 | Quote


Subscription date : 24 January 2009
Messages : 12573


As far as I can see I have no program running that would prevent it.
Can you change settings linked to the screensaver (timeout, etc.)? (there is maybe something wrong with your settings).

Can you also check if an inhibitor is running?
dbus-monitor| grep inhib
(not sure that it will works, this signal is maybe not send each X minutes)

ppmt, Sunday 01 February 2015 à 16:21 | Quote


Subscription date : 29 November 2007
Messages : 3520
I let the command run for some time and nothing happened

The setting for the screen are :

Turn off screen when inactive after 3 min

Lock is on and will lock when the screen turns off

matttbe, Tuesday 03 February 2015 à 02:06 | Quote


Subscription date : 24 January 2009
Messages : 12573
Are you able to lock the screen with this command?
gnome-screensaver-command -l


Or there is maybe a bug with gnome-screensaver:

ppmt, Tuesday 03 February 2015 à 16:27 | Quote


Subscription date : 29 November 2007
Messages : 3520
yes the command does lock the screen.

I guess I will try again the xscreensaver ...but I really didn't like it!

matttbe, Wednesday 04 February 2015 à 01:16 | Quote


Subscription date : 24 January 2009
Messages : 12573
Yes, I don't know what's wrong.

Or maybe, can you launch the dock from the terminal, enable Screensaver Inhibitor applet and click on its icon in order to see if you have some warnings on the terminal?
There are maybe other informations in ~/.xsession-errors file.

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
Automatic lock not working
ppmt English 16 matttbe [Read]
04 February 2015 à 01:16

Post a message

Anti-spam filter 2 (*) times (*) 1 =
            
Did you know ? The Math tag can display mathematical formula. Check LaTex syntax for more information


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Automatic lock not working Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.