Skip navigation.
Home
Now Shipping Version 8.0

MEPIS on ThinkPad R50e

Hi
I do not understand how to get suspend to work.
See this screen dump
http://www.linuxportalen.se/system/files?file=snapshot1_0.png
If I’m able to get this to work I can convince the family to swap XP for Linux in our laptop, work station already runs Mepis 6.0 and I would like the same on the laptop.
I’m a beginner to Linux so please be patient with me.

Edit
Got this from. http://www.linux.com/article.pl?sid=06/05/24/1716222
It works when I'm root

#!/bin/sh

# 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)
sync

# 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

How do I;
1.run this without being root?
2.run it with Fn+F4?
3.run it when I close the lid?

Please, I realy need help on

Please, I realy need help on this.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.