! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
resume from hibernate does not prompt for password
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description whatmeurgent 2011-11-29 18:43:18 CET
1) I put my debian laptop in hibernation
2) I resume
3) no prompt for password

This SHOULD be no worse than closing the laptop lid, which DOES prompt for a password.

EXPECTED BEHAVIOUR: ask for a password.
Comment 1 Yves-Alexis Perez editbugs 2011-11-30 08:12:00 CET
Explaining how you do and how you configured xfpm might help. Please provide all the information in the bug report, we can't really extract every bit of information one by one...
Comment 2 Olivier Fourdan editbugs 2011-11-30 09:50:39 CET
Also please keep in mind that xfce does not deal with passwords itself, nor does it provide any screensaver/screen lock mechanism.

The password prompt on resume is the handled by the screensaver, which should be triggered via DBUS. Checking the output of dbus-monitor on the session bus while suspending then resuming may help here I guess.

It might also depend on what screensaver you actually use, and how you configured it.
Comment 3 Yves-Alexis Perez editbugs 2011-11-30 12:48:17 CET
(In reply to comment #2)
> Also please keep in mind that xfce does not deal with passwords itself, nor
> does it provide any screensaver/screen lock mechanism.

That's not completely true. There's xflock4, and xfce4-power-manager is able to lock the screen at suspend/hibernate time.

Since the bug was reported against xfce4-session I assume that the original poster used the logout screen (which shows suspend/hibernate buttons), but it'd help if he could provide that information.

Right now the suspend/hibernate is done by xfce4-session, which supports either upower/devicekit-power or hal. Since there's no version information we can't be sure which one is used (hal in stable, upower in testing/unstable), but in either way, none of them lock the screen. This should be improved in 4.10 (or 4.12) with the suspend stuff delegated completely to xfpm, which has the lock setting.
Comment 4 Nick Schermer editbugs 2011-11-30 12:57:58 CET
The problem is that Xfce4-session has its own suspend handling, that's what I'm working on.
Xfpm will only handle suspend/hibernate, Xfce4-session suspend/restart/logout. If Xfpm is asked to shutdown it will poke Xfce4-session to do so, the other way around for Xfce4-session with suspend and hibernate.
Comment 5 Olivier Fourdan editbugs 2011-11-30 13:15:13 CET
(In reply to comment #3)
> (In reply to comment #2)
> > Also please keep in mind that xfce does not deal with passwords itself, nor
> > does it provide any screensaver/screen lock mechanism.
> 
> That's not completely true. There's xflock4, 

xflock4 is just a simple wrapper script, it does not do any locking itself. Without an actual screensaver to do the job, xflock4 is useless.

> and xfce4-power-manager is able to lock the screen at suspend/hibernate time.

Again, xfce4-power-manager will not do anything, it will just call an external command, starting with xflock4, so without an actual screensaver to do the job, xfce4-power-manager won't lock anything by itself.

http://git.xfce.org/xfce/xfce4-power-manager/tree/common/xfpm-common.c#n83
Comment 6 whatmeurgent 2011-11-30 17:31:08 CET
Thanks for the quick initial responses. Here's some additional information I hope can be helpful. Let me know what else you need.

SCREENSAVER - I'm using xscreensaver v5.1.5. It was the default screensaver in my debian/xfce install, and I haven't touched the default configuration.

Olivier suggested "Checking the output of dbus-monitor on the session bus while suspending then resuming may help here I guess." How would I do that? I'll post you the output.

Yves-Alexis correctly assumed "the original poster used the logout screen (which shows suspend/hibernate buttons)".

Yves-Alexis wrote: "Right now the suspend/hibernate is done by xfce4-session, which supports either upower/devicekit-power or hal. Since there's no version information we can't be sure which one is used (hal in stable, upower in testing/unstable)".
---- I'm using debian testing (wheezy). The version of xfce4-session is 4.8.2-1

---- I don't see a package anywhere called xfpm, not using dpkg -l, apt-cache- show, I don't see it in a search of the on-line debian packages
Comment 7 Yves-Alexis Perez editbugs 2011-11-30 17:33:21 CET
xfce4-power-manager

Anyway, as told above, it's already known that the session manager doesn't lock on suspend/hibernate. If you want that, use the power manager (right click on the system tray icon, suspend)
Comment 8 Nick Schermer editbugs 2012-03-25 00:18:58 CET
Xfce4-session has locking support now.

Bug #8205

Reported by:
whatmeurgent
Reported on: 2011-11-29
Last modified on: 2012-03-25

People

Assignee:
Xfce Bug Triage
CC List:
4 users

Version

Version:
Unspecified

Attachments

Additional information