[SOLVED] Hibernation and suspend has stopped working.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been having some problems with suspend and hibernate lately. They both have have worked fine for six months after I got them working. Now they both are no longer working. Trying either would cause the screen to go black and the system would hang, forcing me to use the power button to power down. They both used to call up the screen saver, lock the screen and either suspend or hibernate. I was able to track one problem down to /usr/local/sbin/run-as-X-user.sh script. Line 14 and some characters missing at the beginning. I restored those characters and now suspend calls up the screen saver, locks the screen and then suspends, but hangs on resume with a black screen with a non flashing cursor in the upper left corner of the screen. Hibernate on the other hand has no change. I'm not sure how this script got messed up like it did since it was fine when I installed it 6 months ago. I am still getting a couple of errors concerning this script on line 13 and a blank line 16 which is at the end of the file. Other than the pm-suspend.log, I am not finding any other errors concerning this problem. I checked the logs in /var/log/ to no avail. To follow my pm-suspend.log and my run-as-X-user.sh files.
Code:
run-as-X-user.sh
#!/bin/bash
LOGGED_IN_USER=`ls -trl /tmp/.ICE-unix/ | tail -n -l | cut -d' ' -f3
NUM_X_USERS=`echo $LOGGED_IN_USER | wc -l`
# SESSION_MANAGER format determined analyzing current variable...
# DBUS_SESSION_BUS_ADDRESS found checking environment of xfce4-panel
if [ $NUM_X_USERS -eq 1 ]; then
su -c "export HOST=`hostname` ;
export SESSION_ID=`ls -t /tmp/.ICE-unix/ | head -nl` ;
export DISPLAY=:0.0 ;
export SESSION_MANAGER=local/$HOST:@/tmp/.ICE-unix/$SESSION_ID,unix/$HOST:/tmp/
export DBUS_SESSION_BUS_ADDRESS=`cat /proc/$(pidof xfce4-panel)/environ | tr '\0' '\n' | grep DBUS_SESSION_BUS_ADDRESS | cut -d '=' -f2-` ;
$*" $LOGGED_IN_USER
fi
I tracked the problem down to a pcmcia wifi card I am using. It is an EDUP 802.11 b/g that is using the bcm 4312 chipset. It uses the same drivers that my laptop's built-in wifi uses that has the bcm 4306 chipset. Apparently this pcmcia wifi card doesn't handle suspend and hibernate very well. With this card deactived I can suspend and hibernate and resume from both just fine. I'll close this thread out as solved and start a new thread concerning the pcmcia card.
Side note:
I am using this pcmcia card as a work around to some connection problems that I am experiencing with my built in wifi card. The connection problem has been tracked down to my Linksys WRT54G ver 2.2 that was running DD-WRT sp1. I had upgraded the DD-WRT firmware to an sp2 VINT build which caused the connection problem. The problem was tracked down to the SPI firewall blocking dhcp lease renewal packets, resulting in dropped connections. I have put in a firewall rule to allow these packets and so far so good with my built in wifi card.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.