LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 10-06-2008, 04:13 PM   #1
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225

Rep: Reputation: 30
Atheros Wireless requires manual start.


Hi all,

I'm afraid that a wireless problem is defeating me, grateful if anyone has any ideas.

I have a laptop with an Atheros wireless chipset, the wifi card is supported natively in the kernel.

When I boot the laptop Ubuntu shows the appropriate driver as being loaded but not used. There is no wifi0 or ath0 and none of the applets can see the card to start it.

If I unload the driver and reload it, hey presto, ath0 is created and the laptop happily connects to my wireless access point. Unfortunately I seem to have to do this manually every time I boot.

Grateful for any ideas as to how I can get it to load properly.
 
Old 10-07-2008, 02:03 PM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Something is out-of-sync with your boot process. I have had this with kubuntu 6.06 and 8.04.
Easy solution:
Put the commands you need to fire up your wireless in the file /etc/rc.local just before the final exit 0 line.
Code:
# restart wireless networking, or it doesn't work
ifdown eth1
ifup eth1

exit 0
Works for me.
 
Old 10-07-2008, 02:07 PM   #3
jbuckley2004
Member
 
Registered: Aug 2004
Distribution: Mandriva 2008 One
Posts: 121

Rep: Reputation: 17
I think that's going to be
ifdown ath0
ifup ath0

though, Unknown.
 
Old 10-07-2008, 02:12 PM   #4
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Well, those are the commands I need to get it to work, I just gave an example of how the end of the /etc/rc.local file should look.

Unknown_User is supposed to substitute the commands he needs.
I thought I'd made that clear, obviously not.
 
Old 10-07-2008, 02:20 PM   #5
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks for the replies, much appreciated.

After a little work I am now able to bring up the interface by using /sbin/modprobe ath_pci but this is a manual process every time.

Am I right in thinking that until modprobe has done its stuff that "ifdown ath0" etc won't work as ath0 doesn't exist until the module is loaded?

Do you know how I can make modprobe occur automatically other than using a script? The interface used to work prior to a routine update (I don't know what change caused the problem - newer kernel, madwifi version and lots more were changed) so I'm guessing that something has affected the way in which the module is now not loaded.

Thanks...
 
Old 10-07-2008, 02:25 PM   #6
Jykke
Member
 
Registered: Sep 2005
Posts: 163

Rep: Reputation: 16
Ubuntu's wireless howtos actually advice creating /etc/init.d/wireless-restart with content:

#!/bin/sh
/etc/init.d/networking restart


and then linking this to for example
/etc/rcS.d/S42wireless

with sudo ln -s /etc/init.d/wireless-restart /etc/rcS.d/S42wireless

in rc.local the restart of the interface occurs relatively late and may produce problems elsewhere...
 
Old 10-07-2008, 04:37 PM   #7
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
Quote:
After a little work I am now able to bring up the interface by using /sbin/modprobe ath_pci but this is a manual process every time.
This is linux, there are many ways to solve your problem, all of them different, and they'll all probably work. Which method you choose is up to you.

Whatever commands you have to enter "manually" to get your wireless to work, you need to put at the end of the file /etc/rc.local just before the final exit 0 as above.

Just put them in that file, it'll work.

Or, you can follow Jykke's post. As I said, there are many ways to achieve what you want
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 8.04 wireless problems on t60 thinkpad using atheros wireless adapter AR5212 NuxIT Linux - Wireless Networking 0 08-21-2008 05:54 AM
Adobe Acrobate Reader Requires A Plugin-That Requires Open LDAP That Requires Berkely Old_Fogie Slackware 10 05-08-2006 05:04 AM
intel wireless pro 2200 detected as atheros wireless card? whf Suse/Novell 5 08-29-2005 06:04 PM
manual start httpd treotan Fedora 2 12-08-2004 08:08 PM
looking for wireless pci that requires no tinkering? kewlmadisonguy Linux - Wireless Networking 4 05-29-2004 03:47 PM


All times are GMT -5. The time now is 02:56 AM.

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