Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128080 - hibernate-script starts xlock the wrong way
Summary: hibernate-script starts xlock the wrong way
Status: VERIFIED DUPLICATE of bug 128081
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-30 00:14 UTC by Steffen Wolf
Modified: 2006-03-30 00:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Wolf 2006-03-30 00:14:41 UTC
sys-power/hibernate-script-1.12 has the following issues regarding xlock:

It doesn't find out the current user correctly when some unusual windowmanager is used (e.g. evilwm). One should add the process evilwm to the list of processes in the line "for xpid in `pidof ...`"

More important: It waits for xlock to finish, i.e. it waits until the user has typed in his password. On some machines the hibernate-script is started via acpid after some button event. On some machines these events produce an echo, causing acpid to call the script twice. There is a lockfile-mechanism to make sure that this doesn't lead to an unintentional sleepfall, but acpid waits for the hibernate-script to finish, which waits for the xlock to finish, which can lead to the behaviour that the computer falls asleep straight after the user enters the password for unlocking X.

Circumvention: Start xlock and detach it completely from the hibernate-script. The changes are:
- su $XUSER -c "xlock -mode blank &"
+ su $XUSER -c "xlock -mode blank &" >/dev/null 2>/dev/null

Simple as that. While one is at it, one can also move the starting of xlock to the before-suspend-block (change AddResumeHook 91 LockXlock to AddSuspendHook 91 LockXlock), this way it's impossible to catch a glimpse at the desktop before xlock is started.
Comment 1 Steffen Wolf 2006-03-30 00:17:11 UTC

*** This bug has been marked as a duplicate of 128081 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-30 00:17:53 UTC
CLOSED