Forum
Wifi disconnecting when left idle - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Network (/forum-25.html)
+--- Thread: Wifi disconnecting when left idle (/thread-440.html)



Wifi disconnecting when left idle - Beanz - 12th Feb, 2013 06:16 AM

Hi all,

I have recently changed my router to an ASUS RT-N56U and have been having problems where i need to reboot the Pi to get the network connected after its been left for a while, once booted i can access my NAS and thingsa tend to stream ok.
Is there a setting within Xbian that keeps communications open or is there something standard in router settings that would keep the connection alive that i can look for ?

I am running a wifi bridge to connect wirelessly using the ethernet connection as the Edimax USB dongle i recently bought is giving me problems where i don't get a network connection and when checking System Settings lots of things including - OS, MAC Address, Connection etc - show as BUSY, but that a different issue Smile

Thanks for any pointers.


RE: Wifi disconnecting when left idle - Koenkk - 12th Feb, 2013 06:30 AM

Are you already on the latest kernel? Guide is here: http://forum.xbian.org/thread-370.html


RE: Wifi disconnecting when left idle - Beanz - 12th Feb, 2013 09:29 AM

I ran uname -a
and get
Linux xbian 3.6.11+ #10 PREEMPT Thu Jan 3 20:53:38 CET 2013 armv6l GNU/Linux
so assume thats the latest one ?


RE: Wifi disconnecting when left idle - CurlyMo - 12th Feb, 2013 09:32 AM

Did you follow the guide by Koenkk?


RE: Wifi disconnecting when left idle - Beanz - 13th Feb, 2013 12:17 AM

(12th Feb, 2013 09:32 AM)CurlyMo Wrote:  Did you follow the guide by Koenkk?

I have done now so will see if it makes a difference. Thanks both.


RE: Wifi disconnecting when left idle - CurlyMo - 13th Feb, 2013 12:19 AM

Can you try this fix: https://github.com/xbianonpi/xbian/blob/xbian-alpha5/etc/modprobe.d/8192cu.conf


RE: Wifi disconnecting when left idle - Beanz - 13th Feb, 2013 01:39 AM

(13th Feb, 2013 12:19 AM)CurlyMo Wrote:  Can you try this fix: https://github.com/xbianonpi/xbian/blob/xbian-alpha5/etc/modprobe.d/8192cu.conf

Sorry to sound like a complete noob but wheredo i add that text / file ?

I watched a program on Xbian before the school run, have just got back and it has no ip address already so will give the above a go.


RE: Wifi disconnecting when left idle - Koenkk - 13th Feb, 2013 01:41 AM

SSH into your raspberry pi, guide: http://xbian.org/getting-started/install-and-connect/#ssh

Then execute this command:
Code:
sudo su                      #password = raspberry
echo "options 8192cu rtw_power_mgnt=0 rtw_enusbss=0" > /etc/modprobe.d/8192cu.conf



RE: Wifi disconnecting when left idle - Beanz - 13th Feb, 2013 01:54 AM

Thanks for that, no problem using SSH it was just the code i was unsure of. Just rebooting the pi so i can connect to it.

I have come across a new issue since doing the original update in the 1st reply though as now my CPU usage is showing between 96 and 98% constantly, is this something to be concerned with? I streamed the video i mentioned earlier with no problems but dunno if heat is an issue with the pi cpu that could manifest. Ta.


RE: Wifi disconnecting when left idle - Koenkk - 13th Feb, 2013 02:23 AM

If everything goes smooth, the CPU usage isn't a problem at all.


Re: Wifi disconnecting when left idle - Beanz - 13th Feb, 2013 09:20 AM

Looks like the power management edit to the config file has done the job as just gone back to my pi 7 hours after last using it and xbian connected to my NAS as if I'd just rebooted it :-D
Love it, the perfect media streamer with extra benefits of great repos and only consuming the minimum of power!

Thanks for the great assistance.


Re: Wifi disconnecting when left idle - Beanz - 13th Feb, 2013 07:05 PM

Spoke to soon, got up this morning to network disconnected. Think it must be a dhcp issue with my router, will look into that.