Re: And again suspend2ram

Mark Wenzel <[email protected]> Thu, 11 Jan 2007 14:07:42 +0100
Newsgroups gmane.linux.suse.laptop
Message-ID <[email protected]>
Hi Dennis,

I had the same problem here. Suspend2ram worked fine until I installed
my ISDN-pcmcia-Card (FritzCard PCMCIA). I found out, that suspend works
fine, when I eject the card before going to suspend and wait until
service isdn has ended.
After resume the smpppd was not alive anymore.
So I did some work in /etc/pm/hooks:
original file-list:

00clear
01logging
05led
06autofs
10NetworkManager
23dock
30s2disk-check
45pcmcia
50modules
...

NEW ordered (!!!) file list:
00clear
00smppd     <<<< new file
01led
02pcmcia    <<<< modified file
03logging
06autofs
10NetworkManager
23dock
30s2disk-check
50modules
...

I modified the pcmcia-file to wait until the service isdn has ended -
otherwise the machine freezes when resuming:
---snip---
#!/bin/bash

case "$1" in
        hibernate|suspend)
                if [ -x "/sbin/pccardctl" ]; then
                        echo "ejecting PCMCIA cards..."
                        /sbin/pccardctl eject
			# HERE STARTS THE MODIFIED PART
                        while [ X$x = X ]
                        do
                                /etc/init.d/isdn status
                                if [ $? -eq 3 ]
                                then
                                        x=x
                                else
                                        sleep 1
                                fi
                        done
                        sleep 2
			# HERE ENDS THE MODIFIED PART
                fi
                ;;
        thaw|resume)
                if [ -x "/sbin/pccardctl" ]; then
                        echo "inserting PCMCIA cards..."
                        /sbin/pccardctl insert
                fi
                ;;
        *)
                ;;
esac


exit 0

---snap---

Here is the content of the file 00smppd to start the service smpppd on
resume:
---snip---
#!/bin/bash

case "$1" in
        thaw|resume)
                if [ -x /etc/init.d/smpppd ]
                then
                        /etc/init.d/smpppd start
                fi
                ;;
        *)
                ;;
esac

exit 0
--snap---

I hope this will help you solving your Problem.

Mark

Dennis Campbell wrote:
> Hi all,
> i upgraded from suse 10.1 to opensuse 10.2. Now suspend2ram doesn't
> work properly. 90% of the tries ends up in my laptop going to sleep,
> but when trying to wake up I get a blank screen with serious crash (I
> have to plug out all power then replug to get laptop to boot again).
> Sometimes s2ram works though. I have been trying to find out what the
> reason is without any success. My computer is in the powersave
> whitelist.
> My System: Asus M6N,opensuse 10.2, gnome
> Can anyone help me debug.
> Thanx.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>