google-code-export / rk3066-linux

Automatically exported from code.google.com/p/rk3066-linux
0 stars 0 forks source link

WiFi disconnects when leaving device unattended/idle with no Net activity. #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Using the RK901 Internal WiFi
2.Leaving the device idle/unattended
3.No internet activity

What is the expected output? What do you see instead?
WiFi Network is Disconnected, need to restart networking to connect again

What version of the product are you using? On what operating system?
PicUntu 0.9 RC2.2 on MK808

Please provide any additional information below.

Not sure if this is a widespread problem, or just me.
But the WiFi has been disconnecting if I leave the device unattended/idle with 
no internet activity for a long period or a few hours(random)

I did a few tests and monitoring my connecting via iwconfig in terminal. I 
noticed that the Tx-Power fluctuates between 29 dBm and 32dBm randomly at 
times, so i'm speculating that maybe that may be the cause?

So I got a hunch and used the iwconfig txpower fixed command via terminal at 
the beginning of each linux bootup. 'iwconfig eth0 txpower 32 fixed'

So far so good, WiFi hasn't drop yet. Will keep on testing.

Original issue reported on code.google.com by Vampirex...@gmail.com on 29 Jan 2013 at 4:31

GoogleCodeExporter commented 9 years ago
by the way my dmesg is flooded by:
[DHD] wl_iw_ioctl: error in cmd=8b03 : not supported
[DHD] wl_iw_ioctl: error in cmd=8b09 : not supported

Original comment by Vampirex...@gmail.com on 29 Jan 2013 at 4:56

GoogleCodeExporter commented 9 years ago
txpower fixed helped, but still get disconnected after 24hrs.

Original comment by Vampirex...@gmail.com on 29 Jan 2013 at 10:41

GoogleCodeExporter commented 9 years ago
Not sure. But I posted a link here about a fix that my work for you to. So here 
is the code to that link. It works for me very good.

root@small5:~# ls -l /bin/sh
 lrwxrwxrwx 1 root root 4 Nov 28 02:41 /bin/sh -> dash
 root@small5:~# mv /bin/sh /bin/sh.bak
 root@small5:~# ls -l /bin/sh.bak
 lrwxrwxrwx 1 root root 4 Nov 28 02:41 /bin/sh.bak -> dash
 root@small5:~# ln -s /bin/bash /bin/sh
 root@small5:~# ls -l /bin/sh
 lrwxrwxrwx 1 root root 9 Jan 20 07:34 /bin/sh -> /bin/bash
 root@small5:~#

Original comment by raymond....@gmail.com on 11 Feb 2013 at 8:36

GoogleCodeExporter commented 9 years ago
Same issue for me.  This is a problem for me as well since the MK808 is used as 
a headless music streaming server (squeezebox server/zone).

I'll try the fix above.

Original comment by sebastie...@gmail.com on 15 Mar 2013 at 6:27

GoogleCodeExporter commented 9 years ago
The suggestion in the first post didn't work for me. 
I also disabled every power management option, I even wrote a script which once 
per minute executes
sudo networking restart 
on every failed ping. This doesn't always work, sometimes there is a reboot 
needed. And even after a reboot it doesn't reliably work.
I don't know how the "fix" of raymond should help in this matter?! It's just a 
link of /bin/sh to /bin/bash. I tried it anyhow - guess what - it doesn't work. 
;)

Original comment by tom.l...@gmail.com on 15 Mar 2013 at 6:33

GoogleCodeExporter commented 9 years ago
I concur that replacing the symbolic link doesn't work. I also have the same 
issue, with similar log messages. Not sure if this is caused by wpa_supplicant 
or by the driver, though.  For the record, I am on a WPA2 network running on 
DD-WRT.

Original comment by sle...@lecsys.net on 19 Mar 2013 at 1:06

GoogleCodeExporter commented 9 years ago
Also have some problem, link sh to bash and setting txpower to 32 not works, 
WiFi didconnects when it want. Wrote script to restart eth0 on no ping and try 
to monitor, time of online differs:
08:08:02 - 08:09:32 ~ 1.5 min
08:11:01 - 08:12:33 ~ 1.5 min
08:14:01 - 08:29:24 ~ 15.5 min (downloaded big file in this period)
08:31:01 - 08:34:49 ~ 3.5 min
08:36:01 - 08:38:25 ~ 2.5 min
08:40:01 - 08:50:20 ~ 10 min
:(

Original comment by mikul...@gmail.com on 2 Sep 2014 at 9:09

GoogleCodeExporter commented 9 years ago
P.S. Used mk808ii with rk3066 on kernel 3.0.66+ with marsboard ubuntu 14.04 

Original comment by mikul...@gmail.com on 2 Sep 2014 at 9:11