You are not logged in.

#1 2017-11-06 22:07:49

rufus_lenhador
Member
Registered: 2017-11-06
Posts: 21

[SOLVED] Gnome lock-screen not working

Hi,

I installed Arch a few days ago and I'm using gnome-flashback.
I can't lock my screen.

I can leave the computer idling for a lot of time, hit Ctrl Alt L or Super L and it won't lock the screen. Even if I click "Lock screen" from the user menu on top right corner, nothing happens.

I checked on gnome settings > privacy > lock screen is activated.



How can I fix that?

Thanks

Last edited by rufus_lenhador (2017-11-07 01:06:46)

Offline

#2 2017-11-07 00:06:26

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Gnome lock-screen not working

Do the logs / jounal show anything when you try to lock the screen?

Offline

#3 2017-11-07 00:16:36

rufus_lenhador
Member
Registered: 2017-11-06
Posts: 21

Re: [SOLVED] Gnome lock-screen not working

Can you tell me where those logs are?
I'm quite new to Arch. I'm used to /var/log/syslog (doesn't exist).

The files at /var/log seem to be binary.

Offline

#4 2017-11-07 00:18:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Gnome lock-screen not working


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-11-07 00:24:30

rufus_lenhador
Member
Registered: 2017-11-06
Posts: 21

Re: [SOLVED] Gnome lock-screen not working

Thanks!

Yeah, there is something related:

nov 06 21:20:44  gnome-panel[741]: Could not ask screensaver to lock: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.ScreenSaver was not provided by any .service files

Should I install xscreensaver, gnome-screensaver or another?

Offline

#6 2017-11-07 00:37:25

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Gnome lock-screen not working

gnome-screensaver is the one meant for gnome, so that might solve your problem.  I have no idea if xscreensaver works with gnome, since i don't use either.

Offline

#7 2017-11-07 00:44:28

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] Gnome lock-screen not working

See Optional Deps in "pacman -Si gnome-flashback" command output.

If you don't know how optional dependencies work on arch, see explanation here: https://wiki.archlinux.org/index.php/Pa … g_packages

Last edited by ooo (2017-11-07 00:44:48)

Offline

#8 2017-11-07 01:06:27

rufus_lenhador
Member
Registered: 2017-11-06
Posts: 21

Re: [SOLVED] Gnome lock-screen not working

Thanks! Installed gnome-screensaver and now Super + L is locking my screen :-)

So I can list the optional deps, but not install them automatically. Curiously, the gnome-screensaver was the only one missing.

Offline

#9 2017-11-07 01:09:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Gnome lock-screen not working

They are optional; if they were installed automatically that would make them depends.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2017-11-07 01:16:54

rufus_lenhador
Member
Registered: 2017-11-06
Posts: 21

Re: [SOLVED] Gnome lock-screen not working

I mean there's no way to say "install all the opt deps of this package".

Offline

#11 2017-11-07 01:36:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Gnome lock-screen not working

Well, you could do it, but why would you want to? The whole point of Arch is to think about what you are installing.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2017-11-07 01:59:08

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] Gnome lock-screen not working

AFAIK, there's no command, or pacman option to install package with all of it's optional dependencies though, but you'd have to install each optdeps like any other package.

You should also take a note of pacman's "--asdeps" option when installing optional dependencies, to keep your local pacman database in shape.

Offline

#13 2017-11-07 02:08:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Gnome lock-screen not working

ooo wrote:

AFAIK, there's no command, or pacman option to install package with all of it's optional dependencies though

pacman -S $(expac -S "%n %o" $package)

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2019-01-16 22:02:01

saurabh000345
Member
From: West Bengal, India
Registered: 2018-12-20
Posts: 36
Website

Re: [SOLVED] Gnome lock-screen not working

Hey! I installed the gnome-screensaver. The journalctl now reads:
Couldn't lock screen: Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag

What is the possible work-around?


I skimmed through the wiki

Offline

#15 2019-01-16 22:08:08

saurabh000345
Member
From: West Bengal, India
Registered: 2018-12-20
Posts: 36
Website

Re: [SOLVED] Gnome lock-screen not working

saurabh000345 wrote:

Hey! I installed the gnome-screensaver. The journalctl now reads:
Couldn't lock screen: Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag

What is the possible work-around?

Okay fixed it... This forum said that it supports gdm: https://bugzilla.redhat.com/show_bug.cgi?id=1558740
Earlier, I had lightdm enabled. I installed gdm and enabled it while disabling lightdm, And boom! It works now.


I skimmed through the wiki

Offline

#16 2020-05-23 02:25:21

brunocosta
Member
Registered: 2020-05-23
Posts: 1

Re: [SOLVED] Gnome lock-screen not working

I removed the package-screensaver since it not necessary any more apprently

ran dconf and went to org.gnome.desktop.lockdown and set the key disable-lock-screen to [false] I don't know why it was set to true
Problem solved I can now press Super + L and the screen lock right away.

Offline

Board footer

Powered by FluxBB