LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-14-2012, 06:49 AM   #1
v2george
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware
Posts: 6

Rep: Reputation: Disabled
Reconnect failure with D-LINK DWM-156 modem


This modem connected successfully, sometimes, first time after reboot. If it is disconnected then trying to connect fails afterwords.
Seems /dev/ttyUSB0 is not getting freed up after the first
connection, and running fuser as root ( not as user ) revealed
that modem-manager is still using the device. I could get it to reconnect by killing modem-manager process as follows
1. /etc/rc.d/rc.networkmanager stop
2. killall -9 modem-manager
3. NetworkManager --no-daemon

What would be the best way to fix this problem ?

Thanks

Last edited by v2george; 11-14-2012 at 10:20 AM.
 
Old 11-14-2012, 08:55 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
When I've disconnected my UMTS-modem, I use to plug it off. I've never left it plugged in until reconnecting.

Markus
 
Old 11-14-2012, 10:18 AM   #3
v2george
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
Even if the modem is physically removed and plugged back in, I am not able to connect again. First time connection also goes fine only once in a while. Strangely, if I kill the running modem-manager, and start network manager as 'NetworkManager --no-daemon', it is found to connect at the next attempt. And the connection stays stable.
 
Old 11-14-2012, 10:39 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
I don't use Networkmanager. I connect only with the ppp-program and additionally I have comgt installed.

I start the connection as root on the commandline and when I want to disconnect I simply kill it, but I have a disconnect-script which then runs.

Markus
 
Old 11-14-2012, 11:53 AM   #5
v2george
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
I had to setup a broadband connection for a less technical person.

I chose NetworkManager option in netconfig during setup, which allowed
me to use nm-applet with xfce window manager which were quite appropriate for the user. A Vodafone modem seemed to work quite fine with that setup and in the not so very stable network environment. When I switched to the D-link modem, these problems started.

Getting reconnect working fine from the nm-applet or so is pretty much a requirement for the user.

I also tried to get wvdial working as another easy option, but seems it no longer works fine with Slackware. When tried, wvdial failed similarly under Ubuntu UE. From what I understood wvdial uses ppp directly.

Seems like using ppp directly is the only other option left.
 
Old 11-14-2012, 11:57 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Yes, I had also problems with wvdial, I wanted to build the package from slackbuilds.org, but wvstreams failed to build.

Markus
 
Old 11-14-2012, 12:21 PM   #7
v2george
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
I could get it compiled with some "const" additions and #includes which were missing. But wvdial failed with assertion failure in utils/wvtask.cc or so, involving magic_number WVTASK_MAGIC.
 
Old 11-15-2012, 05:45 AM   #8
v2george
LQ Newbie
 
Registered: Oct 2012
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
If I start modem-manager in --debug mode as follows:

/etc/rc.d/rc.networkmanager stop
killall -9 modem-manager
modem-manager --debug
/etc/rc.d/rc.networkmanager start

everything seems fine with the d-link modem. I can connect and disconnect any
number of times with no problem at all!

manual pppd method also works fine!

Last edited by v2george; 11-15-2012 at 06:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to enable D-Link usb modem in fedora ..model : dwm-156 vinoypm88 Linux - Newbie 2 11-06-2012 07:59 AM
MySql Communications link failure cheires Programming 3 10-17-2009 07:59 AM
LXer: The Linux Link Tech Show No.156 LXer Syndicated Linux News 0 09-10-2006 07:33 AM
have to reconnect usb modem before it works lumbrjackedpcj Linux - Hardware 0 11-23-2004 07:47 AM
Intell 537 [5457 AC-Link Modem] Modem not Responding LoungeLizard Linux - Laptop and Netbook 0 06-16-2004 11:30 AM


All times are GMT -5. The time now is 06:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration