Thinkpad T60 with Atheros working only after restart from Windows
Lyubomir Yotov
l.yotov at gmail.com
Mon Jun 10 13:06:29 UTC 2013
Hello Adrian,
Attached are files with consecutive vmstat -i when the wlan is working
(vmstat-i_working.txt) and when the wlan is not working
(vmstat-i_not_working.txt). There is also output from ifconfig when the
wlan is not working (ifconfig.txt).
After some more deeper investigation it seems to me that the problem
appears after starting X with Gnome. I will continue investigating with
"reboot"/"halt -p" and inform you.
BTW do you think that starting Gnome session (using startx, as I haven't
set auto start of X if this is of any importance) can cause problems - in
Gnome I have no settings for the network in the "System->Network"
application and I start it with normal user?
Regards,
Lyubo
On 9 June 2013 18:28, Adrian Chadd <adrian at freebsd.org> wrote:
> Can you please paste the vmstat -i output?
>
>
>
> adrian
>
> On 9 June 2013 06:53, Lyubomir Yotov <l.yotov at gmail.com> wrote:
> > Hi,
> >
> > After restart from Windows and working wireless the number of interrupts
> > increases and the rate increases. After next restart (the ath0 times out)
> > the interrupts increase but the rate is going down.
> > I noticed that after restart from Windows and working wifi if I restart
> > /etc/rc.d/netif the wifi is working again. If I shutdown wlan0 and bring
> it
> > up again then I wlan0 doesn't get address but ath0 is not timing out. I
> can
> > still get a list with the available APs around.
> >
> > Regards,
> >
> > Lyubo
> >
> >
> >
> >
> >
> >
> > On 8 June 2013 18:28, Adrian Chadd <adrian at freebsd.org> wrote:
> >>
> >> Hm!
> >>
> >> Ok, this should be working. I frequently test (read: every other day)
> >> with the AR5416. But you're not the first person to report this bug.
> >>
> >>
> >> Unfortunately when this happens, the interrupts aren't actually making
> >> it to the OS.
> >>
> >> Can you check the output of vmstat -i whilst you're doing it? The ath0
> >> counter should be increasing.
> >>
> >>
> >>
> >> adrian
> >>
> >> On 8 June 2013 06:49, Lyubomir Yotov <l.yotov at gmail.com> wrote:
> >> > Hello,
> >> > I have a Thinkpad T60 with dual boot between Windows XP and FreeBSD
> >> > 9.1-Release:
> >> >
> >> > uname -a
> >> > FreeBSD T60.workgroup 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue
> >> > Dec
> >> > 4 06:55:39 UTC 2012
> >> > root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> >> > i386
> >> >
> >> > I am trying to use my wifi card which is:
> >> >
> >> > dmesg
> >> > ....
> >> > ath0: <Atheros 5416> mem 0xedf00000-0xedf0ffff irq 17 at device 0.0 on
> >> > pci3
> >> > ath0: AR5418 mac 12.10 RF5133 phy 8.1
> >> > ....
> >> >
> >> > pciconf -lv
> >> > ....
> >> > ath0 at pci0:3:0:0: class=0x028000 card=0x0033168c
> chip=0x0024168c
> >> > rev=0x01 hdr=0x00
> >> > vendor = 'Atheros Communications Inc.'
> >> > device = 'AR5008 Wireless Network Adapter'
> >> > class = network
> >> > .....
> >> >
> >> > I followed several HOW-TOs in order to make it work. Unfortunately I
> it
> >> > is
> >> > working only after I reboot from my Windows installation (regardless
> of
> >> > the
> >> > position of the wifi switch on the front panel of the notebook). After
> >> > restart from Windows everything is fine - the wifi associates with the
> >> > AP
> >> > and I can use it. If I reboot the system during the boot and
> afterwards
> >> > I
> >> > constantly get:
> >> >
> >> > ath0: device timeout
> >> >
> >> > When I get the device status through ifconfig I can see that ath0 is
> >> > associated but wlan0 is not associated.
> >> >
> >> > ifconfig ath0
> >> > ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> >> > 2290
> >> > ether 00:19:7e:91:xx:xx
> >> > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> >> > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
> >> > status: associated
> >> >
> >> > ifconfig wlan0
> >> > wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> >> > 1500
> >> > ether 00:19:7e:91:xx:xx
> >> > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> >> > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
> >> > status: no carrier
> >> > ssid "" channel 5 (2432 MHz 11g)
> >> > regdomain 98 indoor ecm authmode WPA privacy ON deftxkey UNDEF
> >> > txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300
> >> > bgscanidle
> >> > 250
> >> > roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL
> >> >
> >> >
> >> > In /var/log/messages I get:
> >> >
> >> > Jun 8 16:39:16 PC wpa_supplicant[3463]: Trying to associate with
> >> > 54:e6:fc:ae:xx:xx (SSID='access1' freq=2432 MHz)
> >> > Jun 8 16:39:20 PC kernel: ath0: device timeout
> >> > Jun 8 16:39:26 PC wpa_supplicant[3463]: Authentication with
> >> > 54:e6:fc:ae:xx:xx timed out.
> >> >
> >> > If I scan for wireless networks I get a list and my ap is in the list
> >> >
> >> > ifconfig wlan0 scan
> >> > SSID/MESH ID BSSID CHAN RATE S:N INT CAPS
> >> > net1 00:11:11:01:xx:xx 6 54M -68:-96 100 EP
> >> > 5edf9c 70:71:bc:26:xx:xx 11 54M -68:-96 100 EP WPS WPA
> >> > WME
> >> > access1 54:e6:fc:ae:xx:xx 5 54M -66:-96 100 EP WPA HTCAP
> >> > WME
> >> >
> >> >
> >> > In rc.local I have:
> >> >
> >> > wlans_ath0="wlan0"
> >> > ifconfig_wlan0="WPA DHCP"
> >> >
> >> > In wpa_supplicant I have:
> >> >
> >> > ctrl_interface=/var/run/wpa_supplicant
> >> > eapol_version=2
> >> > ap_scan=1
> >> > fast_reauth=1
> >> >
> >> > network={
> >> > ssid="access1"
> >> > psk="secret1"
> >> > priority=5
> >> > }
> >> > network={
> >> > ssid="access2"
> >> > psk="secret2"
> >> > priority=5
> >> > }
> >> >
> >> > I searched the net for solution to my problem but I couldn't find one.
> >> > Can
> >> > you help me with this?
> >> >
> >> >
> >> > Regards,
> >> >
> >> > Lyubomir
> >> > _______________________________________________
> >> > freebsd-mobile at freebsd.org mailing list
> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
> >> > To unsubscribe, send any mail to
> >> > "freebsd-mobile-unsubscribe at freebsd.org"
> >
> >
>
-------------- next part --------------
# vmstat -i
interrupt total rate
irq1: atkbd0 215 2
irq9: acpi0 505 5
irq14: ata0 129 1
irq17: ath0 uhci1 826 8
irq19: uhci3 ehci0 15 0
irq20: hpet0 193053 2098
irq256: hdac0 47 0
irq257: em0 299 3
irq258: ahci0 2757 29
Total 197846 2150
# vmstat -i
interrupt total rate
irq1: atkbd0 221 2
irq9: acpi0 505 5
irq14: ata0 138 1
irq17: ath0 uhci1 875 8
irq19: uhci3 ehci0 15 0
irq20: hpet0 193658 1976
irq256: hdac0 47 0
irq257: em0 311 3
irq258: ahci0 2784 28
Total 198554 2026
# vmstat -i
interrupt total rate
irq1: atkbd0 227 2
irq9: acpi0 505 5
irq14: ata0 141 1
irq17: ath0 uhci1 893 9
irq19: uhci3 ehci0 15 0
irq20: hpet0 193866 1958
irq256: hdac0 47 0
irq257: em0 317 3
irq258: ahci0 2789 28
Total 198800 2008
# vmstat -i
interrupt total rate
irq1: atkbd0 233 2
irq9: acpi0 511 5
irq14: ata0 144 1
irq17: ath0 uhci1 911 9
irq19: uhci3 ehci0 15 0
irq20: hpet0 194122 1922
irq256: hdac0 47 0
irq257: em0 320 3
irq258: ahci0 2790 27
Total 199093 1971
# vmstat -i
interrupt total rate
irq1: atkbd0 239 2
irq9: acpi0 511 5
irq14: ata0 144 1
irq17: ath0 uhci1 922 9
irq19: uhci3 ehci0 15 0
irq20: hpet0 194282 1904
irq256: hdac0 47 0
irq257: em0 321 3
irq258: ahci0 2790 27
Total 199271 1953
# vmstat -i
interrupt total rate
irq1: atkbd0 245 1
irq9: acpi0 548 4
irq14: ata0 180 1
irq17: ath0 uhci1 1156 9
irq19: uhci3 ehci0 15 0
irq20: hpet0 197153 1564
irq256: hdac0 47 0
irq257: em0 372 2
irq258: ahci0 2887 22
Total 202603 1607
# vmstat -i
interrupt total rate
irq1: atkbd0 251 1
irq9: acpi0 548 4
irq14: ata0 186 1
irq17: ath0 uhci1 1198 9
irq19: uhci3 ehci0 15 0
irq20: hpet0 197660 1508
irq256: hdac0 47 0
irq257: em0 378 2
irq258: ahci0 2887 22
Total 203170 1550
# vmstat -i
interrupt total rate
irq1: atkbd0 257 1
irq9: acpi0 554 4
irq14: ata0 189 1
irq17: ath0 uhci1 1219 9
irq19: uhci3 ehci0 15 0
irq20: hpet0 197936 1488
irq256: hdac0 47 0
irq257: em0 380 2
irq258: ahci0 2894 21
Total 203491 1530
#
-------------- next part --------------
# vmstat -i
interrupt total rate
irq1: atkbd0 274 3
irq9: acpi0 489 6
irq12: psm0 12 0
irq14: ata0 129 1
irq17: ath0 uhci1 1898 27
irq19: uhci3 ehci0 15 0
irq20: hpet0 192011 2743
irq256: hdac0 47 0
irq257: em0 59 0
irq258: ahci0 2682 38
Total 197616 2823
# vmstat -i
interrupt total rate
irq1: atkbd0 1010 4
irq9: acpi0 710 3
irq12: psm0 4145 18
irq14: ata0 357 1
irq17: ath0 uhci1 2784 12
irq19: uhci3 ehci0 15 0
irq20: hpet0 211564 952
irq256: hdac0 47 0
irq257: em0 212 0
irq258: ahci0 2923 13
Total 223767 1007
# vmstat -i
interrupt total rate
irq1: atkbd0 1133 4
irq9: acpi0 753 2
irq12: psm0 5555 22
irq14: ata0 402 1
irq17: ath0 uhci1 3066 12
irq19: uhci3 ehci0 15 0
irq20: hpet0 214610 851
irq256: hdac0 47 0
irq257: em0 241 0
irq258: ahci0 2952 11
Total 228774 907
# vmstat -i
interrupt total rate
irq1: atkbd0 1162 4
irq9: acpi0 784 2
irq12: psm0 7895 29
irq14: ata0 426 1
irq17: ath0 uhci1 3143 11
irq19: uhci3 ehci0 15 0
irq20: hpet0 216869 809
irq256: hdac0 47 0
irq257: em0 257 0
irq258: ahci0 2954 11
Total 233552 871
# vmstat -i
interrupt total rate
irq1: atkbd0 1207 4
irq9: acpi0 796 2
irq12: psm0 9959 35
irq14: ata0 450 1
irq17: ath0 uhci1 3836 13
irq19: uhci3 ehci0 15 0
irq20: hpet0 218353 768
irq256: hdac0 47 0
irq257: em0 273 0
irq258: ahci0 2960 10
Total 237896 837
-------------- next part --------------
# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:19:7e:91:xx:xx
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect mode 11a
status: associated
# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:19:7e:91:xx:xx
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid falcata channel 11 (2462 MHz 11g)
regdomain 98 indoor ecm authmode WPA privacy ON deftxkey UNDEF
txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250
roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL
root at T60:/home/lyubd # ath0: device timeout
More information about the freebsd-mobile
mailing list