dfernandezm / tvster

TVster
MIT License
0 stars 0 forks source link

SSH and HTTP connection freeze in Raspberry Pi 3 #49

Open dfernandezm opened 7 years ago

dfernandezm commented 7 years ago

Initially it seemed a problem of memory or CPU. But according to multiple issues reported:

https://discourse.osmc.tv/t/pi-3-wifi-unstable/14171/6 https://github.com/raspberrypi/linux/issues/1342

And the kernel messages:

[  705.700797] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.701883] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.701963] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.708009] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.709075] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.709140] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.709195] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.709871] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.710214] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  705.710940] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.010329] net_ratelimit: 237 callbacks suppressed
[  770.010341] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.011779] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.017304] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.020288] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.020407] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.021769] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.026647] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.028029] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.032885] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!
[  770.034301] brcmfmac: brcmf_sdio_bus_txdata: out of bus->txq !!!

This seems like a problem with the onboard wifi module in Rpi3. Restarting does not help.

Trying out two possible things for now:

sudo iwconfig wlan0 power off

It seems to happen when transmission is heavily downloading.

dfernandezm commented 7 years ago

It seems better with power management off. The line

sudo iwconfig wlan0 power off

It will need to be added to rc.local to keep it between restarts.