You are not logged in.

#1 2008-06-29 14:30:23

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Netcfg2 auto-wireless: No networks found.

Hi, I am trying to use netcfg2's auto-wireless feature, but I cant seem to get it to work right.  I always have to manually run "netcfg2 mynet54g" as root everytime I boot up the computer.  I was wondering if someone could check over my various files and see if there is anything I missed.

rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="America/New_York"
KEYMAP="dvorak"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
MOD_AUTOLOAD="yes"
MOD_BLACKLIST=(pcspkr)
MODULES=(ndiswrapper powernow-k8 cpufreq_ondemand snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore snd_usb_audio)
USELVM="no"
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="Odin"
gateway="default gw 192.168.0.1"
NETWORKS=("auto-wireless wlan0")
DAEMONS=(syslog-ng net-profiles @acpid @laptop-mode @hal @crond @alsa @cups @mpd)

profile it should connect to:
/etc/network.d/mynet54g

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="mynet54g"
KEY="censored"
IP="dhcp"
TIMEOUT=20

Once I run that initial netcfg2 mynet54g, everything else works fine.

[root: /home/semperfiguy]# netcfg2 -d mynet54g
:: mynet54g down                                                              [DONE] 
[root: /home/semperfiguy]# /usr/bin/netcfg-auto-wireless wlan0
:: Scanning for networks                                                      [DONE] 
:: mynet54g up                                                                [DONE] 
[root: /home/semperfiguy]# /etc/rc.d/net-profiles stop
:: mynet54g down                                                              [DONE] 
[root: /home/semperfiguy]# /etc/rc.d/net-profiles start
:: Scanning for networks                                                      [DONE] 
:: mynet54g up                                                                [DONE] 
[root: /home/semperfiguy]#

Offline

#2 2008-06-29 22:31:17

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Netcfg2 auto-wireless: No networks found.

Try netcfg2 in [testing]

Offline

#3 2008-06-30 13:56:11

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

Well, I upgraded to that version with very bad luck.  I didnt have a backup.  On bootup it told me that profiles "auto-wireless" and "wlan0" didnt exist.  and upon accessing a terminal, I could not connect to mynet54g.  So now I am stuck on a windows computer unable to connect.  Can someone post a link to the core/netcfg package?

Offline

#4 2008-06-30 15:13:31

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Netcfg2 auto-wireless: No networks found.

oops: http://archlinux.org/news/399/

What driver do you use?

edit: oh ndiswrapper. Well that sucks. If iwlist scan returns nothing under ndiswrapper, there's not much I can do for now. Complain to them.

Last edited by iphitus (2008-06-30 15:14:37)

Offline

#5 2008-06-30 15:37:52

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

So how do I get the old package back?  Can I have a link to the tar.gz file so I can transfer it via usb and pacman -U it?  I downloaded the snapshot of the tree off of that link, but it doesn't work right.  Doesnt have all the stuff I fear.

This is my wireless card

03:00.0 Ethernet controller: Atheros Communications, Inc.  AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)

which is really the AR5007EG.  If there are any alternatives to ndiswrapper I could try those I guess.

Offline

#6 2008-07-01 02:02:59

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Netcfg2 auto-wireless: No networks found.

If you'd looked at the link, you'd see that the new one does have all the stuff, but the syntax for auto-wireless changed.

Also, couldnt you use madwifi instead of ndiswrapper?
http://bbs.archlinux.org/viewtopic.php?id=51022

Last edited by iphitus (2008-07-01 02:04:08)

Offline

#7 2008-07-02 01:18:23

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

I did look at the link and I didnt get I snapshot of the newest netcfg, because that is what made me unable to connect.  I got the 2.0.6 snapshot which complained about /usr/bin/netcfg-auto-wireless not being there, and refused to connect.  So I hunted around till I found the package that is currently in core.  netcfg 2.0.6, and installed that so now I can connect again. 

I didn't use madwifi at first, because when I first got this laptop, madwifi didnt support my card.  Apparently it does now so I might as well give it a go.  Is all I need the madwifi and madwifi-utils package? (Edit: found the how-to page about compiling the special version of madwifi.  http://www.ubuntugeek.com/atheros-5007e … tform.html )or do I need the driver as well, and can I test out madwafi along side ndiswrapper? or do I have to rmmod ndiswrapper before ath0 will show up?

Edit: the above paragraph didn't work, followed this guide: http://home.nyc.rr.com/computertaijutsu … .html#5007  And now I have a working ath0 interface.  /usr/bin/netcfg-auto-wireless ath0 doesnt work

[root: /home/semperfiguy]# /usr/bin/netcfg-auto-wireless ath0
:: Scanning for networks - No profiles matched the found networks             [FAIL]

I tried the testing/netcfg (with a backup this time) and I ran into the same problems as the first time.  Couldn't connect and came up saying profiles auto-wireless and ath0 didn't exist.  (on bootup).  So I guess I will just have to wait till you have time to sort out the bugs on the auto-wireless now.  Well I got madwifi working now.

Last edited by semperfiguy (2008-07-02 01:50:23)

Offline

#8 2008-07-02 08:53:39

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Netcfg2 auto-wireless: No networks found.

Ok, I'm totally confused. What are you using, what works, what doesnt work, what do you want help with?

Offline

#9 2008-07-02 10:43:28

faelar
Member
From: Amiens (FR)
Registered: 2007-12-18
Posts: 232
Website

Re: Netcfg2 auto-wireless: No networks found.

In your rc.conf

...
AUTO_NETWORKS=(auto-wireless ath0) 
...
...
DAEMONS=(... !network ... net-auto ...)

1 - Does " netcfg2 mynet54g " work ?
2 - Does " iwlist scan " work ?

PS : this is for netcfg 2.1.0_B2-1, version from [testing]

Offline

#10 2008-07-02 10:56:06

phisphere
Member
From: Tallinn, Estonia
Registered: 2007-03-05
Posts: 136
Website

Re: Netcfg2 auto-wireless: No networks found.

maybe you just don't have wlan0 defined in rc.conf?

eth0="dhcp"
INTERFACES=(eth0 wlan0)

also, there might be something wrong in the wireless profiles settings. ensure, that scan=yes.

Offline

#11 2008-07-02 15:10:46

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

Sorry for not being clear.  To clarify what I am using.  I am using madwifi-hal-0.10.5.6-r3698-20080604 + netcfg 2.0.6

Under core/netcfg 2.0.6
- What works:  connecting manually via netcfg2 mynet54g / iwlist scan
- What doesn't work:  auto-wireless on bootup via NETWORKS=("auto-wireless ath0") in rc.conf <- this was my original question.

Under testing/netcfg 2.1.0_B2-1
- What works: nothing that I have tried so far
- What doesn't work: manually connecting via netcfg2 mynet54g / iwlist scan

Here is what happens upon bootup under netcfg 2.1.0_B2-1

[root: /home/semperfiguy]# iwlist scan
lo        Interface doesn't support scanning.

wifi0     Interface doesn't support scanning.

ath0      Interface doesn't support scanning : Network is down

eth0      Interface doesn't support scanning.

[root: /home/semperfiguy]# netcfg2 mynet54g
:: mynet54g up  - Network unavailable                                         [FAIL] 
[root: /home/semperfiguy]# pacman -S core/netcfg
warning: netcfg: local (2.1.0_B2-1) is newer than core (2.0.6-1)
warning: netcfg-2.1.0_B2-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets: netcfg-2.0.6-1  

Total Download Size:    0.00 MB
Total Installed Size:   0.10 MB

Proceed with installation? [Y/n] 
checking package integrity...
(1/1) checking for file conflicts                   [--------------------------] 100%
(1/1) upgrading netcfg                              [--------------------------] 100%
[root: /home/semperfiguy]# netcfg2 mynet54g
:: mynet54g up                                                                                [DONE]

here is what iwconfig returns. I don't know where the wifi0 device is coming from, it wasn't there when I used ndiswrapper.

 [semperfiguy: ~/src]$ iwconfig
lo        no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:"mynet54g"  Nickname:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:12:17:E2:E9:84   
          Bit Rate:6 Mb/s   Tx-Power:16 dBm   Sensitivity=1/1  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=66/70  Signal level=-30 dBm  Noise level=-96 dBm
          Rx invalid nwid:976  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

And about not having an INTERFACES line in rc.conf: the wiki says I can remove it, so I did.
bottom of the page.
http://wiki.archlinux.org/index.php/Network_Profiles

Last edited by semperfiguy (2008-07-02 15:20:32)

Offline

#12 2008-07-02 17:33:06

faelar
Member
From: Amiens (FR)
Registered: 2007-12-18
Posts: 232
Website

Re: Netcfg2 auto-wireless: No networks found.

First post -> INTERFACE=wlan0
Last one -> wifi0 and ath0

Offline

#13 2008-07-02 17:54:42

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

yes.  I switched from ndiswrapper and wlan0 to madwifi-hal and ath0 + wifi0.  I did change the net-profile mynet54g to INTERFACE=ath0 if thats what your getting at.

Offline

#14 2008-07-02 20:03:44

faelar
Member
From: Amiens (FR)
Registered: 2007-12-18
Posts: 232
Website

Re: Netcfg2 auto-wireless: No networks found.

yes.  I switched from ndiswrapper and wlan0 to madwifi-hal and ath0 + wifi0.  I did change the net-profile mynet54g to INTERFACE=ath0 if thats what your getting at.

Right, sorry, I forgot about the switch hmm

Here one of my profile, work with both current and beta versions of netcfg2.

CONNECTION="wireless"
INTERFACE="ath0"

# Use Static IP
IP="static"
IFOPTS="192.168.1.109 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY=192.168.1.1

# Standard wireless settings
ESSID="Fnoup"
SECURITY="wpa"
KEY=":rolleyes:"
IWOPTS="mode managed essid $ESSID key restricted $KEY"

#Scan network before connecting
SCAN="YES"
TIMEOUT="20"

It's really strange that iwlist doesn't work, maybe iphitus has an explanation...

Offline

#15 2008-07-02 20:29:18

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

The only differences between our profiles is the IWOPTS line and your parts about static IP.  but that shouldn't be the problem right? I will try the IWOPTS line and see if that changes anything.

Offline

#16 2008-07-02 21:09:43

faelar
Member
From: Amiens (FR)
Registered: 2007-12-18
Posts: 232
Website

Re: Netcfg2 auto-wireless: No networks found.

There is also
INTERFACE="ath0"
and not
INTERFACE=ath0
but I don't know if it's important or not hmm

Offline

#17 2008-07-02 21:12:39

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

Added the quotation marks and IWOPTS line.  No change in either version of netcfg.  Couldn't connect in testing/netcfg connected in core/netcfg

Offline

#18 2008-07-02 21:22:02

venky80
Member
Registered: 2007-05-13
Posts: 1,002

Re: Netcfg2 auto-wireless: No networks found.

could someone post their profile and rc.conf for working auto wireless in netcfg2 beta?


Acer Aspire V5-573P Antergos KDE

Offline

#19 2008-07-03 09:05:43

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Netcfg2 auto-wireless: No networks found.

semperfiguy, Read the section about QUIRKS in the linked wiki page "Network Profile development" -- Sounds like you need to use a dirty driver specific quirk to make yours work.

As for the auto thing not working... does iwlist $interface scan show your network?

James

Last edited by iphitus (2008-07-03 10:38:44)

Offline

#20 2008-07-03 13:54:29

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

Now this is interesting.  iwlist ath0 scan shows my network along with 4 others. under core/netcfg but if I install testing/netcfg, iwlist ath0 scan returns the other 4 networks and not mine.  I get network unavalible under testing/netcfg which makes sense.

Edit:  Added QUIRKS=(preessid) to my profile and now I can connect under testing/netcfg.  I was looking in that network profiles development page and it said that:

Separate automagic connection code from net-profiles

Automatic connection code has been moved out from profiles into /etc/rc.d/net-auto. They are now configured separately in /etc/rc.conf with the array AUTO_NETWORKS=()

For example

AUTO_NETWORKS=(auto-wireless wlan0)

So I have to put that line in my rc.conf correct? (changing the wlan0 to ath0).

Last edited by semperfiguy (2008-07-03 14:06:06)

Offline

#21 2008-07-15 14:27:24

semperfiguy
Member
Registered: 2007-12-03
Posts: 224

Re: Netcfg2 auto-wireless: No networks found.

So in order for me to auto connect, my network has to show up in iwlist scan without running any iwconfig ath0 essid mynet54g? I again am using the netcfg from testing, and have added the AUTO_NETWORKS=(auto-wireless ath0) to my rc.conf.

rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="America/New_York"
KEYMAP="dvorak"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
MOD_BLACKLIST=(pcspkr ath5k)
MODULES=(ath_pci powernow-k8 cpufreq_ondemand snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore snd_usb_audio)

USELVM="no"

HOSTNAME="Odin"
gateway="default gw 192.168.0.1"
AUTO_NETWORKS=(auto-wireless ath0)

DAEMONS=(syslog-ng net-profiles @acpid @laptop-mode @hal @crond @alsa @cups @mpd)

Profile hoping to auto-connect to:

CONNECTION="wireless"
INTERFACE="ath0"

IP="dhcp"

ESSID="mynet54g"
SECURITY="wpa"
KEY="************"
IWOPTS="mode managed essid $ESSID key restricted $KEY"

QUIRKS=(preessid)
SCAN="yes"
TIMEOUT=20

Last edited by semperfiguy (2008-07-15 14:30:39)

Offline

#22 2008-07-15 15:00:37

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Netcfg2 auto-wireless: No networks found.

So in order for me to auto connect, my network has to show up in iwlist scan without running any iwconfig ath0 essid mynet54g

Yes.

But if that doesnt work, it's not the end of the world, just use "dumb" detection.

Put the networks you want to connect to in /etc/rc.conf NETWORKS=() and netcfg will one by one, check if they are available, and connect to the first available.

eg
NETWORKS=(home work library)
Will connect to whichever one of those three is available.

James

Last edited by iphitus (2008-07-15 15:00:57)

Offline

#23 2008-12-24 10:57:44

listdata
Member
Registered: 2008-12-23
Posts: 102
Website

Re: Netcfg2 auto-wireless: No networks found.

I'm reading the wiki on http://wiki.archlinux.org/index.php/Netcfg, and am on Step 4. The wiki is not clear in the section about AUTO_NETWORKS. What goes in here? Are these the names of profiles (names of text files in /etc/network.d/), or are these the ESSID's (network names), or are these connection names, like wlan0 and eth0? Or do all of them work somehow together? hmm

EDIT: Hmm, I just got rid of netcfg altogether, and just went along with wicd. It's very easy to use, and unlike netcfg, it automatically reconnects to eth0 when I unplug and replug my ethernet cable.

Last edited by listdata (2008-12-27 10:29:47)

Offline

Board footer

Powered by FluxBB