We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

Automatically Shutdown of Sailfish OS?

asked 2017-06-09 08:04:59 +0300

wmcig gravatar image

Is there any way to configure Sailfish OS to shut down every day at a certain time? Or is any app existing, which is doing that?

edit retag flag offensive close delete

Comments

2

you can use https://openrepos.net/content/ade/sailcron to do that

atlochowski ( 2017-06-09 09:24:34 +0300 )edit

1 Answer

Sort by » oldest newest most voted
5

answered 2017-06-09 09:23:23 +0300

spiiroin gravatar image

@wmcig At the moment you can utilize recurring alarms with shutdown command line action - running something like this as nemo user (i.e. not root) should do it:

timedclient-qt5 -a 'whenDue;runCommand=/usr/sbin/dsmetool --shutdown' -r 'hour=9;minute=11;everyMonth;everyDayOfMonth;everyDayOfWeek' -e APPLICATION=autoshutdown

When/if you want to remove such alarms, it can be done for example like this:

for cookie in $(timedclient-qt5 -s 'APPLICATION=autoshutdown'); do timedclient-qt5 -c $cookie; done
edit flag offensive delete publish link more

Comments

Is there an equivalent available that boot your phone at a given time?

Dylan Van Assche ( 2017-06-09 11:27:11 +0300 )edit

Not really. I mean you can use alarms to make the device boot to act dead (similarly as clock alarms power up the device to show the alarm), but that is probably not what one would want to do.

In ancestral Nokia devices up to N900 it was possible to schedule an alarm that would boot the device up to ui (mostly for automated system testing purposes), but the current sw stack is missing some bits and pieces required by that.

Somewhat related: https://together.jolla.com/question/28517/turn-on-jolla-from-the-alarm/

spiiroin ( 2017-06-09 17:48:24 +0300 )edit
2

If you want a gui to manage the time you could use Situations app from the Store to run the shutdown command.

hetas ( 2017-06-10 08:05:40 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2017-06-09 08:04:59 +0300

Seen: 551 times

Last updated: Jun 09 '17