You are not logged in.

#1 2013-04-23 06:44:47

newtonelectron
Member
Registered: 2012-03-29
Posts: 30

Gnome 3.8 Lock Screen w/o GDM

Hi, does anyone know how to display the standard lock screen if I'm not using GDM (or any other login manager. I'm using a xinitrc w/ startx to launch a gnome-session)
I remember having this problem when Gnome 3.6 came out, but forgot how exactly it was fixed.
Thanks.

Offline

#2 2013-04-23 07:08:43

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 159

Re: Gnome 3.8 Lock Screen w/o GDM

From what I know, the lock screen is controled by GDM and so has its look. If you use another login manager, then it is this login manager which is suppose to take care of locking the screen (I know that this work at least with lightdm, but indeed, the look is not the same).
The only solution I should see is to run GDM once you are connected in gnome, then make it take control of the locking. But I don't know if it's even possible hmm.

Last edited by Cthulhu82 (2013-04-23 07:11:08)


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#3 2013-04-27 02:11:30

newtonelectron
Member
Registered: 2012-03-29
Posts: 30

Re: Gnome 3.8 Lock Screen w/o GDM

I'm only about 100% sure I was using the 'old' gnome 3.2 type lock screen. I think it comes with 'gnome-screensaver'. I'm not sure what's changed with respect to screensaver settings between gnome 3.6 & 3.8 .

Offline

#4 2013-04-27 08:06:44

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 159

Re: Gnome 3.8 Lock Screen w/o GDM

gnome-screensaver doesn't exist anymore in Gnome 3.8. It is now directly integrated into gnome-shell.


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#5 2013-04-27 20:59:14

newtonelectron
Member
Registered: 2012-03-29
Posts: 30

Re: Gnome 3.8 Lock Screen w/o GDM

Cthulhu82 wrote:

gnome-screensaver doesn't exist anymore in Gnome 3.8. It is now directly integrated into gnome-shell.

But does gnome-shell 'outsource' locking to third party apps?
Ctrl + Alt + L doesn't lock my screen. Not sure if that's because I don't have GDM enabled, or gnome-shell isn't picking up that key binding.

Offline

#6 2013-04-28 09:29:28

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 159

Re: Gnome 3.8 Lock Screen w/o GDM

You need GDM enabled, as gnome-shell uses it to lock the screen.
The only other solution I can see if you want to only use startx, is to disabled the gnome lock-screen in control-center, and then use Xscreensaver instead.


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#7 2013-04-28 09:43:59

th3voic3
Member
Registered: 2012-03-20
Posts: 92

Re: Gnome 3.8 Lock Screen w/o GDM

You can put

gnome-screensaver &

in your .xinitrc and lock the screen with

gnome-screensaver-command -l

No GDM needed.

Last edited by th3voic3 (2013-04-28 09:44:13)

Offline

#8 2013-05-22 10:18:11

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Gnome 3.8 Lock Screen w/o GDM

th3voic3 wrote:

You can put

gnome-screensaver &

in your .xinitrc and lock the screen with

gnome-screensaver-command -l

No GDM needed.

Hi,
I don't know about the OP but this trick didn't solve my issue. I still can't lock my screen without GDM...if I add

gnome-screensaver &

in my .xinitrc, after

exec gnome-session

and then I try

gnome-screensaver-command -l

in a terminal once inside the DE nothing happens.
Any clue?
Thanks

Offline

#9 2013-05-22 10:26:54

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Gnome 3.8 Lock Screen w/o GDM

Demind wrote:

Hi,
I don't know about the OP but this trick didn't solve my issue. I still can't lock my screen without GDM...if I add

gnome-screensaver &

in my .xinitrc, after

exec gnome-session

Then gnome-screensaver starts after you log out of your gnome session....

Offline

#10 2013-05-22 14:11:10

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Gnome 3.8 Lock Screen w/o GDM

Raynman wrote:
Demind wrote:

Hi,
I don't know about the OP but this trick didn't solve my issue. I still can't lock my screen without GDM...if I add

gnome-screensaver &

in my .xinitrc, after

exec gnome-session

Then gnome-screensaver starts after you log out of your gnome session....


Well I can't even logout, but this is not an issue for me wink
Then, what should I do to achieve my goal?
I tried to launch directly the session without using startx, i.e., directly taping

xinit gnome-session && gnome-screensaver &

on the console, but anything changed. I still keep having the problem...
Thank you

Offline

#11 2013-05-22 14:28:58

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: Gnome 3.8 Lock Screen w/o GDM

Demind wrote:

Then, what should I do to achieve my goal?
I tried to launch directly the session without using startx, i.e., directly taping

xinit gnome-session && gnome-screensaver &

on the console, but anything changed. I still keep having the problem...

Because that's almost the same thing: you run x with gnome-session and after that command exits, you start gnome-screensaver, but then it's too late (X session has ended). I thought it was obvious with the emphasis on "after": launch gnome-screensaver (in the background with the &) before starting gnome-session.

Maybe you should familiarize yourself with some shell basics (and what xinit/startx does exactly), because you don't seem to understand why exec and the & are there. Might help with future changes.

Offline

#12 2013-05-22 15:00:24

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Gnome 3.8 Lock Screen w/o GDM

Raynman wrote:

Because that's almost the same thing: you run x with gnome-session and after that command exits, you start gnome-screensaver, but then it's too late (X session has ended). I thought it was obvious with the emphasis on "after": launch gnome-screensaver (in the background with the &) before starting gnome-session.

Maybe you should familiarize yourself with some shell basics (and what xinit/startx does exactly), because you don't seem to understand why exec and the & are there. Might help with future changes.

Thank you. Well I am indeed pretty familiar with shell basics, I've been using it for more than a decade at least. On the other hand, for lack of personal interest I am rather ignorant about X, my bad. Thanks again

Offline

#13 2013-06-18 15:55:22

nullspoon
Member
Registered: 2013-06-18
Posts: 10
Website

Re: Gnome 3.8 Lock Screen w/o GDM

I just recently decided to give Gnome a shot from xfce and ran into this very problem. With xfce I just used startx and had a custom shortcut key set up. It turns out, Gnome can do that too. As long as you don't mind not having a pretty screensaver, this works with slock.

Head on over to your settings panel, then Keyboard, then the Shortcuts tab. At the bottom left you've got Custom Shortcuts. Click the plus button to add a new custom shortcut. Name it whatever you want, but the command is 'slock'. Once you've clicked apply, click your new shortcut and set the key combination.

Note, if you've never used slock before, don't panic when you use your lock key combo. Your screen will go black and will appear to not respond at all. Slock doesn't do anything until the right password has been typed.

Offline

Board footer

Powered by FluxBB