Lock screen in suspend mode

Asked by Saso on 2010-07-29


I am wondering what should i do that when i wake up my computer after suspend mode the lock screen window will appear. I really missing it. I have 2.9 version of Gnomenu.

Please help!


Question information

English Edit question
GnoMenu Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:

This question was reopened

technoshaun (shaun-marolf) said : #1

I'm not sure exactly what you mean. Does the GDM password screen appear when you wake up the computer or not? Either way that is handled through the gnome-screensaver control center, not GnoMenu.

Saso (saso-ocepek) said : #2

Thx for reply.

No, when i wake up my computer from the suspend mode, the password screen doesn't appear.
The command from Gnomenu for suspend is "python -u /usr/lib/gnomenu/session-manager.py suspend". I think that gnomenu has its own commands.

IF suspend my computer from Gnomenu, no password screen appears, but if i do suspend mode from "default gnome main menu", everything is OK. I think that the problem is thah Gnomenu uses python.

technoshaun (shaun-marolf) said : #3

Those commands were designed for Ubuntu but no longer appear to be working correctly (i just spent some time working with them) You can try using the actual Gnome commands, but there was issues with those in Ubuntu. If you you are using another distribution you should have better luck.

Saso (saso-ocepek) said : #4

Ok. Sorry to bother you but what is the actual command for suspend and the gdm login?

Saso (saso-ocepek) said : #5

Aha, I've got it! In Gnomenu properties under Command section i wrote down the following:
gnome-screensaver-command --lock ; pmi action suspend

It works now. Thanks!

Best technoshaun (shaun-marolf) said : #6

I just found out that python-xlib was removed from my system. That package is required for all the python backend commands to function correctly. Please check to make sure its installed correctly in your system.

technoshaun (shaun-marolf) said : #7

changed command used

Saso (saso-ocepek) said : #8

I think it is installed correctly.

 One more question - is anything wrong if i have used the command "gnome-screensaver-command --lock ; pmi action suspend" instead of python command? Because in readme file it writes that you shouldn't change the suspend, shutdown, restart, hybernate commands.

Saso (saso-ocepek) said : #9

Thanks technoshaun, that solved my question.

Saso (saso-ocepek) said : #10

Sorry about "that solved my question". I accidentally pressed it.

technoshaun (shaun-marolf) said : #11

When I wrote that in the docks there was some serious issues at the time where the commands used would not work. There was a change in the command handling, especially with Ubuntu, AFAIK the issue is mostly Ubuntu now as Gnome changed the commands. If changing the commands works for you then stick with it.

Saso (saso-ocepek) said : #12

Ok. Thanks for the answer and explanation.