Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wireless doesnt work at boot, only when started manually
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JumboAg
Apprentice
Apprentice


Joined: 03 Mar 2007
Posts: 209
Location: Dallas, TX

PostPosted: Sat Mar 03, 2007 11:25 pm    Post subject: wireless doesnt work at boot, only when started manually Reply with quote

I'm stumped. I cannot get my laptop to automatically bring up wireless connectivity with wpa_supplicant during boot. I know I have the wpa_supplicant configuration stuff set up correctly because it works like a champ if I bring it up manually.

The error I get (courtesy of /var/log/messages) : Mar 3 17:03:28 newtardis rc-scripts: Failed to configure eth1 in the background

Here's what DOES work if I remove the wireless NIC stuff from /etc/init.d so it doesnt try to start:
I'm actually running it in a shell script so I dont have to type it every time, but here's the script contents:

#!/bin/sh
wpa_supplicant -Dwext -ieth1 -B -c/etc/wpa_supplicant/wpa_supplicant.conf &
dhcpcd eth1

(not sure if its relevant, but I AM using ifplug to down/up my eth0 automatically when there's no cable plugged into it. It appears to be working fine.)

Here's what I'm trying to do for auto-starting wireless:
ln -s /etc/init.d/net.lo /etc/init.d/net.eth1 (to create the network interface for the wireless.)

Here's what is in /etc/conf.d/net:

config_eth0=( "dhcp" )
dhcp_eth0="nontp nonis -t 10"

modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext -ieth1 -d -c/etc/wpa_supplicant/wpa_supplicant.conf"
config_eth1=( "dhcp" )
dhcp_eth1="nontp nonis"
wpa_timeout_eth1=60

Here's my run level info showing that both eth0 and 1 are in the default level: bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
hibernate-cleanup | boot
hostname | boot
keymaps | boot
local | default nonetwork
localmount | boot
modules | boot
net.eth0 | default
net.eth1 | default
net.lo | boot
netmount | default
pcmcia | default
rmnologin | boot
syslog-ng | default
urandom | boot
vixie-cron | default
vmware | default

Any assistance would be greatly appreciated. I'm not dead in the water since I can start it up manually, but it is annoying me...
Back to top
View user's profile Send private message
crush20
n00b
n00b


Joined: 15 Sep 2005
Posts: 14

PostPosted: Sun Mar 04, 2007 3:59 pm    Post subject: Reply with quote

Hi,

I have the same problem and no solution yet. Hope someone can help us!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Mar 05, 2007 9:30 am    Post subject: Reply with quote

Why do you set wpa_timeout?
You only need to set that if you absolutely have to see it working in the foreground which 99% of people don't want or need.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
crush20
n00b
n00b


Joined: 15 Sep 2005
Posts: 14

PostPosted: Mon Mar 05, 2007 10:18 am    Post subject: Reply with quote

Hi,

first thank you for the answer. Even without wpa_timeout the problem is still there. Any other solutions?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Mar 05, 2007 10:47 am    Post subject: Reply with quote

The only problem I see is from the OP
Quote:
The error I get (courtesy of /var/log/messages) : Mar 3 17:03:28 newtardis rc-scripts: Failed to configure eth1 in the background


And I guarantee that removing the timeouts will stop that message from appearing, so what is your exact error?
And have you tried running wpa_supplicant in the foreground?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
crush20
n00b
n00b


Joined: 15 Sep 2005
Posts: 14

PostPosted: Mon Mar 05, 2007 11:21 am    Post subject: Reply with quote

starting in foreground, the -w option and without wpa_timeout it now seems to work. Here is my /etc/conf.d/net:

Code:

modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-w -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth1"

config_eth0="dhcp"
config_eth1="dhcp"


Thanks for your answers!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Mar 05, 2007 11:27 am    Post subject: Reply with quote

crush20 wrote:
starting in foreground, the -w option and without wpa_timeout it now seems to work. Here is my /etc/conf.d/net:

Code:

modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-w -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth1"

config_eth0="dhcp"
config_eth1="dhcp"


Overkill that will lead to trouble - try removing wpa_supplicant_eth1= entirely too
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
crush20
n00b
n00b


Joined: 15 Sep 2005
Posts: 14

PostPosted: Mon Mar 05, 2007 11:33 am    Post subject: Reply with quote

y that?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Mar 05, 2007 12:39 pm    Post subject: Reply with quote

Why?

Stable wpa_supplicant assumes -Dwext by default
We supply -c/etc/wpa_supplicant/wpa_supplicant.conf -ieth1 ourselves
-w isn't needed as the interface will already exist by this point.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
crush20
n00b
n00b


Joined: 15 Sep 2005
Posts: 14

PostPosted: Mon Mar 05, 2007 4:19 pm    Post subject: Reply with quote

hmm ok I will try that
Back to top
View user's profile Send private message
crush20
n00b
n00b


Joined: 15 Sep 2005
Posts: 14

PostPosted: Mon Mar 05, 2007 5:12 pm    Post subject: Reply with quote

No, it doesn't work without the wpa_supplicant_eth1= line! I have to set the -w option!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Mar 05, 2007 5:22 pm    Post subject: Reply with quote

Is that a pcmcia card or do you have coldplug disabled?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
crush20
n00b
n00b


Joined: 15 Sep 2005
Posts: 14

PostPosted: Mon Mar 05, 2007 6:14 pm    Post subject: Reply with quote

no pcmcia card, but coldplug is disabled because of an earlier emerge update world, where it has blocked another package.
Back to top
View user's profile Send private message
JumboAg
Apprentice
Apprentice


Joined: 03 Mar 2007
Posts: 209
Location: Dallas, TX

PostPosted: Wed Mar 14, 2007 10:05 pm    Post subject: Reply with quote

For what its worth, adding the "-w" option is what fixed it for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum