You are not logged in.

#1 2009-12-31 09:07:57

mrutter
Member
Registered: 2009-05-25
Posts: 16

wireless network scripts failing - kernel 2.6.32

I'm having some networking problems with wpa_supplicant and dhcpcd. This is my wpa_supplicant.conf and my script for connecting
wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
network={
        ssid="myssid"
        psk="passpharse"
}

script:

#/bin/bash
ifconfig eth0 down
ifconfig wlan0 up
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
dhcpcd wlan0

Since the 2.6.32 kernel went to core this setup fails almost every time - it is only through sheer persistence of repeatedly running my script that it eventually works, which in the past it almost never failed. In most cases when my script runs dhcpcd it either waits for the carrier until it times out, or acquires and loses the carrier before timing out.

hwdetect --show-net
NET    : mii r8169

My wireless card is a ralink rt2860

Last edited by mrutter (2010-01-01 00:54:39)

Offline

#2 2009-12-31 12:14:05

brianhanna
Member
Registered: 2009-10-30
Posts: 157

Re: wireless network scripts failing - kernel 2.6.32

I'm having wireless issues since the upgrade to 2.6.32 as well.

Offline

#3 2009-12-31 12:19:41

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: wireless network scripts failing - kernel 2.6.32

I've been having the same issue, only my encryptios is WEP, so i think wpa_supplicant have nothing to do with your networking failure.
Problem is in dhcpcd, at least i think so.

Offline

#4 2009-12-31 15:04:20

mrutter
Member
Registered: 2009-05-25
Posts: 16

Re: wireless network scripts failing - kernel 2.6.32

I'm glad it isn't only me. I just (after this problem came up on my 32bit install) did a clean install to move to the 64bit version (what the hell) and with the dhcpcd version and kernel (2.6.30) that was came with the core ISO everything works fine. But after the systems upgrade I got the same behaviour. Unfortunately I didn't think to try to isolate the problem by upgrading dhcpcd first.

My wireless card is a ralink rt2860.

Last edited by mrutter (2009-12-31 15:05:17)

Offline

#5 2009-12-31 15:59:32

hw-tph
Member
Registered: 2006-11-01
Posts: 149

Re: wireless network scripts failing - kernel 2.6.32

Check your configs and update them: The rt2860sta driver used to call the device /dev/ra0, now your wireless device is called /dev/wlan0.

That said, my connection now drops every now and then despite the rt2860sta version is the same (1.8.1.1) as in my previous kernel. I experienced this when 2.6.32.2-1 was in testing and I gave it a whirl, but expected it to be fixed before a 2.6.32 version would hit the Arch mainstream.

I reverted to 2.6.31.6-1 and all is back to normal (oh yes, I had to change my config files to use the /dev/ra0 device name again).

However, the rt2860sta module seems completely unable to handle 802.11n networks, which kind of sucks since the hardware supports it.

Offline

#6 2009-12-31 17:36:47

mrutter
Member
Registered: 2009-05-25
Posts: 16

Re: wireless network scripts failing - kernel 2.6.32

I know about the change from ra0 to wlan0, and as you said that isn't the problem.

dhcpcd: version 5.1.3 starting
dhcpcd: wlan0: waiting for carrier
dhcpcd: timed out
dhcpcd: version 5.1.3 starting
dhcpcd: wlan0: waiting for carrier
dhcpcd: wlan0: carrier acquired
dhcpcd: wlan0: rebinding lease of 192.168.0.2
dhcpcd: wlan0: carrier lost
dhcpcd: wlan0: broadcasting for a lease
dhcpcd: timed out

Last edited by mrutter (2009-12-31 17:37:44)

Offline

#7 2009-12-31 21:34:04

judico
Member
Registered: 2009-11-01
Posts: 8

Re: wireless network scripts failing - kernel 2.6.32

Hi guys, I have the same issue since 2.6.32-2 kernel update but i have an atheros wifi card. I've noticed that my script works every one of two times, it's funny and annoying ¬¬. In my case my laptop get's freeze so i have to force the reboot (with the poweroff botton) and in the second try it works. The next time I reboot, it fails again.

Offline

#8 2009-12-31 21:42:36

judico
Member
Registered: 2009-11-01
Posts: 8

Re: wireless network scripts failing - kernel 2.6.32

Sorry, i forgot the important info: arch64, intel celeron, atheros AR5001, and the script:

sudo ifconfig wlan0 up
sudo rm /var/run/dhcpcd-wlan0.pid
sudo iwconfig wlan0 essid "my_essid"
sleep 2s
sudo wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
sleep 5s
sudo dhcpcd wlan0

I put some "echo" lines, and the laptop dies when try to "sudo ifconfig wlan0 up" i guess.

Offline

#9 2009-12-31 22:36:23

mrutter
Member
Registered: 2009-05-25
Posts: 16

Re: wireless network scripts failing - kernel 2.6.32

I just downgraded my kernel to 2.6.31 and the problem goes away. I think we can safely say that the problem is related to the kernel update. For now just do "pacman - U" with the most recent kernel26-2.6.31 package:

http://www.schlunix.org/archlinux/core/os/

Offline

#10 2010-01-01 01:50:54

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: wireless network scripts failing - kernel 2.6.32

I am gonna need another way to get this working, because my nvidia drivers requires >=2.6.32 kernel.
So, anybody got an idea except downgrading?

Last edited by ksemeks (2010-01-01 01:51:08)

Offline

#11 2010-01-01 05:19:01

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: wireless network scripts failing - kernel 2.6.32

A number of Ralink cards are now pretty messed up with this kernel. Disabling power saving helps with some issues. Try this is root and see if the script stabilizes:

iwconfig <your_wireless_interface> power off

Offline

#12 2010-01-01 08:03:10

judico
Member
Registered: 2009-11-01
Posts: 8

Re: wireless network scripts failing - kernel 2.6.32

FIRST OF ALL: HAPPY NEW YEAR!!!! big_smile:D:D

Now well, I tried to do "iwconfig wlan0 power off" and got "Operation not supported". I thing that's an atheros thing jaja so I went back to 2.6.31.6-1.
Just for give an aditional info:
The new kernel (2.6.32.2-2) fix the framebuffer after "udev" (i mean during the bootup) without any patch like 915resolution (i have a widescreen), but if one uses Splashy, 915resolution and v86d, the splash will desappear and the screen will shutdown since "udev..." until the login manager.

I dont know exactly if the wifi issue is a thing of 2.6.32 version or just of the ...-2 realease. I thing that the ...-1 release doesn't have problems with wireless scripts.

Offline

#13 2010-01-01 11:03:23

mrutter
Member
Registered: 2009-05-25
Posts: 16

Re: wireless network scripts failing - kernel 2.6.32

Happy New Year everyone! Good riddance 2009!

ksemeks wrote:

I am gonna need another way to get this working, because my nvidia drivers requires >=2.6.32 kernel.
So, anybody got an idea except downgrading?

I had the same problem, and you can get around that by downgrade the nvidia drivers as well.

You can find them here:

http://www.schlunix.org/archlinux/extra/

Last edited by mrutter (2010-01-01 11:05:18)

Offline

#14 2010-01-01 11:16:57

oupsemma
Member
Registered: 2010-01-01
Posts: 70

Re: wireless network scripts failing - kernel 2.6.32

I had the same problem on my eeepc 1000H with RaLink rt2860, after the kernel's upgrade; but I'm using Wicd instead of Network-Manager.
Then I discovered the ra0 interface was to be named wlan0, so I've changed that in Wicd's parameters, and now it's working flawlessly.
May be for those having problems with the new kernel, changing from N-M to Wicd could be a solution.

Offline

#15 2010-01-01 12:11:35

mrutter
Member
Registered: 2009-05-25
Posts: 16

Re: wireless network scripts failing - kernel 2.6.32

oupsemma wrote:

I had the same problem on my eeepc 1000H with RaLink rt2860, after the kernel's upgrade; but I'm using Wicd instead of Network-Manager.
Then I discovered the ra0 interface was to be named wlan0, so I've changed that in Wicd's parameters, and now it's working flawlessly.
May be for those having problems with the new kernel, changing from N-M to Wicd could be a solution.

I tried using wicd instead of doing it manually, so that isn't the issue. Also as said before the change from ra0 to wlan0 is not the issue.

Last edited by mrutter (2010-01-01 12:13:01)

Offline

#16 2010-01-01 14:32:44

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: wireless network scripts failing - kernel 2.6.32

What package did u install for the nvidia?
Did u have to install any other dependencies?

I only hope that downgrading isn't a permanent solution..

Offline

#17 2010-01-01 15:05:59

dfelicia
Member
Registered: 2009-05-26
Posts: 14

Re: wireless network scripts failing - kernel 2.6.32

Add Intel cards to this list.  My Intel 4965AG won't connect in 2.6.32.  Works fine in 2.6.31.

Offline

#18 2010-01-01 15:50:40

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: wireless network scripts failing - kernel 2.6.32

Ya, my card is also intel, uses iwl5000 driver.

Offline

#19 2010-01-01 17:35:27

gdavid
Member
Registered: 2007-04-22
Posts: 22

Re: wireless network scripts failing - kernel 2.6.32

Add my Intersil Prism 2.5 Wavelan chipset card to the list.  It also worked fine before my upgrade to 2.6.32.

Offline

#20 2010-01-01 17:39:19

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: wireless network scripts failing - kernel 2.6.32

**** To all posters. If you're problem isn't exactly what's in the opening post, don't post in this thread unless you have an idea of how to solve the problem. Yes, there are regressions all over the place in wireless networking with this kernel, but your problem may have absolutely nothing to do with this. ****

Offline

#21 2010-01-01 17:44:31

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: wireless network scripts failing - kernel 2.6.32

But it does.

Offline

#22 2010-01-01 17:51:43

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: wireless network scripts failing - kernel 2.6.32

ksemeks wrote:

But it does.

As I said, if you are having the same problem, then it's fine to post here.

Offline

#23 2010-01-01 20:48:47

judico
Member
Registered: 2009-11-01
Posts: 8

Re: wireless network scripts failing - kernel 2.6.32

Well i don't know if I did a stupid experiment, but I tried installing 2.6.32(-1/.1-1/.2-1) instead of 2.6.32.2 but the problem is still present. What I don't understand is why in my case, with kernel 2.6.32 my wireless script works once, at the next boot it doesn't, at the next it works again, at the next it fails again and so on.

Offline

#24 2010-01-02 11:53:22

jugs
Member
Registered: 2007-12-05
Posts: 39

Re: wireless network scripts failing - kernel 2.6.32

Using the rtl8187 chipset wireless is also fubar.. Very disappointed that this major issue made it into core..

Offline

#25 2010-01-02 12:14:48

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: wireless network scripts failing - kernel 2.6.32

You all use x86_64 archlinux?

Offline

Board footer

Powered by FluxBB