Suspend To Disk Using KDE – OpenSUSE 10.3

15 10 2007

My suspend woes on linux are over! I regret to say that I have it working in OpenSuse 10.3 rather than in Kubuntu as I wanted. Perhaps I can get it to work once Kubuntu 7.10 is released. For now, I leave you with what I had to do in order to get this to work.

OpenSuse 10.3 uses Pm-utils for all its power management. This is located in /usr/lib/pm-utils/. Under this folder is a lot of configuration files. The folder we’re concerned with is sleep.d. So under here we need to add a script to be called once it is loaded: 11ipw3945.

Create this file with the following contents:

#!/bin/sh

case "$1" in
hibernate|suspend)
/sbin/lsmod | grep -q ipw3945 || exit 0
{ /sbin/service ipw3945d stop && /sbin/modprobe -r ipw3945 ; } 2>>/dev/null ;;
thaw|resume)
{ /sbin/modprobe -r ipw3945 && /sbin/modprobe ipw3945 && /sbin/service ipw3945d start ; } 2>>/dev/null ;;
*)
;;
esac

exit $?

Once that script is created, give it execute rights with this command: sudo chmod +x 11ipw3945. That’s it!

What’s happening is that it will use the modprobe command to stop and start ipw3945 to enable wireless support.

Hopefully I can do the same in Kubuntu.





Go To Sleep!

15 10 2007

At the count of three, you will fall in to a dreamy state. One, imagine you have a limitless hard drive. Two, your processor is the top of the line. Three, Windows is the thing that goes on houses not in computers.

What the? You were supposed to fall asleep, not have that stupid grin on your face!

Yep, that’s exactly what I think my laptop goes through every time I try to either put it to sleep or hibernate while running Ubuntu. Which is the biggest reason I don’t have Ubuntu installed on my Tablet PC. It’s running as a *gasp* virtual machine in *double gasp* Vista.

I’m ashamed. Some one please help me fix this sleep problem and get me running Ubuntu natively on my Toshiba R25!