You are not logged in.

#1 2009-07-20 01:38:25

benoror
Member
Registered: 2009-07-20
Posts: 66
Website

Wireless device changes constantly (WICD confussed)

Hi ppl!

When I boot my arch system sometimes my wireless device is eth0 (view with iwconfig) and other times I boot up it is eth1 !!! It's annoying, so WICD doesn't always knows the right wireless device.

Any ideas?


ArchLinux :: Awesome WM :: dotfiles

Offline

#2 2009-07-20 01:51:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Wireless device changes constantly (WICD confussed)

Can you provide a little more detail? It would be helpful. What is in your /etc/rc.conf?

(and welcome to the Forum):)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2009-07-20 01:58:26

benoror
Member
Registered: 2009-07-20
Posts: 66
Website

Re: Wireless device changes constantly (WICD confussed)

Thanks for the welcome!

My rc.conf :

$ cat /etc/rc.conf | grep -v "#"

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="America/Mexico_City"
KEYMAP="la-latin1"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MODULES=(!snd_pcsp usb_storage)

USELVM="no"

HOSTNAME="gateway"

eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 

DAEMONS=(syslog-ng !network netfs crond alsa hal fam wicd)

ArchLinux :: Awesome WM :: dotfiles

Offline

#4 2009-07-20 02:47:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Wireless device changes constantly (WICD confussed)

HOSTNAME="gateway"

eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)

Try losing one of the interfaces. It should look more like in the Beginners Guide:
http://wiki.archlinux.org/index.php/Beg … .28DHCP.29

HOSTNAME="arch"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2009-07-20 03:05:40

Square
Member
Registered: 2008-06-11
Posts: 435

Re: Wireless device changes constantly (WICD confussed)

benoror wrote:

Thanks for the welcome!

My rc.conf :

$ cat /etc/rc.conf | grep -v "#"

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="America/Mexico_City"
KEYMAP="la-latin1"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MODULES=(!snd_pcsp usb_storage)

USELVM="no"

HOSTNAME="gateway"

eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 

DAEMONS=(syslog-ng !network netfs crond alsa hal fam wicd)

I had a similar issue, and I ended up fixing it by commenting the ethx="dhcp" lines from my rc.conf. I already had the module for my ethernet port blacklisted because it messed with my wireless (and I don't use it anyways). Afterward, only the wireless interface would be present due to it's module being loaded... and... tada!

Not sure if you'd go this way, but it may be helpful information.


 

Offline

#6 2009-07-20 03:16:54

benoror
Member
Registered: 2009-07-20
Posts: 66
Website

Re: Wireless device changes constantly (WICD confussed)

How do I disable the module for the ethernet port ?

Or there is a way to force it or make an "alias" so the wireles would point to something like /dev/wlan0 ?

Thanks!


ArchLinux :: Awesome WM :: dotfiles

Offline

#7 2009-07-20 04:15:33

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Wireless device changes constantly (WICD confussed)

benoror wrote:

How do I disable the module for the ethernet port ?

#lspci -v | grep driver
benoror wrote:

Or there is a way to force it or make an "alias" so the wireles would point to something like /dev/wlan0 ?

Something like:

alias [module] [alias]

in /etc/modprobe.d/modprobe.conf

Use Google for more details.

big_smile

Last edited by sistematico (2009-07-20 04:20:13)


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#8 2009-07-20 05:35:58

benoror
Member
Registered: 2009-07-20
Posts: 66
Website

Re: Wireless device changes constantly (WICD confussed)

sistematico wrote:
benoror wrote:

Or there is a way to force it or make an "alias" so the wireles would point to something like /dev/wlan0 ?

Something like:

alias [module] [alias]

in /etc/modprobe.d/modprobe.conf

Use Google for more details.

big_smile

/dev/wlan0 <---- I didn't mean to make an alias of the module itself, but  to be assigned to this /dev too ! sad


ArchLinux :: Awesome WM :: dotfiles

Offline

#9 2009-07-20 08:16:15

rebugger
Member
From: Germany
Registered: 2007-10-28
Posts: 229

Re: Wireless device changes constantly (WICD confussed)

Had the same problem with my laptop and resolved it with an udev-rule:
check the id of your device via

dmesg | grep "0000:"

Mine are 0000:02:01.0 for lan and 0000:02:02.0 for wifi
create /etc/udev/rules.d/75-persistent-net.rules:

SUBSYSTEM=="net", DRIVERS=="?*", ID=="0000:02:01.0", NAME="eth0"
SUBSYSTEM=="net", DRIVERS=="?*", ID=="0000:02:02.0", NAME="wlan0"

Restart - and everything should be fine smile

Offline

#10 2009-07-20 09:22:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Wireless device changes constantly (WICD confussed)

wiki to the rescue - as always. smile

Actually the same solution as rebugger's, just a slightly different udev rule.

If you'd prefer to disable the wired interface, just blacklist the module in the rc.conf MODULES array.

Offline

#11 2009-07-20 09:35:13

rebugger
Member
From: Germany
Registered: 2007-10-28
Posts: 229

Re: Wireless device changes constantly (WICD confussed)

@tomk the wiki-solution didn't work for me, thats why i use another config (see above)

Offline

Board footer

Powered by FluxBB