Software
XBian version: 1.0 (knockout) updated to today.
XBMC/Kodi version: 17.1
Overclock settings: none
Hardware
Device type and model (e.g. Raspberry Pi Model A/B 256/512 MB, CuBox-i i4Pro, ...): Raspberry Pi 3 Model B
Power supply rating: 2.5 A, original
SD card size and make/type: 2GB
Network (Ethernet or wireless): Wireless
Connected devices (TV, USB, network storage, ...): TV via HDMI
Log files
Link to logfile(s): not provided
Problem description:
Since about one or two weeks ago, after a period of time that i'm don't know (maybe 3 hours?) I can't connect to my raspberry/xbian by ssh. If I have tranmission running I can't connect to it neither, the same happen to kodi. The only things that I have running in background are a script to update my ip for freedns.afraid.org and this script
https://github.com/niqdev/packtpub-crawler.
The problem happens at the same network and I have the raspberry connected by wifi.
Any ideas? maybe a driver problem? hardware problem?
How to reproduce:
Restart the raspberry and wait.
I suppose you're using the onboard wlan?
Unfortunately this broadcom wlan is absolutely crap, having similar issues here:
Sometimes wlan is working well for weeks w/o any issues, and from one day to another having same issue you described. No idea how to solve it, already used different firmwares with no success.
In my case after a while wlan is back, maybe you just have to wait. Strange thing is, my server can connect to rpi3 mostly, my notebook can't.
Which kernel do you use. If you're running 4.9.x, you could revert to 4.4 to see if there is any difference
Yes, it's its onboard wlan.
Kernel: 4.9.17+
I'll will try with 4.4 to see.
Thanks
Well, since i wrote the post everything works well. When the problem returns I'll try with the older kernel.
(7th Apr, 2017 04:05 AM)naox Wrote: [ -> ]Well, since i wrote the post everything works well. When the problem returns I'll try with the older kernel.
Seems you have same issue like me. Sometimes it works for weeks
Maybe that broadcom device is very sensitive against noisy air - who knows
(7th Apr, 2017 05:13 AM)Nachteule Wrote: [ -> ] (7th Apr, 2017 04:05 AM)naox Wrote: [ -> ]Well, since i wrote the post everything works well. When the problem returns I'll try with the older kernel.
Seems you have same issue like me. Sometimes it works for weeks Maybe that broadcom device is very sensitive against noisy air - who knows
Am sure you checked power saver settings for wifi already ?
As this was an issue with allot of the adapters falling asleep.
What does below one give you ?
Code:
grep '' /sys/module/$(readlink /sys/class/net/wlan0/device/driver/module | xargs -n 1 basename)/parameters/*
EDIT: I just noticed one of my Pi's got power saver enabled so had to do:
Code:
echo 'options r8188eu rtw_power_mgnt=0 rtw_enusbss=0' | sudo tee /etc/modprobe.d/r8188eu.conf
@
deHakkelaar
In my case, power saving is disabled since months (did that at the day the strange issue begun)
(7th Apr, 2017 09:29 AM)Nachteule Wrote: [ -> ]@deHakkelaar
In my case, power saving is disabled since months (did that at the day the strange issue begun)
Just out of interest, what does below output on a Pi 3 ?
Code:
grep '' /sys/module/$(readlink /sys/class/net/wlan0/device/driver/module | xargs -n 1 basename)/parameters/*
Will give an answer tomorrow, because my pi3 is currently out of order due to
this issue
I see you keeping them busy.
Dont worry, I am not in a rush to know
Next question, how do you disable power saving for on board WiFi on a Pi3 if its not in the parameters ?
Is this done in "interfaces" with the "wireless-power off" directive ?
Makes me wonder if its working at all.
For diagnosing, one could leave a ping running (keep alive) so the adapter doesnt fall asleep for sure eg:
Terminal
$ ping -i 30 -q $(sudo route -n | grep 'UG[ \t]' | awk '{print $2}') &
[1] 28888
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
$
Terminal
$ jobs
[1]+ Running ping -i 30 -q $(sudo route -n | grep 'UG[ \t]' | awk '{print $2}') &
$
Terminal
$ fg 1
ping -i 30 -q $(sudo route -n | grep 'UG[ \t]' | awk '{print $2}')
^C
--- 10.0.0.1 ping statistics ---
16 packets transmitted, 16 received, 0% packet loss, time 75056ms
rtt min/avg/max/mdev = 5.699/24.601/64.604/25.050 ms
$
Yes, in interfaces
Code:
iface wlan0 inet static
wpa-ssid SSID
wpa-psk SECRET
address 192.168.1.24
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.10
wireless-power off
iw telling me this setting works
Could be a false flag.
I would try ping as a last desperate attempt just to be sure
(8th Apr, 2017 11:52 AM)deHakkelaar Wrote: [ -> ]Could be a false flag.
I would try ping as a last desperate attempt just to be sure
Ah, already did that since years. Forgot to mention
Having script in background which pings server in 7s intervals. and if ping fails, wlan is completely reloaded (rmmod ..., modprobe ... ifup ...)