ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #17184
Re: Cron incomplete performance in UbuntuPhone
Hi,
you can use powerd-cli to schedule a wakeup at 7am.
checkout powerd-cli --help. There is an option to schedule a device
wakup n seconds from now. Not sure how reliably that works in
combination with a cron job... but well, play around with it.
On 08.12.2015 16:28, Rasool Ent. wrote:
> Thank you for you reply
> Actually, it's for test that I triggered cron every minute.
> I want, for example, that it run a command in 7:00 AM. However my device
> went in deep-sleep and cron was sleep.
>
> On Tue, Dec 8, 2015 at 6:00 PM, Michael Zanetti
> <michael.zanetti@xxxxxxxxxxxxx <mailto:michael.zanetti@xxxxxxxxxxxxx>>
> wrote:
>
> Seems like cron events are skipped when the device is in deep-sleep.
>
> You could work around that by using something like "anacron" instead of
> regular cron.
>
> Another option would be to prevent your device from going to deep sleep
> (e.g. by using "powerd-cli active"). This however, will drain your
> battery a lot.
>
> The best option however, would probably be to question the reason why
> you need cron at all. What are you trying to achieve? Does it really
> need to be triggered every minute?
>
> Br,
> Michael
>
> On 08.12.2015 15:05, Rasool Ent. wrote:
> > Hello
> > I have a Nexus 4
> > stable ota8
> >
> > I'm in Ubuntu, I use cron utility.
> > But the phone when the screen is turned off, the process fail.
> > What should I do so that I can always use cron?
> >
> > This command inside my cron.
> > * * * * * /home/phablet/script2.sh
> >
> > And this is the script containing the command "ls":
> > http://paste.ubuntu.com/13823643/
> >
> > And the output script log:
> > http://paste.ubuntu.com/13823668/
> >
> > And the output of the syslog:
> > http://paste.ubuntu.com/13823812/
> >
> > Thank You
> >
> >
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
> --
> *Rasool Entertainment*
Attachment:
signature.asc
Description: OpenPGP digital signature
References