LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 04-03-2010, 06:30 AM   #1
TDMBG
LQ Newbie
 
Registered: Feb 2007
Distribution: CentOS
Posts: 29

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


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

Code:
#!/bin/bash
case "$1" in
    hibernate|suspend)
        sudo -u username xscreensaver-command -display :0.0 -lock
        ;;
    thaw|resume)
	sudo -u username /opt/e17/bin/enlightenment_remote  -restart
        ;;
    *)
	;;
esac
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:

Code:
/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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 07:22 PM.

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