Raspberry Pi and the Wifi power management

One real annoying issue working with a Raspberry Pi over Wifi is that the Wifi dongle goes into power saving mode. Thus the ssh connections lags or a connect isn’t even possible. But we can solve that. First we have to check that you have a specific USB dongle by executing the following command:

dmesg | grep rtl8192cu

If you see something like „usbcore: registered new interface driver rtl8192cu“ as result, we can solve the issue. Edit the following file:

sudo nano /etc/modprobe.d/8192cu.conf

and add the following:

# Disable power saving
options 8192cu rtw_power_mgnt=0

Now reboot and enjoy your stable Wifi connection without interrupts.