I have recently been having a problem where I leave my raspberry pi on connected to the internet as I am running an a apache server on it and when I come back to the Raspberry Pi about a day later the dongle isn't flashing blue like it usually does. I go to the wpa_gui and it says as the status 'Could not get status from spa_supplicant'. I tried taking out the dongle half way and then pushing it back in. This seems to get it working again but I had it working before where I could just leave it and it would stay connected to the internet. Does anyone have any ideas what I could do to stop it disconnecting?
Maybe your wifi dongle entered in power saving mode, toit, you have to add "wireless-power off" in your "interfaces" file
sudo nano /etc/network/interfaces
2/ Add at the end of file
3/ Reboot by typing :