Re: Buster/XFCE unlock screen is blank

2019-06-03 Thread Russ Allbery
Jonathan Dowland  writes:
> On Sat, Jun 01, 2019 at 09:20:48PM +0200, gregor herrmann wrote:

>> I can't reproduce this in a quick test:
>>
>> Terminal 1: sleep 5 ; notify-send foo
>> Terminal 2: xscreensaver-command -lock
>>
>> No "foo" notification pops up over the screensaver image.
>>
>> (This is with awesome, maybe the story is different for desktop
>> environments.)

> I cannot reproduce it with gnome (1:3.30+1) running in an Xorg session
> (rather than Wayland). Perhaps it has been fixed.

Ah, excellent.  Thank you both!

-- 
Russ Allbery (r...@debian.org)   



Re: Buster/XFCE unlock screen is blank

2019-06-03 Thread Jonathan Dowland

On Sat, Jun 01, 2019 at 09:20:48PM +0200, gregor herrmann wrote:

I can't reproduce this in a quick test:

Terminal 1: sleep 5 ; notify-send foo
Terminal 2: xscreensaver-command -lock

No "foo" notification pops up over the screensaver image.

(This is with awesome, maybe the story is different for desktop
environments.)


I cannot reproduce it with gnome (1:3.30+1) running in an Xorg session
(rather than Wayland). Perhaps it has been fixed.


--

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland
⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net
⠈⠳⣄ Please do not CC me, I am subscribed to the list.



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Theodore Ts'o
On Sat, Jun 01, 2019 at 06:16:58AM +0530, Raj Kiran Grandhi wrote:
> 
> In a fresh install of Buster with XFCE desktop, locking the screen
> blanks the monitor and the monitor enters a power save state. After
> that, neither moving the mouse nor typing on the keyboard would turn
> the monitor back on.
> I could find two ways to get the display back on:
> 
> 1. Typing the password without any visual feedback (while the monitor
> continues to be in the power save state) unlocks the screen and the user
> session is displayed normally.
> 
> 2. Switching to another VT, say vt1 or vt2 turns the monitor back on
> and on switching
> back to the vt of the original session the unlock prompt is displayed
> normally and the screen can be unlocked.

There's another workaround (which is the one I use):

xset s off

This has other consequences as well, of course, but I tend to suspend
my laptop if it's ever going to be left alone, particularly if it's
running on battery.

And once I found a workaround which worked for my laptop, I was too
lazy to find a more "proper" fix.  :-)

- Ted



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Russ Allbery
Georg Faerber  writes:
> On 19-06-01 11:04:28, Russ Allbery wrote:

>> I did some research on that a while back and ended up not filing a bug
>> about it because it looked relatively pointless.  It appeared to be a
>> deep design choice on both sides, and not something anyone was likely
>> to solve, so I just switched to a desktop-aware locker.

> If I may ask, which one?

light-locker, hence why I know about the bug that started this thread.  :)
(I never filed it as a bug since I didn't mind the workaround.  In
retrospect, I should have.)

Obviously given the discussion here I'm not sure I'd recommend that one.

-- 
Russ Allbery (r...@debian.org)   



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Georg Faerber
Hi Russ, all,

On 19-06-01 11:04:28, Russ Allbery wrote:
> I did some research on that a while back and ended up not filing a bug
> about it because it looked relatively pointless.  It appeared to be a
> deep design choice on both sides, and not something anyone was likely
> to solve, so I just switched to a desktop-aware locker.

If I may ask, which one?

Cheers,
Georg


signature.asc
Description: PGP signature


Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Russ Allbery
gregor herrmann  writes:

> I can't reproduce this in a quick test:

> Terminal 1: sleep 5 ; notify-send foo
> Terminal 2: xscreensaver-command -lock

> No "foo" notification pops up over the screensaver image.

> (This is with awesome, maybe the story is different for desktop
> environments.) 

Yeah, I think it may be DE-related.  I ran into it with Xfce and, IIRC,
GNOME (although it would have been older GNOME).

-- 
Russ Allbery (r...@debian.org)   



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread gregor herrmann
On Sat, 01 Jun 2019 11:04:28 -0700, Russ Allbery wrote:

> It's worth noting here that xscreensaver has an IMO serious security
> vulnerability (unless maybe this has been fixed?): because it doesn't
> integrate properly with the desktop, it doesn't hide desktop
> notifications.  

I can't reproduce this in a quick test:

Terminal 1: sleep 5 ; notify-send foo
Terminal 2: xscreensaver-command -lock

No "foo" notification pops up over the screensaver image.

(This is with awesome, maybe the story is different for desktop
environments.) 


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Supertramp: Some Things Never Change


signature.asc
Description: Digital Signature


Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Russ Allbery
Adam Borowski  writes:

> But, the culprit is light-locker.  In general, it's in such a buggy
> state that I believe it shouldn't be in the distribution at all, much
> less a default of any kind.  After it replaced xscreensaver[1] as the
> xfce's dependency, I went into some pretty heated arguments, but then
> stormed off and ignored the issue.

It's worth noting here that xscreensaver has an IMO serious security
vulnerability (unless maybe this has been fixed?): because it doesn't
integrate properly with the desktop, it doesn't hide desktop
notifications.  Desktop notifications will appear above the lock screen.
If you therefore leave a locked computer in some relatively public place
(such as an open plan office at work), you may be exposing things on your
screen that you didn't expect, such as direct messages from some messaging
system that's plugged into desktop notifications.

I did some research on that a while back and ended up not filing a bug
about it because it looked relatively pointless.  It appeared to be a deep
design choice on both sides, and not something anyone was likely to solve,
so I just switched to a desktop-aware locker.

-- 
Russ Allbery (r...@debian.org)   



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Holger Levsen
On Sat, Jun 01, 2019 at 06:29:31PM +0200, Adam Borowski wrote:
> Using unstable myself, I'm not sure what to recommend for Buster.  

https://tracker.debian.org/pkg/physlock


signature.asc
Description: PGP signature


Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Jonathan Carter
Hey Adam

On 2019/06/01 18:29, Adam Borowski wrote:
> At the time of the xscreensaver debacle, there was no sane alternative
> (candidates depended on 80% of GNOME, offered no feedback nor discoverable
> controls to the user, etc).  There _is_ a wonderful alternative now:
> xfce4-screensaver, which seems to work perfectly[2] -- but alas, it's not in
> Buster.

When I first filed the ITP for xfce4-screensaver I got some pushback (of
which I don't all disagree with). After some discussion and digging in
deeper into the issue the Debian Xfce team agreed that it can be
maintained as part of the Xfce team. At freeze time it was still in
alpha and had some show-stopper issues, we decided that it would be best
for everyone not to have that in buster at that time. There are also
still some integration issues that are still outstanding. Overall it
just wasn't ready for buster in time, but I'll be happy to work on a
backport for buster when some of the last few issues have been resolved.

-Jonathan

-- 
  ⢀⣴⠾⠻⢶⣦⠀  Jonathan Carter (highvoltage) 
  ⣾⠁⢠⠒⠀⣿⡁  Debian Developer - https://wiki.debian.org/highvoltage
  ⢿⡄⠘⠷⠚⠋   https://debian.org | https://jonathancarter.org
  ⠈⠳⣄  Be Bold. Be brave. Debian has got your back.



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Adam Borowski
On Sat, Jun 01, 2019 at 11:06:42AM +0200, Andreas Tille wrote:
> > This appears to be a bug in light-locker specifically, which is the
> > default screen lock program with XFCE with lightdm.  See, for instance:
> > 
> > https://github.com/the-cavalry/light-locker/issues/114
> > 
> > Switching to another greeter from the default gtk-greeter appears to help
> > according to that bug, which may mean that the bug is actually in
> > lightdm-gtk-greeter.  There doesn't appear to be a Debian bug for this; it
> > might be a good idea to open one against light-locker (or, if you confirm
> > switching to slick-greeter per that bug, lightdm-gtk-greeter).
> 
> Yes, please file the bug (and may be report the bug number here).  We
> should not release with a broken greeter as default since we can not
> assume that normal users will find out the "switch VT trick" and instead
> will assume the box is frozen. 

While I greatly prefer slick-greeter (I use it exclusively since the first
day I reviewed+sponsored the package), I recall it doesn't support a11y
anywhere as well as the default greeter.  This is old data, though -- as my
wetware doesn't require a11y, I wouldn't even know what to look at.

But, the culprit is light-locker.  In general, it's in such a buggy state
that I believe it shouldn't be in the distribution at all, much less a
default of any kind.  After it replaced xscreensaver[1] as the xfce's
dependency, I went into some pretty heated arguments, but then stormed off
and ignored the issue.

Just some issues with light-locker.  INACCURATE, BASED ON AN OLD VERSION,
AND NOT RESEARCHED WELL AT ALL.  (Ie, areas to look at, not proper reports)
* it doesn't show anyone is logged in -- lock screen is pixel-to-pixel
  identical as the login screen
* breaks when the *DM is not lightdm.  A package dependency doesn't mean
  that lightdm is running or used to start that session.
* breaks with multiseat (as in: concurrent same-uid logins from different
  seats, not the systemd meaning)
* breaks if ssh -X into the box is used with some programs
* breaks with any non-standard VT assignment
(Some of the issues might have been already fixed.)

At the time of the xscreensaver debacle, there was no sane alternative
(candidates depended on 80% of GNOME, offered no feedback nor discoverable
controls to the user, etc).  There _is_ a wonderful alternative now:
xfce4-screensaver, which seems to work perfectly[2] -- but alas, it's not in
Buster.

Using unstable myself, I'm not sure what to recommend for Buster.  But if
the bugs can't get fixed in late freeze, and slick-greeter is not enough,
I's light-locker not the greeter I'd propose switching out of.


Meow!

[1]. When jwz planted a time-bomb in xscreensaver.
[2]. There was an issue with taking lots of CPU even when the monitor has
 been long since powered down, but that's now fixed.
-- 
⢀⣴⠾⠻⢶⣦⠀ Latin:   meow 4 characters, 4 columns,  4 bytes
⣾⠁⢠⠒⠀⣿⡁ Greek:   μεου 4 characters, 4 columns,  8 bytes
⢿⡄⠘⠷⠚⠋  Runes:   ᛗᛖᛟᚹ 4 characters, 4 columns, 12 bytes
⠈⠳⣄ Chinese: 喵   1 character,  2 columns,  3 bytes <-- best!



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Raj Kiran Grandhi
> > Switching to another greeter from the default gtk-greeter appears to help
> > according to that bug, which may mean that the bug is actually in
> > lightdm-gtk-greeter.  There doesn't appear to be a Debian bug for this; it
> > might be a good idea to open one against light-locker (or, if you confirm
> > switching to slick-greeter per that bug, lightdm-gtk-greeter).

Switching to slick-greeter helped. Thank you.

>
> Yes, please file the bug (and may be report the bug number here).  We
> should not release with a broken greeter as default since we can not
> assume that normal users will find out the "switch VT trick" and instead
> will assume the box is frozen.

Thank you for the feedback. I have filed a bug report (929834) for this issue.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929834

Regards,
Raj Kiran



Re: Buster/XFCE unlock screen is blank

2019-06-01 Thread Andreas Tille
Hi Russ,

On Fri, May 31, 2019 at 06:32:52PM -0700, Russ Allbery wrote:
> (This probably belonged on debian-user, but since I have background on
> this specific problem and already did the research.)

While this seems to be a problem for debian-user its very sensible that
the issue was raised here as well.  I stumbled upon this issue on two
laptops and I consider this a serious issue for the Buster release that.
Users ending up with a black screen in a not so uncommon setup is
something we need to avoid.  I intended to write a bug report about this
soon.
 
> Raj Kiran Grandhi  writes:
> 
> > In a fresh install of Buster with XFCE desktop, locking the screen
> > blanks the monitor and the monitor enters a power save state. After
> > that, neither moving the mouse nor typing on the keyboard would turn
> > the monitor back on.
> 
> Ctrl-Alt-F7 will also restore the desktop (which I think is just another
> version of your solution 2 of switching VTs).
> 
> This appears to be a bug in light-locker specifically, which is the
> default screen lock program with XFCE with lightdm.  See, for instance:
> 
> https://github.com/the-cavalry/light-locker/issues/114
> 
> Switching to another greeter from the default gtk-greeter appears to help
> according to that bug, which may mean that the bug is actually in
> lightdm-gtk-greeter.  There doesn't appear to be a Debian bug for this; it
> might be a good idea to open one against light-locker (or, if you confirm
> switching to slick-greeter per that bug, lightdm-gtk-greeter).

Yes, please file the bug (and may be report the bug number here).  We
should not release with a broken greeter as default since we can not
assume that normal users will find out the "switch VT trick" and instead
will assume the box is frozen. 

Kind regards

 Andreas.

-- 
http://fam-tille.de



Re: Buster/XFCE unlock screen is blank

2019-05-31 Thread Russ Allbery
(This probably belonged on debian-user, but since I have background on
this specific problem and already did the research.)

Raj Kiran Grandhi  writes:

> In a fresh install of Buster with XFCE desktop, locking the screen
> blanks the monitor and the monitor enters a power save state. After
> that, neither moving the mouse nor typing on the keyboard would turn
> the monitor back on.

Ctrl-Alt-F7 will also restore the desktop (which I think is just another
version of your solution 2 of switching VTs).

This appears to be a bug in light-locker specifically, which is the
default screen lock program with XFCE with lightdm.  See, for instance:

https://github.com/the-cavalry/light-locker/issues/114

Switching to another greeter from the default gtk-greeter appears to help
according to that bug, which may mean that the bug is actually in
lightdm-gtk-greeter.  There doesn't appear to be a Debian bug for this; it
might be a good idea to open one against light-locker (or, if you confirm
switching to slick-greeter per that bug, lightdm-gtk-greeter).

-- 
Russ Allbery (r...@debian.org)