UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a HP Compaq nx9110 laptop with a Broadcom 802.11b wireless card. I have tri-boot setup (Gentoo, Windows XP and now Ubuntu). Ubuntu is the 5.04 Hoary Hedgehog release.
My wireless card works fine under Windows, and I managed with only a little fuss to get it running fine under Gentoo using ndiswrappers. However Ubuntu has me stumped.
It appears to be a power problem: my laptop has a button on it which you can use to disable/enable wireless. It works under Windows and Gentoo - but remains always off under Ubuntu.
Everything appeared to install ok - but obviously it doesn't work! Output follows:
The wireless connection is recognised by System -> Administration -> Networking, and the connection appears as 'active'. If I try to use iwconfig to set things up as I do under Gentoo (see below) then nothing changes - iwconfig output is the same, as though it didn't take it.
Ever thought it's just the button thats not installed under ur keyboard?
So if the button doesn't really have a function, then of course nothing happens!
My best guess is u have to make some sort of script and make it the default use of the button.
Something that enables/disables the card, and put a variable on the script so that the button only needs to read the variable and do the inverse command, then invert the variable as well!
I have considered that the 'button' software may not be installed, however I have no idea where I would expect to find something to 'activate' it! The thing that bugs me is that the wireless card hardware appears to be installed and operating (iwconfig takes a WEP key) but just won't turn on - normally pressing the button would work.
Do you know of any places I could look (perhaps the /proc filesystem) for a signal/variable that will change when the hardware is pressed?
The "ndiswrapper -l" output comes from Ubuntu. I specified both the key and the essid in the GUI tool under System -> Admin -> Networking - but only the key sticks. Strange, eh?
No, I've tried to set it several times in a row - both from the GUI and from the command line, but to no avail. It still appears to be a power problem - at least the light doesn't indicate any wireless power. I've done a search using www.google.com/linux to look for items that describe the power issue (no light) but nothing appears to be there...
Maybe its a service that isn't running? Strange thing is that ifup and ifdown behave normally, and they seem to know when it is up and when it isn't. However there still isn't any signal...
wlan0: ndiswrapper ethernet device 00:90:4b:57:3e:1c using driver bcmwl5
wlan0: encryption modes supported: WEP
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
And this is from dmesg | grep ndiswrapper
Code:
ndiswrapper version 1.0rc2 loaded (preempt=yes,smp=no)
ndiswrapper: using irq 18
wlan0: ndiswrapper ethernet device 00:90:4b:57:3e:1c using driver bcmwl5
ndiswrapper: driver bcmwl5 (Broadcom,10/28/2003, 3.40.25.3) added
When I run ifup wlan0 I get the following (times out):
Code:
sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/wlan0/00:90:4b:57:3e:1c
Sending on LPF/wlan0/00:90:4b:57:3e:1c
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
I don't think that the sit0 line is an issue, as for a direct ethernet connection for ifup eth0 I get:
Code:
sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:02:3f:22:a8:62
Sending on LPF/eth0/00:02:3f:22:a8:62
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.6 -- renewal in 111091 seconds.
The issue still appears to be that the SSID isn't being set, as iwconfig wlan0 still reports that the ESSID is off/any. Setting it from the System -> Administration -> Networking tool doesn't work, and iwconfig won't set it on the command line either.
Hmm... I've been doing some searching on the web in my spare time, and this failure of the LED to operate seems to be an occasional problem. A lot of ndiswrapper articles state that the LED on the wireless card should light when it is installed - but I don't get that. I know its not the *.inf file I am using, as it is the same one I used under Gentoo linux, and that worked ok.
Originally posted by gazzamop
[B]Hmm... I've been doing some searching on the web in my spare time, and this failure of the LED to operate seems to be an occasional problem. A lot of ndiswrapper articles state that the LED on the wireless card should light when it is installed - but I don't get that. I know its not the *.inf file I am using, as it is the same one I used under Gentoo linux, and that worked ok.
Problem Solved!! ---> well at least the problem this post is about anyway
I found this nice thread: http://ubuntuforums.org/showthread.p...t=wireless+LED
and I followed the instructions it gave. I had to make some minor adjustments to the instructions given (Gnome would freeze if I rebooted) by changing some of the steps it suggested
Step 3. Running this as root, not using sudo, else the 'for' loop gave errors
Step 4. Not rebooting, just keeping going, otherwise Gnome would hang
After doing all that, I had a light on my wireless card! Its working! And it is taking an SSID! However Ubuntu is still being badly behaved, and I have to configure things manually:
1. Turn on my laptop and boot Ubuntu
2. Wait until Gnome pops up (no wireless LED light at this stage)
3. Run "sudo modprobe ndiswrapper" (this turns the LED light on)
4. Run "sudo ifup wlan0" (this times out failing to get a DHCP packet, but sets the SSID)
5. I worked out that the problem in step 4 is that Ubuntu has configured things
so that my output from "sudo iwlist wlan0 key" is:
Code:
wlan0 2 key sizes : 40, 104bits
4 keys available :
[1]: 2E82-8DB2-xxxx-xxxx-xxxx-xxxx-xx (104 bits)
[2]: Not set
[3]: Not set
[4]: Not set
Current Transmit Key: [1]
Security mode:restricted
6. So I run a script to manually set the keys for each index (1 to 4) and then "sudo iwlist wlan0 key" gives:
7. Now I run "sudo ifup wlan0" and everything works fine!!!!
My only problem remaining is to make all this process more automatic. The man page
for /etc/network/interfaces (man interfaces) looks promising, but I have trouble
understanding it exactly.
Thanks for everyone's help on this topic. I hope it is of use to someone else having the same problem! And if anyone has any ideas how I can automate the above process...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.