[hsflinux] modem hangs up in few minutes

Linuxant modem support modem.support at linuxant.com
Thu Jun 26 15:10:49 EDT 2003


Hi,

thank you very much for this information. It will certainly be usefull to
other users.

Jean-Simon Durand
Technical specialist / Linuxant
www.linuxant.com
modem.support at linuxant.com


----- Original Message -----
From: "Dana Lacoste" <dana.lacoste at peregrine.com>
To: "Mengxiong Gong" <mgong758 at hotmail.com>
Cc: <hsflinux at lists.mbsi.ca>
Sent: Friday, June 20, 2003 1:51 PM
Subject: Re: [hsflinux] modem hangs up in few minutes


After months and months and months and months
of dealing with a similair problem, I added
this to my startup scripts :

--
file /etc/init.d/rest.modem.priority.sh
--
#!/bin/sh

/bin/echo "Increasing priority of HSF modem handler"
MODEM_PID=`ps -wwaux|grep cnxthsf_mdmthrd \
           |grep -v grep |sed 's/root *//'| \
           sed 's/ .*//'`

if [ -z "${MODEM_PID}" ] ; then
   /bin/echo "WARNING : Could not find modem handler thread"
else
if [ -n "${MODEM_PID}" ] ; then
   /bin/echo "Resetting modem handler priority level"
   /usr/bin/renice -10 ${MODEM_PID} > /dev/null 2>&1
fi
--

Basically, the modem driver creats a kernel thread that
shows up in the process table with the name "[cnxthsf_mdmthrd]"
and I reset the priority level of the process to be -10
(it defaults to 0, and lower is better)

Now it never crashes (whereas before it would run fine until
I put a significant amount of data on the line, when it would
die in about 2 minutes)

I had no idea you could adjust the priority of kernel threads,
but doing this has made the modem unkillable for me, so I'm
very very very very happy with it :)

(You'd have to copy the text I gave into a file, make the script
executable, then run the script sometime after the modem driver
loaded.  Seeing as I don't use RedHat, I can't help you do that :)

Dana "modem bought in November, modem working in May" Lacoste
Ottawa, Canada

On Thu, 2003-06-19 at 23:02, Mengxiong Gong wrote:
> Hi,
>
> I have system Red Hat 7.3 with kernel 2.4.18-3, and I use the driver
> hsflinmodem-5.03.27lnxbeta03042700....... The problem I encountered is
that
> the modem hangs up in  a few minutes after connection to internet. I have
> tried several different settings, but they were failed. The driver I use
now
> seems the most updated version. I don't know what causes this problem.
> Please give some ideas and instructions. I greatly appreciate.
>
> Michael Gong




More information about the hsflinux mailing list