Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: erkobg on January 28, 2016, 04:29:20 PM

Title: [solved] A20 How to disable sleep/susend/hibernate?
Post by: erkobg on January 28, 2016, 04:29:20 PM
 Hello,
while using through SSH, A20 goes into a sleep mode, and connection ( which is thorough wifi) stops,
and I am not able to start board until I restart it...

This is annoying ... :o :o :o :o

Is there a way to make board always awake?
Any instructions will be very helpful
Title: Re: A20 How to disable sleep/susend/hibernate?
Post by: erkobg on January 28, 2016, 05:29:08 PM
This never happens when board is connected with cable to the LAN,
only happens when connected over wifi with USB stick.
Title: Re: A20 How to disable sleep/susend/hibernate?
Post by: igorpec on January 29, 2016, 05:16:47 PM
iwconfig wlan0 power off

Not working on all but you can try.

https://www.raspberrypi.org/forums/viewtopic.php?t=46569&p=666920
Title: Re: A20 How to disable sleep/susend/hibernate?
Post by: erkobg on February 07, 2016, 04:42:53 PM
I was able to disable it, following
https://www.raspberrypi.org/forums/viewtopic.php?t=51543&p=397663

The 8192cu kernel module has power management enabled by default:

$ cat /sys/module/8192cu/parameters/rtw_power_mgnt
1



I was able to disable power management completely by creating /etc/modprobe.d/8192cu.conf with the following contents:


# Disable power saving
options 8192cu rtw_power_mgnt=0



After creating the file, you will need to reboot. You can confirm that power management is disabled after rebooting by verifying that the value of the rtw_power_mgnt parameter is now 0.
~ $ cat /sys/module/8192cu/parameters/rtw_power_mgnt
0