5 Replies Latest reply on Feb 24, 2017 11:47 AM by Intel Corporation

    lowering power use

    ShakerBreaker

      Hi,  I'm using the intel XDK, programming in javascript, but at this

       

      I am basically just trying to figure out how to make the intel Edison and anything connected to it use as little power as possible for an hour, then becoming fully functional again. I'm using the intel XDK, programming in javascript, but at this point, I'm open to pretty much any option.  I can make the Edison go to sleep, I run this:

       

         var exec = require('child_process').exec;

         exec('ifconfig wlan0 down', function (error, stdOut, stdErr) { });

         exec('systemctl stop wpa_supplicant', function (error, stdOut, stdErr) {});

         exec('echo -n "mem" > /sys/power/state', function (error, stdOut, stdErr) {});

       

      but after that, it never wakes up unless i physically reset it.  is there a command I can run in chron that wakes it up every hour?  a javascript solution would of course be prefered, but after about 24 hours of searching, I have yet to find anything.

       

      Thanks