-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annoying error message when locking screen #257
Comments
I follow your Steps to Reproduce and do not get the Screen Saver Error dialog after unlocking the screen. If I lock the screen (not suspend) and run |
Maybe this will help, but notice that it happens only with xscreensaver 5.44. WIth previous versions it is not. Secondly it happens only when suspend is called, try |
I have xscreensaver 5.44, and I've tried using |
So, the problem isn't as clear as it seemed to me and @kmiernik. There should be a hidden parameter somewhere — maybe, in xscreensaver. I also have xscreensaver 5.42 and 5.43 in |
My next guess for culprit is gdm. If I switch to lxdm I have no error message anymore. Perhaps it is locking the screen before the lxqt. |
I use sddm. |
I use sddm, too.
tsujan <[email protected]> 於 2020年5月31日 週日 19:55 寫道:
… My next guess for culprit is gdm.
I use sddm.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#257 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOZCGP5256ID6GALLDX2D3RUJASHANCNFSM4NO3EJ7Q>
.
|
On the computer I did tests, I have gdm too but it's disabled (I needed gdm to install gnome, in order to test some Qt apps under it). I don't want to install xscreensaver on my main laptop (I'm working under its LXQt session) and can't uninstall gdm on my (older) test laptop (I need its gnome for tests). But I think, sooner or later, we'll find the cause and, most probably, it won't be in LXQt. |
Ah, found something interesting in xscreensaver
(From changelog for version 5.43 on https://www.jwz.org/xscreensaver/changelog.html) So I tried it - if I uncheck "Lock screen before suspending/hibernating", the screen is still locked after resuming from suspend. Under the hood, a process xscreensaver-systemd listens to That also explains why the issue did not exist for older xscreensaver versions - systemd integration is new in xscreensaver 5.43. |
It makes perfect sense. Then, I guess we don't need to do anything. If new versions of xscreensaver don't need our option, the error message shows the user that he/she should either disable xscreensaver's mechanism or, more easily, uncheck LXQt's option. @yan12125, if you agree on that, then this issue could be closed. |
Perhaps, we could change the message to something like this: Failed to run "xdg-screensaver lock". The reason may be that you do not have a locker/screensaver compatible with xdg-screensaver installed and running or the locking is done independently of LXQt. |
Agreed - changing the message is the only thing LXQt needs to do. Although I believe xscreensaver is the cause, @kmiernik, can you confirm that? |
@yan12125 The display manager may only affect timing: If LXQt locks the screen first, the error message won't show up. |
I confirm that unchecking "Lock screen before suspending/hibernating" (I had hard time finding it) clears the problem. And yes, It looks like there is a race condition depending on display manager, with gdm I have the message each time, with lxdm it is like 1 in 10 tries. |
Thanks for testing! The option is in lxqt-config-session as the functionality is done by lxqt-session [1]. Maybe it should be migrated to lxqt-powermanagement, or even be split out to a new, standalone daemon. That should improve the overall stability in LXQt as bugs like lxqt/lxqt#1803 will not crash the whole session.
Sorry to hear that. As lxqt-session uses an approach similar to xscreensaver (lock the screen when the If LXQt cannot lock before suspend reliably either, a possible solution might be adding a new action like "lock screen and then suspend" and let lxqt-powermanagement to run that action when the lid is closed. [1] https://github.com/lxqt/lxqt-session/blob/master/lxqt-session/src/lockscreenmanager.cpp |
Very good idea! |
For a past two days I have been using suggested configuration with xscreensaver compiled From a user perspective having all blank/lock/suspend options in one place and govern by one daemon seems like a reasonable simplification and it would be easier to set the expected behavior. |
Thanks for testing! Then the only thing to change in LXQt is the error message in the dialog. |
I agree — for this issue to be closed. Later, we'll really need to put those settings elsewhere, so that lxqt-session will be immune to bugs from other codes, as you proposed above. |
I created lxqt/lxqt#1806 for tracking those. |
Just Install sscreensaver |
@tsujan chabuduo development ... you people are for LOLZ - bug still exist as well now.. |
still exist as well now |
Same, happens with Lubuntu. |
I've a default installation of Lubuntu 24.04 in Vbox with xscreensaver installed and cannot reproduce this. |
I am also on Lubuntu and the issue is reproducible every time I suspend the system. |
As I can't reproduce: could you try using this locking method instead of xscreensaver? |
I just installed Debian 12.6 with LXQt and lightdm, but this was a very custom, barebones install, probably too barebones. None of xscreensaver, xdg-utils, or light-locker were installed. This being the case, I was getting this error when locking or suspending the machine. So, I tried installing xscreensaver and xdg-utils. (I believe I logged out and/or restarted after doing this, but I can't remember for sure.) This did not fix the problem. Then I tried installing light-locker, and this fixed the problem, but xscreensaver was telling me that the two interfere with each other, so I next uninstalled xscreensaver, and now this is fixed. Weird bug because I have a different machine that is up to date, with xscreensaver and xdg-utils installed, but not light-locker, and I can't reproduce the bug there. |
As @kmiernik pointed out, the solution is to go to the LXQt settings and untick "Lock screen before suspending/hibernating". Here is the exact path to access this on Lubuntu:
|
I too run into this issue and the solution by @AengusBl does not work, at least not on Arch. |
I wrote that comment because that's what fixed the issue for me on Lubuntu. I guess Arch is too different or you have a different issue. |
Expected Behavior
When the screen is locked correctly, no error message should be shown.
Current Behavior
An error message is shown with xscreensaver after unlocking the screen.
Possible Solution
Do we lock the screen twice?!
Steps to Reproduce (for bugs)
Then, after unlocking the screen, you'll see this dialog:
This is redundant because the screen was locked and unlocked correctly.
Context
See lxqt/lxqt#1803 (comment)
System Information
The text was updated successfully, but these errors were encountered: