Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-07-24 10:24:03

paolo321
Member
Registered: 2011-06-26
Posts: 121

screen not locked after hibernation

Hi, I tried 2 different virtual machines, just installed.
I want to have the screen locked when resume...

Xubuntu 11.04 has the screen locked after suspend or hibernate, out of the box
Opensuse 11.4 xfce suspend doesn't work (seems unrelated to xfce), and after hibernation screen is NOT locked
Of course, in Opensuse I checked that "Lock Screen..." option is active in xfce power manager... But it doesn't work :-(

Tried also Opensuse 12.1 beta, that has the same xfce power manager version as xubuntu 11.04 (1.0.10) ...
No way, doesn't work in Opensuse...
(It works as I want only if I do manually xflock4 && xfce-session-logout --hibernate)

Maybe Opensuse has not a good implementation of xfce and xubuntu is better?
(I'd like to move to Opensuse since lvm/luks has a better support...)

Or maybe I'm wrong about something? Googled with no luck about this issue, please help me...

EDIT:
on a physical machine, xubuntu suspend/hibernation has problems...
Opensuse suspend and hibernate both works well, but without asking password...

Last edited by paolo321 (2011-07-24 16:11:03)

Offline

#2 2011-07-26 10:32:27

paolo321
Member
Registered: 2011-06-26
Posts: 121

Re: screen not locked after hibernation

Screen is locked if I select suspend / hybernate from xfce power manager tray icon...
But not locked if I choose suspend/hybernate from session menu or logout menu it doesn't work

I read it's like that by design, imho it's not a good thing but at least I know it's not something wrong I've done.

Anyway...
I'm planning to do a zenity "custom logout" screen, where for example hibernate is xflock4 && xfce-session-logout --hibernate
Maybe there are better solutions?

Offline

#3 2011-08-13 12:00:11

angstrom
Member
Registered: 2011-08-13
Posts: 267

Re: screen not locked after hibernation

paolo321 wrote:

Screen is locked if I select suspend / hybernate from xfce power manager tray icon...
But not locked if I choose suspend/hybernate from session menu or logout menu it doesn't work

Me too

It looks like a bug since xfce 4.6 : https://bugzilla.xfce.org/show_bug.cgi?id=6019

On my netbook, when resuming from hibernation, after a quick grub show up, I have messages about kernel and initrd loaded up then it freeze for 30s, with no hdd activity. Then it clear the screen, and kernel resume (creating udev ..., doing fast boot ...).
Does your pc freeze for 30s (or may be less ) also ?  It is hard to figure out what goiing on as at this stage, there is no logging file :-(


Xfce is NOT Xubuntu. Bugs in Xubuntu don't mean that Xfce is buggy ...

Offline

#4 2011-08-21 14:40:37

paolo321
Member
Registered: 2011-06-26
Posts: 121

Re: screen not locked after hibernation

I worked around this issue with the same script I'm using to detect power button (see run-as-X-user.sh from other thread I've started, http://forum.xfce.org/viewtopic.php?id=6158)
Then in /etc/pm/sleep.d, create /etc/pm/sleep.d/00lockscreen (make it executable)

#!/bin/bash
	case "$1" in
		hibernate|suspend)
			/usr/local/sbin/run-as-X-user.sh /usr/bin/xflock4
		;;
		*)
		;;
	esac
exit 0

About 30 seconds freezing, I don't have anything similar, so I cannot help you...

Offline

Board footer

Powered by FluxBB