! 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 !
Suspend/Hibernate from Xfce Session does not respect Xfpm settings
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Sertse 2009-11-22 14:52:31 CET
Xfpm has the option to lock the screen whenever the computer goes into suspend or hibernate, which works when you suspend/hibernate through Xfpm. (E.g. when you click suspend/hibernate from the xfpm tray icon, or your computer has been idling long enough)

Choosing the suspend / hiberate options from xfce-session-(logout) however does not respect those settings. The screen is not locked when you resume, even when xfpm settings specify it. 

Fixing this would solve a inconsistency and improves integration between xfce products.
Comment 1 Nick Schermer editbugs 2010-02-07 12:44:43 CET
Ali can you look at this?
Comment 2 Ali Abdallah editbugs 2010-02-09 11:21:29 CET
(In reply to comment #0)
> Fixing this would solve a inconsistency and improves integration between xfce
> products.

Yes, but first of all we need to define the way that xfce's session interacts with a running power manager (not only xfpm, since some people prefer to use other power managers), unfortunately there were a standard freedesktop draft about this that was deployed widely in xfpm, gpm and kpowersave, this standard is no longer supported and it is removed from gpm, because kde wanted to do something while gnome didn't agree and so on...

I have some ideas on mind that would be possible to do probably for 4.10, keeping in mind that xfpm might run on other desktop environment, and xfce's session might have gpm or another power manager running.

Anyway, will keep you notified.
Comment 3 Jérôme Guelfucci editbugs 2010-10-20 23:07:18 CEST
*** Bug 6740 has been marked as a duplicate of this bug. ***
Comment 4 Aidan Gauland 2011-09-15 00:03:40 CEST
(In reply to comment #2)
> (In reply to comment #0)
> > Fixing this would solve a inconsistency and improves integration between xfce
> > products.
> 
> Yes, but first of all we need to define the way that xfce's session interacts
> with a running power manager (not only xfpm, since some people prefer to use
> other power managers), unfortunately there were a standard freedesktop draft
> about this that was deployed widely in xfpm, gpm and kpowersave, this standard
> is no longer supported and it is removed from gpm, because kde wanted to do
> something while gnome didn't agree and so on...
> 
> I have some ideas on mind that would be possible to do probably for 4.10,
> keeping in mind that xfpm might run on other desktop environment, and xfce's
> session might have gpm or another power manager running.
> 
> Anyway, will keep you notified.

Is there a workaround for this in Xfce4.8?  (I'm using the packages in Debian wheezy.)
Comment 5 Christopher Meiklejohn 2011-11-21 06:25:42 CET
Has anyone found a workaround for this yet?  I'm on debian/wheezy as well.
Comment 6 Christopher Meiklejohn 2011-11-21 06:32:37 CET
(In reply to comment #5)
> Has anyone found a workaround for this yet?  I'm on debian/wheezy as well.

Actually, I believe if I use the suspend button on my Thinkpad keyboard, this triggers the lock-after-resume correctly, where the suspend button in the logout dialog does not.  This is my current workaround.
Comment 7 Nick Schermer editbugs 2011-11-21 07:29:41 CET
I'm working on this for 4.10.
Comment 8 Christopher Meiklejohn 2011-11-21 17:54:45 CET
(In reply to comment #7)
> I'm working on this for 4.10.

Cool, thanks!
Comment 9 mus.svz 2012-04-29 14:13:42 CEST
this isn't fixed for me in 4.10. "xfce4-session-logout --suspend" still doesn't lock the screen.

I'm running Arch Linux btw.
Comment 10 Nick Schermer editbugs 2012-04-29 15:04:04 CEST
Have you enabled the lock on suspend option in the preferences?
Comment 11 mus.svz 2012-04-29 15:06:10 CEST
yes, the screen is locked when I close my laptop lid, just as it did in 4.8, but it still doesn't work using xfce4-session-logout.
Comment 12 mus.svz 2012-04-29 15:11:13 CEST
sorry, I just realized there is another setting in "Session and startup -> advanced".  This option indeed wasn't checked, I thought about the setting in the power manager.
So why are there two "lock screen" options, one in "session and startup" and one in the power manager settings ?!
Comment 13 Nick Schermer editbugs 2012-04-29 15:16:32 CEST
Because the code is not shared.

Bug #6019

Reported by:
Sertse
Reported on: 2009-11-22
Last modified on: 2012-04-29
Duplicates (1):
  • 6740 Suspend button in Xfce4-session logout does not lock screen!

People

Assignee:
Ali Abdallah
CC List:
5 users

Version

Attachments

Additional information