Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-03-2010, 06:30 AM   #1
Registered: Feb 2007
Distribution: CentOS
Posts: 34

Rep: Reputation: 17
Custom pm-utils suspend/resume hook stopped working

some time ago I created my own hook in /etc/pm/sleep.d/ in order to fill a few gaps in my e17

case "$1" in
        sudo -u username xscreensaver-command -display :0.0 -lock
	sudo -u username /opt/e17/bin/enlightenment_remote  -restart
exit 0
and it used to work as a charm for some time. However, at certain point it started returning this error in /var/log/pm-suspend.log:

/etc/pm/sleep.d/00customhook resume suspend: Failed to open connection to "session" message bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
and it stopped functioning. The only system changes I've made in the meantime are cleaning up some leftovers from gnome and kde, but I fail to see how would that affect X initialization or dbus's functions. Any help will be appreciated, thanks in advance.

EDIT: I did some experimenting with the hooks and found out that any command that has anything to do with X returns the same error if put in the hooks. Normal execution in terminal/tty works fine.

Last edited by TDMBG; 04-03-2010 at 08:52 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] acpid, pm-utils, suspend/resume and -current tuxrules Slackware 12 09-16-2009 09:33 PM
Suspend/Resume - custom scripts and mouse issues Arcalyth Linux - Laptop and Netbook 0 02-17-2009 05:30 PM
Request for Testing: Suspend/Resume (pm-utils backend) rworkman Slackware 16 11-10-2008 11:04 AM
where to hook a script into the resume process following pm-suspend? aheirich Linux - Laptop and Netbook 1 08-17-2008 11:12 AM
FreeNx suspend/resume function not working. bladehaze Ubuntu 1 09-14-2005 08:21 AM

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration