View Single Post
Old 07-01-06, 05:51 PM   #7
Registered User
Join Date: Mar 2005
Posts: 1
Default Re: Suspend broken on FC5.

OMG!!!! It works!

You have no idea how long I've been trying to get suspend to work (>2 years) I've tried everything but the kitchen sink to try and get it working.

Found your post and 2min+1reboot later - suspending away

One additional thing you might want to add: When I came back from suspend the first time - I had the blank screen issue... but... Ctrl+Alt+F7 brought X back (never used to)

One of the (many many) posts I'd read before had a solution to this.


Create a shell script that switches out of X and then back again after suspend.


# discover video card's ID
ID=`lspci | grep VGA | awk '{ print $1 }' | sed -e 's@0000:@@' -e 's@:@/@'`

# securely create a temporary file
TMP_FILE=`mktemp /var/tmp/video_state.XXXXXX`
trap 'rm -f $TMP_FILE' 0 1 15

# switch to virtual terminal 1 to avoid graphics
# corruption in X
chvt 1

# write all unwritten data (just in case)

# dump current data from the video card to the
# temporary file
cat /proc/bus/pci/$ID > $TMP_FILE

# suspend
echo -n mem > /sys/power/state

# restore video card data from the temporary file
# on resume
cat $TMP_FILE > /proc/bus/pci/$ID

# switch back to virtual terminal 7 (running X)
chvt 7

# remove temporary file
rm -f $TMP_FILE
(Note I didn't need to add the Option VBERestore to xorg.conf mentioned in the above post... perhaps it's not saving the video data correctly... but the console switching works)

ChrisNutting is offline   Reply With Quote