Page 1 of 1

Wifi query

Posted: Fri Nov 24, 2017 9:06 pm
by smithjames0
Hi,

I have a problem with my WIFI going to sleep, I have googled it endlessly but what every I try, fails. I did have it working up till a week ago when I got a new router, I (for some reason) wiped the interfaces file and started a fresh, since then the problem is simple the WIFI goes to sleep :roll:
I have also tried to have a static IP but thats not working either.

My raspberry is running Wheezy, Headless.

My interfaces file

Code: Select all

auto lo

iface lo inet loopback

iface eth0 inet dhcp
wireless-power off

allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.6
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

#allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
My wpa_supplicant.conf

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1


network={
        ssid="SomeID"
        psk="Somepassword"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
}
I have tried this
/etc/modprobe.d/8192cu.conf

Code: Select all

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 rtw_ips_mode=1
After I restart the raspberry the router see it and it gets two IP's the 227 is the one I use to SSH, the 6 is the one I tried to fix it too.

Code: Select all

raspberrypi	192.168.1.227 192.168.1.6
Can anyone help, or at least point me in the right direction!

Regards
James

Re: Wifi query

Posted: Fri Nov 24, 2017 11:37 pm
by DougieLawson
smithjames0 wrote:
Fri Nov 24, 2017 9:06 pm

My raspberry is running Wheezy, Headless.
Why?

Wheezy died two years & two months ago.
Jessie retired two months ago.

The supported Raspbian version is Stretch.

Re: Wifi query

Posted: Sat Nov 25, 2017 3:42 pm
by Ronaldlees
Yeah - Wheezy is a bit long in the tooth. I no longer run it even on x86 platforms. Perhaps there have been improvements to the driver since then, or to the power saving code.

Some other people have reported the same problem as you, and have indicated that the "fix" didn't work for them. Some of them are reporting success with the reloading of the driver to get around the issue:

modprobe -r 8192cu
modprobe 8192cu

They're putting this into a script, along with some checks to see if the wlan0 is up, and then to make sure it is up again, and running that as a periodic cron job. But, as DougieLawson mentions, it might be prudent to update your system instead of band-aiding the problem :-)

Re: Wifi query

Posted: Sat Nov 25, 2017 4:49 pm
by smithjames0
Thanks for the replys, the raspberry lives at the bottom of the garden controlling the chicken coop door, so while it's been working fine I have left it. I will have a look at the drivers.


Thanks

James

Re: Wifi query

Posted: Tue Nov 28, 2017 9:58 am
by DidierAubin87
Ronaldlees wrote:
Sat Nov 25, 2017 3:42 pm
Yeah - Wheezy is a bit long in the tooth. I no longer run it even on x86 platforms. Perhaps there have been improvements to the driver since then, or to the power saving code.

Some other people have reported the same problem as you, and have indicated that the "fix" didn't work for them. Some of them are reporting success with the reloading of the driver to get around the issue:

modprobe -r 8192cu
modprobe 8192cu

They're putting this into a script, along with some checks to see if the wlan0 is up, and then to make sure it is up again, and running that as a periodic cron job. But, as DougieLawson mentions, it might be prudent to update your system instead of band-aiding the problem :-)
Just wanna say thanks for supporting. I'm the newbie so it is very useful to me.