LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   D-Link (DWL-G122 rev.C) Wifi USB Adapter keeps dropping connection in Ubuntu Hardy (https://www.linuxquestions.org/questions/linux-wireless-networking-41/d-link-dwl-g122-rev-c-wifi-usb-adapter-keeps-dropping-connection-in-ubuntu-hardy-654517/)

m1dn1ght 07-09-2008 02:25 AM

D-Link (DWL-G122 rev.C) Wifi USB Adapter keeps dropping connection in Ubuntu Hardy
 
Hi guys,

Am having some trouble with my newly purchased D-Link Wireless Dongle. When I plug it into my laptop, it activates and I am able to see the wireless networks in network manager (And WICD which I installed but didn't resolve problem)

After selecting the network and typing in my network key it connects fine, but then completely deactivates after a couple of seconds. If I continue unplugging and plugging it in, eventually one of the attempts will work and it will stay on, but that can sometimes take over 10-15 tries. The messages in the system log are:

Jul 8 10:26:44 m1dn1ght-laptop kernel: [ 202.469250] usb 3-5: new high speed USB device using ehci_hcd and address 5
Jul 8 10:26:44 m1dn1ght-laptop kernel: [ 202.740406] usb 3-5: configuration #1 chosen from 1 choice
Jul 8 10:26:45 m1dn1ght-laptop kernel: [ 203.089546] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 8 10:26:48 m1dn1ght-laptop kernel: [ 206.681439] eth0: PHY reset until link up.
Jul 8 10:26:58 m1dn1ght-laptop kernel: [ 216.442494] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 8 10:26:58 m1dn1ght-laptop kernel: [ 216.703963] eth0: PHY reset until link up.
Jul 8 10:27:04 m1dn1ght-laptop dhcdbd: dhco_input_option: Value -1 cannot be converted to type L
Jul 8 10:27:04 m1dn1ght-laptop dhcdbd: dhco_parse_option_settings: bad option setting: new_dhcp_lease_time = -1
Jul 8 10:27:04 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.host_name
Jul 8 10:27:04 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.nis_domain
Jul 8 10:27:04 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.nis_servers
Jul 8 10:27:08 m1dn1ght-laptop kernel: [ 226.726520] eth0: PHY reset until link up.
Jul 8 10:27:09 m1dn1ght-laptop kernel: [ 226.992449] usb 3-5: USB disconnect, address 5

Also, not sure if it's relevant but there is one line in the system log that keeps repeating every 10 seconds

Jul 8 10:33:40 m1dn1ght-laptop kernel: [ 617.604917] eth0: PHY reset until link up.

---

Any help will be much appreciated.

pinniped 07-09-2008 06:25 AM

How bizarre - 'PHY' is the physical layer - if this were a wired NIC, that would be like the driver always complaining that you don't have a cable plugged in.

This type of problem is often caused by a spurious interrupt - do you see any 'spurious interrupt' messages?

One thing to try (though not guaranteed to work) is to disable the apic, lapic, or if you're really desperate and have super-buggy hardware, disable both. So try booting with the following set of kernel parameters and see if one fixes your problem:

noapic lapic
nolapic apic
noapic nolapic

One other possibility is that the setup scripts are just screwed - did you search the Ubuntu forum to see if other people have reported that problem?

m1dn1ght 07-09-2008 09:48 AM

Hi and thanks for the reply!

Unfortunately my laptop's hardware is already so ridiculously incompatible with linux that I am already having to use noapic and acpi=off simply to boot the OS (not just Ubuntu - same is true for every distro I've tried so far). Even more unfortunate, the addition of the nolapic argument to the boot script has not resolved the problem.

I'm currently writing this reply from my desktop and unfortunately I have no net connection on my laptop right now, so I shall follow this message up with the outputs of a few commands once I wire up the laptop to my router. If anyone can suggest any other outputs that would help diagnose the problem, please let me know.

I have also asked about this problem on the Ubuntuforums and the Ubuntu IRC channel but unfortunately I'm so far coming up blank.

Thanks again for the reply

m1dn1ght 07-09-2008 10:07 AM

OK - here's the outputs.

(this first one is obviously before the USB adapter shuts itself off - once that happens it disappears from lsusb. Also, I've tested other USB devices (e.g Printer/Mouse) in the ports and they work fine, so confident it's not the ports themselves causing trouble)

m1dn1ght@m1dn1ght-laptop:~$ lsusb
Bus 003 Device 019: ID 07d1:3c03 D-Link System
Bus 003 Device 002: ID 0bda:0158 Realtek Semiconductor Corp.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
m1dn1ght@m1dn1ght-laptop:~$

m1dn1ght@m1dn1ght-laptop:~$ lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 671MX
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS AGP Port (virtual PCI-to-PCI bridge)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS968 [MuTIOL Media IO] (rev 01)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter (rev 02)
00:05.0 IDE interface: Silicon Integrated Systems [SiS] SATA Controller / IDE mode (rev 03)
00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)

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

Output from System > Admin > System Log:

Jul 9 22:50:53 m1dn1ght-laptop kernel: [ 290.950348] usb 3-5: new high speed USB device using ehci_hcd and address 3
Jul 9 22:50:54 m1dn1ght-laptop kernel: [ 291.221408] usb 3-5: configuration #1 chosen from 1 choice
Jul 9 22:50:54 m1dn1ght-laptop kernel: [ 291.856196] usbcore: registered new interface driver rt73usb
Jul 9 22:50:54 m1dn1ght-laptop kernel: [ 292.043173] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 9 22:51:07 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.reason
Jul 9 22:51:08 m1dn1ght-laptop dhcdbd: dhco_input_option: Value -1 cannot be converted to type L
Jul 9 22:51:08 m1dn1ght-laptop dhcdbd: dhco_parse_option_settings: bad option setting: old_dhcp_lease_time = -1
Jul 9 22:51:24 m1dn1ght-laptop kernel: [ 321.203184] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 9 22:51:30 m1dn1ght-laptop dhcdbd: dhco_input_option: Value -1 cannot be converted to type L
Jul 9 22:51:30 m1dn1ght-laptop dhcdbd: dhco_parse_option_settings: bad option setting: new_dhcp_lease_time = -1
Jul 9 22:51:30 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.host_name
Jul 9 22:51:30 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.nis_domain
Jul 9 22:51:30 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/wlan0 for sub-path wlan0.dbus.get.nis_servers
Jul 9 22:51:41 m1dn1ght-laptop kernel: [ 338.231016] usb 3-5: USB disconnect, address 3
Jul 9 22:51:41 m1dn1ght-laptop kernel: [ 338.461266] ndiswrapper version 1.52 loaded (smp=yes, preempt=no)
Jul 9 22:51:41 m1dn1ght-laptop kernel: [ 338.529388] usbcore: registered new interface driver ndiswrapper
Jul 9 22:51:45 m1dn1ght-laptop dhcdbd: dhco_input_option: Value -1 cannot be converted to type L
Jul 9 22:51:45 m1dn1ght-laptop dhcdbd: dhco_parse_option_settings: bad option setting: new_dhcp_lease_time = -1
Jul 9 22:51:45 m1dn1ght-laptop dhcdbd: dhco_input_option: Value -1 cannot be converted to type L
Jul 9 22:51:45 m1dn1ght-laptop dhcdbd: dhco_parse_option_settings: bad option setting: old_dhcp_lease_time = -1
Jul 9 22:51:46 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.host_name
Jul 9 22:51:46 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.nis_domain
Jul 9 22:51:46 m1dn1ght-laptop dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.nis_servers

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

dmesg output following problem (too long to include in message):

http://pastebin.com/f41fb0e70



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


Would really appreciate any help people can provide!

m1dn1ght 07-09-2008 10:11 AM

Oh - one more thing - this time I wasn't getting this line:

Jul 8 10:33:40 m1dn1ght-laptop kernel: [ 617.604917] eth0: PHY reset until link up.

So that was either a temporary glitch, or stopped because the ethernet cable was plugged in. At any rate, the problem continue unabated, so that was probably not the problem :(


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