Re: thinkpad wifi/dhclient issue

2014-09-30 Thread frantisek holop
the last part of this saga is, that i have moved
to a new place, and the issue went away. so it
seems it was router related.  just another strange
story from the home router front.

-f
-- 
i have nothing to say, but i can say it loudly.



Re: thinkpad wifi/dhclient issue

2014-09-27 Thread frantisek holop
frantisek holop, 25 Sep 2014 17:28:
 for everybody out there who likes a good mystery,
 the 900 ping issue has happened mid-day as well
 for the first time.  it is the equivalent of yanking
 the ethernet cable.  so it is not an exclusively
 resume connected, but resume (and startup) is
 a way to reproduce instantly.

i have realised that i dont have to wait 1 second
between every ping.

sudo ping -f -c 999 8.8.8.8

helps in some cases almost instantly.

-f
-- 
what a day may bring, a day may take away.



Re: thinkpad wifi/dhclient issue

2014-09-25 Thread frantisek holop
for everybody out there who likes a good mystery,
the 900 ping issue has happened mid-day as well
for the first time.  it is the equivalent of yanking
the ethernet cable.  so it is not an exclusively
resume connected, but resume (and startup) is
a way to reproduce instantly.

this time however when dhclient went to grab
a new lease, it started spinning and had to be killed.
so i made a debug version and hope to gdb attach
to it.

perhaps it is not a timeout, because network activity
must be present, if i dont start pinging, connections
never come back.  so perhaps it is filling up some
buffer?  what a nice guessing game :)

-f
-- 
my favorite mythical creature?  the honest politician.



thinkpad wifi/dhclient issue

2014-09-24 Thread frantisek holop
i have this strange issue with my thinkpad X60s
that i dont remember having before (the machine
was in storage for 2 years)

when i boot up (or resume), i get a dhcp lease
from my home router (another openbsd notebook
also works with that router using a usb dongle run0)

however after i get the lease, connections do not work.
if i rerun dhclient, i get the lease again, and still
no connections.

but the strange thing is, that some ~900 pings
later (~15 minutes), dhclient kicks in life again,
gets another lease, and voila, i have connections.
the 2 dhclient outputs look the same, no difference
whatsoever.  this also does not happen with em0,
connections work right after dhclient.

11:54:39 $ ping 8.8.8.8

PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=895 ttl=50 time=1034.245 ms
64 bytes from 8.8.8.8: icmp_seq=896 ttl=50 time=25.040 ms
64 bytes from 8.8.8.8: icmp_seq=897 ttl=50 time=23.596 ms
64 bytes from 8.8.8.8: icmp_seq=898 ttl=50 time=23.027 ms
64 bytes from 8.8.8.8: icmp_seq=899 ttl=50 time=22.841 ms
64 bytes from 8.8.8.8: icmp_seq=900 ttl=50 time=22.024 ms
64 bytes from 8.8.8.8: icmp_seq=901 ttl=50 time=22.273 ms
64 bytes from 8.8.8.8: icmp_seq=902 ttl=50 time=22.263 ms
64 bytes from 8.8.8.8: icmp_seq=903 ttl=50 time=23.256 ms
64 bytes from 8.8.8.8: icmp_seq=904 ttl=50 time=23.353 ms
64 bytes from 8.8.8.8: icmp_seq=905 ttl=50 time=23.646 ms
64 bytes from 8.8.8.8: icmp_seq=906 ttl=50 time=22.888 ms
64 bytes from 8.8.8.8: icmp_seq=907 ttl=50 time=22.238 ms
64 bytes from 8.8.8.8: icmp_seq=908 ttl=50 time=22.547 ms
64 bytes from 8.8.8.8: icmp_seq=909 ttl=50 time=22.211 ms
--- 8.8.8.8 ping statistics ---
904 packets transmitted, 9 packets received, 99.0% packet loss
round-trip min/avg/max/std-dev = 21.989/135.159/1033.790/317.715 ms
12:09:56 $


it definitely looks like some timeout, but timeout of what?
dmesg attached.

-f

OpenBSD 5.6-current (GENERIC.MP) #338: Wed Sep 10 17:55:18 MDT 2014
t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz (GenuineIntel 686-class) 1.67 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
real mem  = 2137354240 (2038MB)
avail mem = 2090008576 (1993MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/18/07, BIOS32 rev. 0 @ 0xfd690, SMBIOS 
rev. 2.4 @ 0xe0010 (67 entries)
bios0: vendor LENOVO version 7BETC9WW (2.10 ) date 04/18/2007
bios0: LENOVO 1705CTO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) Duo CPU L2400 @ 1.66GHz (GenuineIntel 686-class) 1.67 
GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 97 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4629 serial   327 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xea00! 0xcf000/0x1000 0xd/0x1000 0xdc000/0x4000! 
0xe/0x1!
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1024x768
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
Intel 82945GM Video rev