Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Ubuntu Wireless Woes
New Posts  All Forums:Forum Nav:

Ubuntu Wireless Woes

post #1 of 5
Thread Starter 
I've just put Hardy on my backup rig, and have plans to make it purely awesome. I mean, what else can you do with linux? Anyway, I've got an Abit Airpace wifi Pci-e x1 card. I've gotten it to run in ubuntu using ndiswrapper, so that is not really the problem. The problem that I'm having is this:

I can not get the wireless to work correctly when I start up the machine. I.E. the wireless card will detect networks, but will not connect to them. I've read several how-to's and they say to install wicd instead of network-manager, but I've got this issue with both. I've also got the default drivers blacklisted so they won't load.

However, if I boot up and open my terminal and type:

sudo modprobe -r ndiswrapper
sudo modprobe ndiswrapper

then Everything works perfectly. Because of this, I've removed ndiswrapper from my /etc/modules file so when I turn on the machine all I have to do at terminal is:

sudo modprobe ndiswrapper

Is there any way to automate this process and make it work everytime? I know it's not a big deal to write a batch script to make this happen for me, but I really like to be able to load this at runtime, before I login without having to remove and reload the ndiswrapper module.

Thanks guys.
post #2 of 5
My wireless card isnt even detected.
In the terminal it says "Network Unclaimed", but in the network manager, it only sees Ethernet, and a "modem". But I dont have a modem!

Ugh!
    
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Black Edition 5000. (3.2GHz) Gigabyte GA-M770-DS3 eVGA 8800 GTS 512 (G92) 2 GB Corsair XMS 
Hard DriveOptical DriveOSMonitor
Seagate 250GB 7200RPM + 80GB 7200RPM Lite-On CD Burner Windows Vista Home Basic (OEM) 64-bit Crappy thing... 
PowerCaseMouse
Okia 600W PSU Sunbeam Transformer Microsoft Optical Mouse 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD Athlon 64 X2 Black Edition 5000. (3.2GHz) Gigabyte GA-M770-DS3 eVGA 8800 GTS 512 (G92) 2 GB Corsair XMS 
Hard DriveOptical DriveOSMonitor
Seagate 250GB 7200RPM + 80GB 7200RPM Lite-On CD Burner Windows Vista Home Basic (OEM) 64-bit Crappy thing... 
PowerCaseMouse
Okia 600W PSU Sunbeam Transformer Microsoft Optical Mouse 
  hide details  
Reply
post #3 of 5
This blog post from 2005 may be able to help you: http://ubuntu.wordpress.com/2005/09/...run-at-bootup/

You can also goto System->Prefrences->Sessions and make your own startup rules with the GUI, but I don't know how powerful it is (sudo implementation?). A quick google brought up this:
http://ubuntuforums.org/archive/index.php/t-448164.html
Honor
(13 items)
 
  
CPUMotherboardGraphicsRAM
e2200@9x305Mhz 1.28750V P31-DS3L Gigabyte EVGA 8800gt 512MB OCZ ddr2 Gold 2GB 800 @ 915 
Hard DriveOSMonitorPower
500 GB Maxtor Ubuntu 7.10 with Wine Samsung 2ms 1440x900 LCD Antec TruePower Trio 650 
Case
Cooler Master 690 
  hide details  
Reply
Honor
(13 items)
 
  
CPUMotherboardGraphicsRAM
e2200@9x305Mhz 1.28750V P31-DS3L Gigabyte EVGA 8800gt 512MB OCZ ddr2 Gold 2GB 800 @ 915 
Hard DriveOSMonitorPower
500 GB Maxtor Ubuntu 7.10 with Wine Samsung 2ms 1440x900 LCD Antec TruePower Trio 650 
Case
Cooler Master 690 
  hide details  
Reply
post #4 of 5
Thread Starter 
Finally got it working. create a script, call it wifi (or whatever you want really, doesn't matter) and paste in this code (but only if you are using ndiswrapper to load your wifi card and only if it's configured correctly!)

#! bin/sh
sudo modprobe -r ndiswrapper
sudo modprobe ndiswrapper
sudo /etc/init.d/networking restart


Save that file, then at terminal type:
sudo cp wifi /etc/init.d/
cd /etc/init.d/
sudo chmod +x wifi
sudo update-rc.d wifi defaults


The reasons that this worked for me are the following:
After configuring my network card with ndiswrapper, I could connect to a network. Every time I rebooted, the adapter would be found as present, and it could discover networks, but it could not connect. Because of this I would have to remove the ndiswrapper module (sudo modprobe -r ndiswrapper) and then re-add it (sudo modprobe ndiswrapper) and if I waited a minute or two it would get detected and connect. By using the network restart command (sudo /etc/init.d/networking restart) it forces the network interfaces to refresh and connect. I then added this script to boot time so I wouldn't have to manually reset the ndiswrapper everytime I boot, and voila! it works!
post #5 of 5
Good job. I'm glad to see you created a script to do the work for you - that's what linux is all about
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
It goes to eleven
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6300 DS3 EVGA 8600GTS 2GB XMS2 DDR2-800 
Hard DriveOSMonitorKeyboard
1.294 TB Arch Linux/XP Samsung 226bw Eclipse II 
PowerCaseMouse
Corsair 520HX Lian-Li v1000B Plus G7 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Ubuntu Wireless Woes