On Sunday, June 21, 2015 04:44:20 PM Alexander Meshcheryakov wrote: > Hi all > > I suffer from data corruption when processes writes/reads large > amounts of data (~100MiB) from/to filesystem and Jolla enters deep > sleep mode. Looks like a kernel bug to me. ...
> 2. Is there a way to prevent device from entering deep sleep while > scheduled task is running to prevent data corruption? There is keepalive-tool in libkeepalive-glib-tools package that is meant to be used for this kind of purposes. It keeps the system from suspending while executing a binary or script as a subprocess (optionally a timeout can be used to allow device to suspend in case the subprocess hangs / otherwise does not exit in expected time). Usage: keepalive-tool [tool options] -- <command> [command args] A bit useless example: keepalive-tool -- ls -l /tmp In your case it would be something like: timedclient-qt5 -a 'whenDue;runCommand=/usr/bin/keepalive-tool -- /bin/sh /home/nemo/android_storage/test_unpack.sh' -e "APPLICATION=test_unpack;ticker=$t" Simo _______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org