Modem locked in kppp

Modem locked in kppp

Post by John Alexande » Tue, 23 Mar 1999 04:00:00



When I start kppp, I receive the message, "sorry, the modem is locked"
or some such stuff. I fixed this once before (late January), but I had
to re-install LinuxPPC and lost the instructions I had downloaded from
this group.

Any ideas?

Thanks in advance.
--
John Alexander
Manager, Area Computing Services
Capstone College of Nursing
School of Social Work
The University of Alabama

 
 
 

Modem locked in kppp

Post by David Augsburge » Tue, 23 Mar 1999 04:00:00


[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]



> When I start kppp, I receive the message, "sorry, the modem is locked"
> or some such stuff.

My recollection is this:

There is a file   /etc/ppp/options

open "options" with a text editor and if there is the word "locked"
either delete the word or comment it out.

Hope this works.

Cheers,  David

______    ______________ c me 4 movies _________________
            \   DAVID AUGSBURGER                        edit e-mail address
  OO.    
  L_K         <http://www.cinema-sites.com>

 
 
 

Modem locked in kppp

Post by Jason » Tue, 23 Mar 1999 04:00:00


John Alexander posted the following to comp.os.linux.powerpc:

Quote:>When I start kppp, I receive the message, "sorry, the modem is locked"
>or some such stuff. I fixed this once before (late January), but I had
>to re-install LinuxPPC and lost the instructions I had downloaded from
>this group.

Take a look in /var/lock for a file named something like LCK..ttyS0 (or
whatever device your modem is hooked up to...)

The contents of the file are the PID of whatever process is locking the serial
port. If that process doesn't exist, you can probably delete the file.

HTH

--
"...and a more offensive spectacle I cannot recall."
        -- Newman

 
 
 

Modem locked in kppp

Post by Mike Voic » Thu, 25 Mar 1999 04:00:00


Howdy.

My 2-cents.

Quote:>> When I start kppp, I receive the message, "sorry, the modem is locked"
>> or some such stuff.

>My recollection is this:

>There is a file   /etc/ppp/options

>open "options" with a text editor and if there is the word "locked"
>either delete the word or comment it out.

>Hope this works.

>Cheers,  David

"Commenting out" the lock worked for me. :)  Which means: placing a "#",
without quotes, in front of the word lock, and then saving the file.

See "The complete idiot's guide to Linux", page 80. I bought it to help me
get LinuxPPC running, since it also covers working with KDE.  - and also
tells you where I stand on learning Linux.  :)

Mike, yet another "newbie".

 
 
 

Modem locked in kppp

Post by Bill Unr » Thu, 25 Mar 1999 04:00:00



Quote:>>> When I start kppp, I receive the message, "sorry, the modem is locked"
>>> or some such stuff.
>>There is a file   /etc/ppp/options
>>open "options" with a text editor and if there is the word "locked"
>>either delete the word or comment it out.
>"Commenting out" the lock worked for me. :)  Which means: placing a "#",
>without quotes, in front of the word lock, and then saving the file.

No. The lock option to pppd tells pppd to install a lock file in
/var/lock/LCK..ttyS?
to let other programs know it is using the modems. However you are
finding that pppd itself is finding a lock file.
Do
cat /var/lock/LCK..*
and then do
ps aux|grep #
where # is the number reported in the first command. If nothing has that
number as its PID (first number on the ps line), then you can just
remove that lock file. If somethng does have that number it is using
your tty port. figure out why and fix.
 
 
 

Modem locked in kppp

Post by Mike Voic » Tue, 30 Mar 1999 04:00:00




>>>> When I start kppp, I receive the message, "sorry, the modem is locked"
>>>> or some such stuff.
>>>There is a file   /etc/ppp/options
>>>open "options" with a text editor and if there is the word "locked"
>>>either delete the word or comment it out.

>>"Commenting out" the lock worked for me. :)  Which means: placing a "#",
>>without quotes, in front of the word lock, and then saving the file.

>No.

I disagree. KPPP specifically states that it controls the lock, vice the
normal var/lock/LCK.. way of doing things. To use KPPP, until I am less of a
newbie ( I installed R4.1 on Saturday, never used Linux before)  I needed to
comment out the lock. My modem connection through KPPP worked just fine,
once that was done.
Quote:>The lock option to pppd tells pppd to install a lock file in
>/var/lock/LCK..ttyS?
>to let other programs know it is using the modems. However you are
>finding that pppd itself is finding a lock file.
>Do
>cat /var/lock/LCK..*
>and then do
>ps aux|grep #
>where # is the number reported in the first command. If nothing has that
>number as its PID (first number on the ps line), then you can just
>remove that lock file. If somethng does have that number it is using
>your tty port. figure out why and fix.