GNU bug report logs - #23286
Unable to unlock xscreensaver in Xfce

Previous Next

Package: guix;

Reported by: Albin <albin <at> fripost.org>

Date: Wed, 13 Apr 2016 21:17:02 UTC

Severity: normal

Tags: moreinfo

Done: zimoun <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23286 in the body.
You can then email your comments to 23286 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Wed, 13 Apr 2016 21:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Albin <albin <at> fripost.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 13 Apr 2016 21:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: bug-guix <at> gnu.org
Subject: Unable to unlock xscreensaver in Xfce
Date: Wed, 13 Apr 2016 23:16:31 +0200
Hi!

I just installed the xscreensaver package in Xfce and added it to
autostart.  I also enabled the screen lock from the xscreensaver-demo
window.  Now, if I manually run xflock4 or leave the computer alone for
a couple of minutes the screensaver starts and when I move the mouse the
unlock box appears with this text:

XscreenSaver 5.35
My hostname
Authentication failed!
My username
[OK]

Any keyboard or mouse button input just closes the unlock box and the
screensaver resumes.  I'm able to escape, however, by pressing
ctrl+alt+F2 to open a new TTY from where it's possible to log in and
shut down the computer.

Albin




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Thu, 14 Apr 2016 16:51:01 GMT) Full text and rfc822 format available.

Message #8 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Albin <albin <at> fripost.org>
Cc: 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Thu, 14 Apr 2016 18:50:32 +0200
Albin <albin <at> fripost.org> skribis:

> I just installed the xscreensaver package in Xfce and added it to
> autostart.  I also enabled the screen lock from the xscreensaver-demo
> window.  Now, if I manually run xflock4 or leave the computer alone for
> a couple of minutes the screensaver starts and when I move the mouse the
> unlock box appears with this text:
>
> XscreenSaver 5.35
> My hostname
> Authentication failed!
> My username
> [OK]

As Chris Webber mentioned on the mailing list (IIRC), you’ll also have
to enable xscreensaver in the OS config:

  (use-modules (gnu services xorg))

  (operating-system
    ;; …
    (services (cons (screen-locker-service "xscreensaver")
                    %desktop-services)))

Could you try and report back?

I guess we’ll enable it by default in %desktop-services.

Thanks,
Ludo’.




Added tag(s) moreinfo. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Mon, 18 Apr 2016 14:46:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Tue, 19 Apr 2016 19:55:02 GMT) Full text and rfc822 format available.

Message #13 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Albin <albin <at> fripost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Tue, 19 Apr 2016 21:54:04 +0200
On Thu, Apr 14, 2016 at 06:50:32PM +0200, Ludovic Courtès wrote:
>   (operating-system
>     ;; …
>     (services (cons (screen-locker-service "xscreensaver")
>                     %desktop-services)))
> Could you try and report back?
> I guess we’ll enable it by default in %desktop-services.

Will this be compatible with our desktop environments, xfce4 and gnome?

Andreas





Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Wed, 20 Apr 2016 16:41:02 GMT) Full text and rfc822 format available.

Message #16 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas <at> enge.fr>
Cc: Albin <albin <at> fripost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Wed, 20 Apr 2016 18:40:02 +0200
Andreas Enge <andreas <at> enge.fr> skribis:

> On Thu, Apr 14, 2016 at 06:50:32PM +0200, Ludovic Courtès wrote:
>>   (operating-system
>>     ;; …
>>     (services (cons (screen-locker-service "xscreensaver")
>>                     %desktop-services)))
>> Could you try and report back?
>> I guess we’ll enable it by default in %desktop-services.
>
> Will this be compatible with our desktop environments, xfce4 and gnome?

Yes (this service simply adds a PAM entry and a setuid binary.)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sat, 23 Apr 2016 07:56:02 GMT) Full text and rfc822 format available.

Message #19 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Albin <albin <at> fripost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 23 Apr 2016 09:55:09 +0200
On Thu, 14 Apr 2016 18:50:32 +0200
ludo <at> gnu.org (Ludovic Courtès) wrote:
> As Chris Webber mentioned on the mailing list (IIRC), you’ll also have
> to enable xscreensaver in the OS config:
> 
>   (use-modules (gnu services xorg))
> 
>   (operating-system
>     ;; …
>     (services (cons (screen-locker-service "xscreensaver")
>                     %desktop-services)))

guix system: error: failed to load '/etc/config.scm':
gnu/services/xorg.scm:442:41: In procedure screen-locker-service:
gnu/services/xorg.scm:442:41: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): "xscreensaver"

To fix, use

   (use-modules (gnu services xorg))
   (use-package-modules .... xdisorg)

   (operating-system
     ;; …
     (services (cons (screen-locker-service xscreensaver)
                     %desktop-services)))

(i.e. without the doublequotes)




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sat, 23 Apr 2016 17:48:01 GMT) Full text and rfc822 format available.

Message #22 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>,
 Ludovic Courtès <ludo <at> gnu.org>
Cc: 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 23 Apr 2016 19:47:20 +0200
Den 2016-04-23 kl. 09:55, skrev Danny Milosavljevic:
> On Thu, 14 Apr 2016 18:50:32 +0200
> ludo <at> gnu.org (Ludovic Courtès) wrote:
>> As Chris Webber mentioned on the mailing list (IIRC), you’ll also have
>> to enable xscreensaver in the OS config:
>>
>>   (use-modules (gnu services xorg))
>>
>>   (operating-system
>>     ;; …
>>     (services (cons (screen-locker-service "xscreensaver")
>>                     %desktop-services)))
> 
> guix system: error: failed to load '/etc/config.scm':
> gnu/services/xorg.scm:442:41: In procedure screen-locker-service:
> gnu/services/xorg.scm:442:41: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): "xscreensaver"
> 
> To fix, use
> 
>    (use-modules (gnu services xorg))
>    (use-package-modules .... xdisorg)
> 
>    (operating-system
>      ;; …
>      (services (cons (screen-locker-service xscreensaver)
>                      %desktop-services)))
> 
> (i.e. without the doublequotes)
> 

Danny, I tried your fix but it didn't work for me.  I was able to run,
as root, `guix pull` + `guix system reconfigure` and log back in, but
when I try to unlock the screen my user password is refused.

Albin




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sat, 23 Apr 2016 18:24:01 GMT) Full text and rfc822 format available.

Message #25 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 23 Apr 2016 20:22:52 +0200
Hi,

weird. It works for me here. I did the same as you did. (although I'm using fluxbox)

What happens when you run 

   xlock 

manually?

Can you unlock the screen there?




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sat, 23 Apr 2016 18:29:02 GMT) Full text and rfc822 format available.

Message #28 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 23 Apr 2016 20:28:16 +0200
On Sat, 23 Apr 2016 20:22:52 +0200
Danny Milosavljevic <dannym <at> scratchpost.org> wrote:

> Hi,
> 
> weird. It works for me here. I did the same as you did. (although I'm using fluxbox)
> 
> What happens when you run 
> 
>    xlock 
> 
> manually?

(just to clarify: as your normal user)

Also, what does

   which xlock

say?

How about

    ls -l $(which xlock)

?




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sat, 23 Apr 2016 20:16:02 GMT) Full text and rfc822 format available.

Message #31 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 23 Apr 2016 22:15:23 +0200
Den 2016-04-23 kl. 20:28, skrev Danny Milosavljevic:
> On Sat, 23 Apr 2016 20:22:52 +0200
> Danny Milosavljevic <dannym <at> scratchpost.org> wrote:
> 
>> Hi,
>>
>> weird. It works for me here. I did the same as you did. (although I'm using fluxbox)
>>
>> What happens when you run 
>>
>>    xlock 
>>
>> manually?

Hi!

This starts the screensaver and I'm now able to enter my password to
unlock.  The unlock screen looks a bit different though.

> (just to clarify: as your normal user)
> 
> Also, what does
> 
>    which xlock
> 
> say?

/run/setuid-programs/xlock

> 
> How about
> 
>     ls -l $(which xlock)
> 
> ?
> 

-r-sr-sr-x 3 root root 1684296 1 jan  1970 /run/setuid-programs/xlock

Albin





Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sun, 24 Apr 2016 01:15:02 GMT) Full text and rfc822 format available.

Message #34 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sun, 24 Apr 2016 03:14:23 +0200
On Sat, 23 Apr 2016 22:15:23 +0200
Albin <albin <at> fripost.org> wrote:

>This starts the screensaver and I'm now able to enter my password to unlock. The unlock screen looks a bit different though.

Just to be sure, are you saying that the unlocking works fine with that?

> >     ls -l $(which xlock)
> -r-sr-sr-x 3 root root 1684296 1 jan  1970 /run/setuid-programs/xlock

> works

And what does

 ls -l /run/setuid-programs/xscreensaver

say?

And 

  ps -ef |grep xscreensaver

?




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sun, 24 Apr 2016 13:48:01 GMT) Full text and rfc822 format available.

Message #37 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Albin <albin <at> fripost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sun, 24 Apr 2016 15:47:20 +0200
Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> On Thu, 14 Apr 2016 18:50:32 +0200
> ludo <at> gnu.org (Ludovic Courtès) wrote:
>> As Chris Webber mentioned on the mailing list (IIRC), you’ll also have
>> to enable xscreensaver in the OS config:
>> 
>>   (use-modules (gnu services xorg))
>> 
>>   (operating-system
>>     ;; …
>>     (services (cons (screen-locker-service "xscreensaver")
>>                     %desktop-services)))
>
> guix system: error: failed to load '/etc/config.scm':
> gnu/services/xorg.scm:442:41: In procedure screen-locker-service:
> gnu/services/xorg.scm:442:41: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): "xscreensaver"

Oops, my bad: this should be

  (use-modules (gnu services xorg) (gnu packages xdisorg))

  (operating-system
    ;; …
    (services (cons (screen-locker-service xscreensaver)
                    %desktop-services)))

where ‘xscreensaver’ is a reference to the ‘xscreensaver’ variable
exported by the (gnu packages xdisorg) module.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sun, 24 Apr 2016 14:04:02 GMT) Full text and rfc822 format available.

Message #40 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sun, 24 Apr 2016 16:03:38 +0200
Hi again.

Den 2016-04-24 kl. 03:14, skrev Danny Milosavljevic:
> On Sat, 23 Apr 2016 22:15:23 +0200
> Albin <albin <at> fripost.org> wrote:
> 
>> This starts the screensaver and I'm now able to enter my password to unlock. The unlock screen looks a bit different though.
> 
> Just to be sure, are you saying that the unlocking works fine with that?

Yes, but it doesn't work with Xfce's native screen locking program xflock4.

> 
>>>     ls -l $(which xlock)
>> -r-sr-sr-x 3 root root 1684296 1 jan  1970 /run/setuid-programs/xlock
> 
>> works
> 
> And what does
> 
>  ls -l /run/setuid-programs/xscreensaver
> 
> say?

-r-sr-sr-x 3 root root 266584 1 jan  1970 /run/setuid-programs/xscreensaver

> 
> And 
> 
>   ps -ef |grep xscreensaver
> 
> ?
> 

albin 419 386 0 16:56 ? 00:00:00 xscreensaver -no-splash


Albin




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Tue, 26 Apr 2016 21:18:02 GMT) Full text and rfc822 format available.

Message #43 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Tue, 26 Apr 2016 23:17:52 +0200
Hi,

On Sun, 24 Apr 2016 16:03:38 +0200
Albin <albin <at> fripost.org> wrote:

> > Just to be sure, are you saying that the unlocking works fine with that?  
> 
> Yes, but it doesn't work with Xfce's native screen locking program xflock4.

Ah, then what does 

   ls -l $(which xflock4)

say?




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Fri, 06 May 2016 18:30:02 GMT) Full text and rfc822 format available.

Message #46 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Fri, 6 May 2016 20:29:39 +0200
Sorry about the delay.

Den 2016-04-26 kl. 23:17, skrev Danny Milosavljevic:
> Hi,
> 
> On Sun, 24 Apr 2016 16:03:38 +0200
> Albin <albin <at> fripost.org> wrote:
> 
>>> Just to be sure, are you saying that the unlocking works fine with that?  
>>
>> Yes, but it doesn't work with Xfce's native screen locking program xflock4.
> 
> Ah, then what does 
> 
>    ls -l $(which xflock4)
> 
> say?
> 

It says:

lrwxrwxrwx 4 root guixbuild 76 1 jan  1970
/run/current-system/profile/bin/xflock4 ->
/gnu/store/[...]-xfce-session-4.12.0/bin/xflock4

Albin




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Wed, 18 May 2016 18:45:01 GMT) Full text and rfc822 format available.

Message #49 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Wed, 18 May 2016 20:44:39 +0200
> >    ls -l $(which xflock4)
> 
> It says:
> 
> lrwxrwxrwx 4 root guixbuild 76 1 jan  1970
> /run/current-system/profile/bin/xflock4 ->
> /gnu/store/[...]-xfce-session-4.12.0/bin/xflock4
> 
> Albin


And

  ls -lL $(which xflock4)

?




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Fri, 20 May 2016 17:16:01 GMT) Full text and rfc822 format available.

Message #52 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Fri, 20 May 2016 19:15:06 +0200

Den 2016-05-18 kl. 20:44, skrev Danny Milosavljevic:
>>>    ls -l $(which xflock4)
>>
>> It says:
>>
>> lrwxrwxrwx 4 root guixbuild 76 1 jan  1970
>> /run/current-system/profile/bin/xflock4 ->
>> /gnu/store/[...]-xfce-session-4.12.0/bin/xflock4
>>
>> Albin
> 
> 
> And
> 
>   ls -lL $(which xflock4)
> 
> ?
> 

The output from that is:

-r-xr-xr-x 10 root root 1536  1 jan 1970
/run/current-system/profile/bin/xflock4


Albin




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Fri, 20 May 2016 17:49:02 GMT) Full text and rfc822 format available.

Message #55 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Fri, 20 May 2016 19:48:49 +0200
On Fri, 20 May 2016 19:15:06 +0200
Albin <albin <at> fripost.org> wrote:

> >   ls -lL $(which xflock4)
> The output from that is:
> 
> -r-xr-xr-x 10 root root 1536  1 jan 1970
> /run/current-system/profile/bin/xflock4
> 
> 
> Albin

Aha!

Add (screen-locker-service xfce4-session "xflock4") to your services in your guix config file.

This means:

(operating-system
 ......
 (services (cons* (screen-locker-service xfce4-session "xflock4") %desktop-services)))

Or add it to an existing "services" entry.




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Fri, 20 May 2016 18:23:02 GMT) Full text and rfc822 format available.

Message #58 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Fri, 20 May 2016 22:22:01 +0200
Den Fri, 20 May 2016 19:48:49 +0200
skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:

> On Fri, 20 May 2016 19:15:06 +0200
> Albin <albin <at> fripost.org> wrote:
> 
> > >   ls -lL $(which xflock4)  
> > The output from that is:
> > 
> > -r-xr-xr-x 10 root root 1536  1 jan 1970
> > /run/current-system/profile/bin/xflock4
> > 
> > 
> > Albin  
> 
> Aha!
> 
> Add (screen-locker-service xfce4-session "xflock4") to your services
> in your guix config file.
> 
> This means:
> 
> (operating-system
>  ......
>  (services (cons* (screen-locker-service xfce4-session "xflock4")
> %desktop-services)))
> 
> Or add it to an existing "services" entry.

When I try to reconfigure with this I get:

guix system: error: failed to load '/etc/config.scm':
/etc/config.scm:56:19: In procedure #<procedure 3cf9820 ()>:
/etc/config.scm:56:19: In procedure module-lookup: Unbound variable:
xfce4-session




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Fri, 20 May 2016 18:29:01 GMT) Full text and rfc822 format available.

Message #61 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Fri, 20 May 2016 20:28:48 +0200
On Fri, 20 May 2016 22:22:01 +0200
Albin <albin <at> fripost.org> wrote:

> Den Fri, 20 May 2016 19:48:49 +0200
> skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:
> 
> > On Fri, 20 May 2016 19:15:06 +0200
> > Albin <albin <at> fripost.org> wrote:
> >   
> > > >   ls -lL $(which xflock4)    
> > > The output from that is:
> > > 
> > > -r-xr-xr-x 10 root root 1536  1 jan 1970
> > > /run/current-system/profile/bin/xflock4
> > 
> > Add (screen-locker-service xfce4-session "xflock4") to your services
> > in your guix config file.
> > 
> > This means:
> > 
> > (operating-system
> >  ......
> >  (services (cons* (screen-locker-service xfce4-session "xflock4")
> > %desktop-services)))
> > 
> > Or add it to an existing "services" entry.  
> 
> When I try to reconfigure with this I get:
> 
> guix system: error: failed to load '/etc/config.scm':
> /etc/config.scm:56:19: In procedure #<procedure 3cf9820 ()>:
> /etc/config.scm:56:19: In procedure module-lookup: Unbound variable:
> xfce4-session

Extend use-package-modules so that it contains xfce:

(use-package-modules xfce .....)

If you have no "use-package-modules" form, it's supposed to go at the toplevel.

>Do you mean as a replacement for "screen-locker-service xscreensaver" or an additional service?

I don't think it makes a difference. It should support multiple instances just fine.





Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Fri, 20 May 2016 18:43:02 GMT) Full text and rfc822 format available.

Message #64 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Fri, 20 May 2016 20:42:09 +0200
Errr. Oops. Better not do what I said previously (at least not permanently).

Danny said:
> services (cons* (screen-locker-service xfce4-session "xflock4")

Because of [1], that is maybe not the right fix (however, it should work).

Can you do

 $ cat $(which xflock4)

please?

It seems to be a wrapper that just uses other tools to do the actual locking. Which ones?

It might be that it doesn't find xscreensaver-common but does find gnome-screensaver-command in your profile. Either way it's using something to lock the screen which then won't be able to unlock.

[1] https://unix.stackexchange.com/questions/101806/why-doesnt-my-screen-lock-in-xfce




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Fri, 20 May 2016 20:37:02 GMT) Full text and rfc822 format available.

Message #67 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 21 May 2016 00:36:29 +0200
[Message part 1 (text/plain, inline)]
Den Fri, 20 May 2016 20:42:09 +0200
skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:

> Errr. Oops. Better not do what I said previously (at least not
> permanently).
> 
> Danny said:
> > services (cons* (screen-locker-service xfce4-session "xflock4")  
> 
> Because of [1], that is maybe not the right fix (however, it should
> work).

Yes, it didn't work.  I got the same problem as before with an
automatic authentication failure.

> 
> Can you do
> 
>  $ cat $(which xflock4)
> 
> please?

Sure.  See the attached file.

Thanks

Albin

> 
> It seems to be a wrapper that just uses other tools to do the actual
> locking. Which ones?
> 
> It might be that it doesn't find xscreensaver-common but does find
> gnome-screensaver-command in your profile. Either way it's using
> something to lock the screen which then won't be able to unlock.
> 
> [1]
> https://unix.stackexchange.com/questions/101806/why-doesnt-my-screen-lock-in-xfce

[cat-xflock4 (application/octet-stream, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sat, 21 May 2016 04:38:01 GMT) Full text and rfc822 format available.

Message #70 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Albin <albin <at> fripost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 21 May 2016 06:37:49 +0200
On Sat, 21 May 2016 00:36:29 +0200
Albin <albin <at> fripost.org> wrote:

Ok, then let's try to find out which locker xflock4 actually uses (from the file you attached).

To recap, when you call

  $ xflock4

manually it locks but doesn't allow you to unlock, right?

Please try to call these manually (in that order) and stop at the first one that doesn't throw an error:

$ xscreensaver-command -lock
$ gnome-screensaver-command --lock
$ xlock -mode blank
$ slock

Which one was it?

(It will probably still be unable to unlock)




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sat, 21 May 2016 06:37:01 GMT) Full text and rfc822 format available.

Message #73 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sat, 21 May 2016 10:35:59 +0200
Den Sat, 21 May 2016 06:37:49 +0200
skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:

> On Sat, 21 May 2016 00:36:29 +0200
> Albin <albin <at> fripost.org> wrote:
> 
> Ok, then let's try to find out which locker xflock4 actually uses
> (from the file you attached).
> 
> To recap, when you call
> 
>   $ xflock4
> 
> manually it locks but doesn't allow you to unlock, right?

Right.

> 
> Please try to call these manually (in that order) and stop at the
> first one that doesn't throw an error:
> 
> $ xscreensaver-command -lock

Unable to unlock.

> $ gnome-screensaver-command --lock

Command not found.

> $ xlock -mode blank

Worked. ('xlock' also worked.)

> $ slock

Worked.

> 
> Which one was it?
> 
> (It will probably still be unable to unlock)

Now what? :)

Albin





Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sun, 22 May 2016 21:44:02 GMT) Full text and rfc822 format available.

Message #76 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Albin <albin <at> fripost.org>
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sun, 22 May 2016 23:43:14 +0200
Albin <albin <at> fripost.org> skribis:

> Den Sat, 21 May 2016 06:37:49 +0200

[...]

>> Please try to call these manually (in that order) and stop at the
>> first one that doesn't throw an error:
>> 
>> $ xscreensaver-command -lock
>
> Unable to unlock.
>
>> $ gnome-screensaver-command --lock
>
> Command not found.
>
>> $ xlock -mode blank
>
> Worked. ('xlock' also worked.)
>
>> $ slock
>
> Worked.

IIUC, xfce-lock uses one of the above lockers.  For them to work, and if
you want to be able to unlock your screen ;-), you need to make sure you
use ‘screen-locker-service’  for each of them.

So:

  (operating-system
    ;; …
    (services (cons (screen-locker-service xscreensaver)
                    %desktop-services)))

since ‘%desktop-services’ already takes care of slock and xlock.

Could you try and report back?  We’re getting there! :-)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Sun, 22 May 2016 21:58:02 GMT) Full text and rfc822 format available.

Message #79 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Sun, 22 May 2016 23:56:45 +0200
Den Sun, 22 May 2016 23:43:14 +0200
skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:

> Albin <albin <at> fripost.org> skribis:
> 
> > Den Sat, 21 May 2016 06:37:49 +0200  
> 
> [...]
> 
> >> Please try to call these manually (in that order) and stop at the
> >> first one that doesn't throw an error:
> >> 
> >> $ xscreensaver-command -lock  
> >
> > Unable to unlock.
> >  
> >> $ gnome-screensaver-command --lock  
> >
> > Command not found.
> >  
> >> $ xlock -mode blank  
> >
> > Worked. ('xlock' also worked.)
> >  
> >> $ slock  
> >
> > Worked.  
> 
> IIUC, xfce-lock uses one of the above lockers.  For them to work, and
> if you want to be able to unlock your screen ;-), you need to make
> sure you use ‘screen-locker-service’  for each of them.
> 
> So:
> 
>   (operating-system
>     ;; …
>     (services (cons (screen-locker-service xscreensaver)
>                     %desktop-services)))
> 

This was my original configuration which didn't let me unlock if I had
locked with xflock4. Any other ideas?

> since ‘%desktop-services’ already takes care of slock and xlock.
> 
> Could you try and report back?  We’re getting there! :-)

I hope so! :)

> 
> Ludo’.

Albin




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Mon, 23 May 2016 08:12:01 GMT) Full text and rfc822 format available.

Message #82 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Albin <albin <at> fripost.org>
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Mon, 23 May 2016 10:11:27 +0200
Albin <albin <at> fripost.org> skribis:

> Den Sun, 22 May 2016 23:43:14 +0200
> skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:
>
>> Albin <albin <at> fripost.org> skribis:
>> 
>> > Den Sat, 21 May 2016 06:37:49 +0200  
>> 
>> [...]
>> 
>> >> Please try to call these manually (in that order) and stop at the
>> >> first one that doesn't throw an error:
>> >> 
>> >> $ xscreensaver-command -lock  
>> >
>> > Unable to unlock.
>> >  
>> >> $ gnome-screensaver-command --lock  
>> >
>> > Command not found.
>> >  
>> >> $ xlock -mode blank  
>> >
>> > Worked. ('xlock' also worked.)
>> >  
>> >> $ slock  
>> >
>> > Worked.  
>> 
>> IIUC, xfce-lock uses one of the above lockers.  For them to work, and
>> if you want to be able to unlock your screen ;-), you need to make
>> sure you use ‘screen-locker-service’  for each of them.
>> 
>> So:
>> 
>>   (operating-system
>>     ;; …
>>     (services (cons (screen-locker-service xscreensaver)
>>                     %desktop-services)))
>> 
>
> This was my original configuration which didn't let me unlock if I had
> locked with xflock4. Any other ideas?

Oh wait; since the command is called “xscreensaver-command”, not
“xscreensaver” (well in fact there are both), this should be:

  (cons (screen-locker-service xscreensaver "xscreensaver-command")
        %desktop-services)

Could you try this one?

Thanks for your patience.  :-)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Mon, 23 May 2016 20:19:01 GMT) Full text and rfc822 format available.

Message #85 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Unable to unlock xscreensaver in Xfce
Date: Mon, 23 May 2016 22:18:23 +0200
Den Mon, 23 May 2016 10:11:27 +0200
skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:

> Albin <albin <at> fripost.org> skribis:
> 
> > Den Sun, 22 May 2016 23:43:14 +0200
> > skrev Re: bug#23286: Unable to unlock xscreensaver in Xfce:
> >  
> >> Albin <albin <at> fripost.org> skribis:
> >>   
> >> > Den Sat, 21 May 2016 06:37:49 +0200    
> >> 
> >> [...]
> >>   
> >> >> Please try to call these manually (in that order) and stop at
> >> >> the first one that doesn't throw an error:
> >> >> 
> >> >> $ xscreensaver-command -lock    
> >> >
> >> > Unable to unlock.
> >> >    
> >> >> $ gnome-screensaver-command --lock    
> >> >
> >> > Command not found.
> >> >    
> >> >> $ xlock -mode blank    
> >> >
> >> > Worked. ('xlock' also worked.)
> >> >    
> >> >> $ slock    
> >> >
> >> > Worked.    
> >> 
> >> IIUC, xfce-lock uses one of the above lockers.  For them to work,
> >> and if you want to be able to unlock your screen ;-), you need to
> >> make sure you use ‘screen-locker-service’  for each of them.
> >> 
> >> So:
> >> 
> >>   (operating-system
> >>     ;; …
> >>     (services (cons (screen-locker-service xscreensaver)
> >>                     %desktop-services)))
> >>   
> >
> > This was my original configuration which didn't let me unlock if I
> > had locked with xflock4. Any other ideas?  
> 
> Oh wait; since the command is called “xscreensaver-command”, not
> “xscreensaver” (well in fact there are both), this should be:
> 
>   (cons (screen-locker-service xscreensaver "xscreensaver-command")
>         %desktop-services)
> 
> Could you try this one?
> 

It didn't work.  I got the same authentication error when tried to
unlock.

> Thanks for your patience.  :-)

Likewise! :)

> 
> Ludo’.

Albin




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Tue, 18 Feb 2020 14:27:01 GMT) Full text and rfc822 format available.

Message #88 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Albin <albin <at> fripost.org>, 23286 <at> debbugs.gnu.org
Subject: Hunting #23286: Unable to unlock xscreensaver in Xfce
Date: Tue, 18 Feb 2020 15:26:35 +0100
Dear,

The bug #23286 is more than 3 years old.
What is the status?
Any progress? :-)


[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23286

All the best,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Tue, 18 Feb 2020 21:42:02 GMT) Full text and rfc822 format available.

Message #91 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Hunting #23286: Unable to unlock xscreensaver in Xfce
Date: Tue, 18 Feb 2020 22:41:07 +0100
Is this also why i3lock can't be unlocked?

On Tue, Feb 18, 2020 at 15:26, zimoun <zimon.toutoune <at> gmail.com> wrote:
> Dear,
> 
> The bug #23286 is more than 3 years old.
> What is the status?
> Any progress? :-)
> 
> 
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23286
> 
> All the best,
> simon
> 
> 
> 






Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Tue, 18 Feb 2020 22:39:02 GMT) Full text and rfc822 format available.

Message #94 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: raingloom <raingloom <at> riseup.net>
Cc: 23286 <at> debbugs.gnu.org
Subject: Re: bug#23286: Hunting #23286: Unable to unlock xscreensaver in Xfce
Date: Tue, 18 Feb 2020 23:38:25 +0100
On Tue, 18 Feb 2020 at 22:42, raingloom <raingloom <at> riseup.net> wrote:

> Is this also why i3lock can't be unlocked?

I do not know.

Have you tried the initial fix and the Danny's updated one?

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23286#37
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23286#19


All the best,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#23286; Package guix. (Tue, 25 Feb 2020 20:41:02 GMT) Full text and rfc822 format available.

Message #97 received at 23286 <at> debbugs.gnu.org (full text, mbox):

From: Albin <albin <at> fripost.org>
To: zimoun <zimon.toutoune <at> gmail.com>, 23286 <at> debbugs.gnu.org
Subject: Re: Hunting #23286: Unable to unlock xscreensaver in Xfce
Date: Tue, 25 Feb 2020 21:39:52 +0100
Dear Simon,

I'm not using GNU Guix anymore so I'm afraid I can't answer your question.

Best,

Albin

On 2020-02-18 15:26, zimoun wrote:
> Dear,
> 
> The bug #23286 is more than 3 years old.
> What is the status?
> Any progress? :-)
> 
> 
> [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23286
> 
> All the best,
> simon
> 




Reply sent to zimoun <zimon.toutoune <at> gmail.com>:
You have taken responsibility. (Fri, 28 Feb 2020 11:54:01 GMT) Full text and rfc822 format available.

Notification sent to Albin <albin <at> fripost.org>:
bug acknowledged by developer. (Fri, 28 Feb 2020 11:54:02 GMT) Full text and rfc822 format available.

Message #102 received at 23286-done <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Albin <albin <at> fripost.org>
Cc: 23286-done <at> debbugs.gnu.org
Subject: Re: Hunting #23286: Unable to unlock xscreensaver in Xfce
Date: Fri, 28 Feb 2020 12:53:17 +0100
Dear Albin,

On Tue, 25 Feb 2020 at 21:40, Albin <albin <at> fripost.org> wrote:

> I'm not using GNU Guix anymore so I'm afraid I can't answer your question.

I am sad to learn that you had switched to another system.


Well, because it was tagged 'moreinfo' on Monday April, 18th 2016 --
almost 4 years ago -- and the last activity was on May, 23rd 2016; and
the user that reported the issue -- probably local to their own
configuration -- does not run Guix anymore; and because the screen
locking service seems working elsewhere, then I am closing this bug.


Fell free to reopen it if you hit it again.


All the best,
simon

> > [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23286




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 28 Mar 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.