CLI paused and commands stopped when device locked
It seems that a command run in terminal/fingerterm is paused the moment I lock my device.
I wanted to back up my home dir using tar
, but I could only observe progress as long as I was keeping my phone unlocked, doing some alibi browsing, which was quite boring as the backup took about an hour. Looking at it from a different perspective, this sucked quite some battery, too.
How can I make sure that the script or cmd I launched continues after locking my phone?
Do you connect via wifi or usb?
My experience shows that wifi transmitter on jolla frequently enters sleep mode when jolla's screen is turned off and therefore response to keypresses and and command output becomes laggy.
bte, try to hit enter when you command is freezed. It seems that some input wakes up kernel.
Self-Perfection ( 2015-07-24 01:03:35 +0200 )editI use fingerterm, so input is done directly from the device - just updated the request. I would like to fire and forget not having to watch the process. The cmd just takes its time, I reckon on having to wait for several minutes. But shutting off the display would be cosy for the battery. Generally I appreciate that the phone enters sleep mode, but just in this case I would like to keep my cmd from joining the others.
lakutalo ( 2015-07-24 09:18:42 +0200 )editSeems fairly odd since for example my device works differently; I frequently execute scripts from cron and they work even when the device is in deep sleep.
Maybe you have some special power saving setting/tweak enabled?
juiceme ( 2015-07-24 13:31:10 +0200 )editUser input obviously is treated in a different way compared to your method. So maybe the best solution is to build some kind of periodic hook and hinge my command as a script. I thought of using dbus in the first place. But systemctl might be a way for the "hook".
lakutalo ( 2015-07-24 14:18:09 +0200 )editHei,
Try creating a shortcut (.desktop) for it and start the script from the UI. It seems to be working on my Jolla.
LVPVS out.
LVPVS ( 2015-07-25 22:10:36 +0200 )edit