Mailinglist Archive: opensuse-mobile (24 mails)

< Previous Next >
[opensuse-mobile] SuSE 10.2 on lenovo X60 / usage of the onboard modem / working now (for me!)
  • From: Dieter Jurzitza <dieter.jurzitza@xxxxxxxxxxx>
  • Date: Sun, 4 Feb 2007 20:20:20 +0100
  • Message-id: <200702042020.20847.dieter.jurzitza@xxxxxxxxxxx>
Hi Stefan,
dear listmembers,
unfortunately softmodemd does not support the onboard modem of the lenovo X60,
the usage of the Conexant package is mandatory. The package I am using is
called:
hsfmodem-7.47.00.07full_k2.6.18.2_34_default-1suse.i586.rpm

As readily mentioned, it is neccessary to unload all drivers with regard to
the modem and the sound modules involved in order to achieve proper shutdown
and restart with suspend2ram and suspend2disk.

Using kde, kmix kept the sound module (provided by Connexant) busy, so I had
to kill it each time.

This can be achieved by the following script entitled 06kmix in /etc/pm/hooks:
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT
#!/bin/bash

. /etc/pm/functions

KMIXPID=`ps ax | awk '{if (match($5, "kmix")){print $1}}'`

case "$1" in
hibernate|suspend)
kill -SIGHUP $KMIXPID
;;
thaw|resume)
;;
*)
;;
esac

exit $?
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT

Restarting of kmix is impossible this way, because the powermanagement daemons
executing this file do not operate in the user's context. I will come to this
point later.
As a next step the hsf-modem driver should be unloaded:
This is done by another script in /etc/pm/hooks, it is called 08softmodem:
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT
#!/bin/bash

. /etc/pm/functions

case "$1" in
hibernate|suspend)
/etc/init.d/hsf stop
;;
thaw|resume)
/etc/init.d/hsf start
;;
*)
;;
esac

exit $?
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT

So far so good. suspend2ram and suspend2disk are up and running now, but the
automatic start of kmix is gone.

To achieve this, I did the following:
in ~/.kde/Autostart I put an executable script with the following content:
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT
#!/bin/sh
SLEEP=10
while [ 1 ]; do
PROCNUM=`ps ax | awk '{if(match($0," kmix")&&(!match($0,"awk"))){print
if [ "${PROCNUM}" = "" ]; then
kmix -autostart
fi
sleep $SLEEP
done
CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT

After restart, this script is executed as well. There is no kmix process
there, thus it is restarted.

Only to let you know. kpowersaved does not provide working functions for this
as of today.

To whom this may concern - take care



Dieter Jurzitza

--
-----------------------------------------------------------

|
\
/\_/\ |
| ~x~ |/-----\ /
\ /- \_/
^^__ _ / _ ____ /
<°°__ \- \_/ | |/ | |
|| || _| _| _| _|

if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-mobile+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-mobile+help@xxxxxxxxxxxx

< Previous Next >
List Navigation