Ask / Submit

Overnight sleep function.

asked 2016-11-30 19:57:38 +0300

DarkTuring gravatar image

updated 2016-12-01 23:38:09 +0300

Sailfish OS should put all but the most essential processes to sleep during the night when the display is off, accelerometer and compass doesnt detect any changes, and the phone is NOT being charged. The exception of course would be:

  1. playing music processes
  2. bluetooth connected speakers
  3. wifi connections
  4. phone is being charged
  5. security related processes (VPN, Virus scanner, Blocker, Spam Control, Host List update etc)

Processes that would normally run or are scheduled to run from Android or SFOs should be qued until the morning when phone wakes due to alarm, being moved, or the display being turned on.

In addition, a sleep setting for each day could approximate sleep times.

As the following illustrates my phone discharges consistently over night then dies.

Phone battery drain over night

Here you see about a 50% power consumption reduction due to my situations app settings turning everything off during sleep. Compare slope reduction

edit retag flag offensive close delete


What if someone wants to reach me with an urgent Skype call in the middle of the night? Or a Whatsapp message?

Federico ( 2016-12-02 16:32:30 +0300 )edit

@Federico that is a valid concern and maybe 2G or 3G voice only could remain on during the night and as i remember the iPhone will unmute on repeated calls from same number. This could be a setting that repeated message, or call attempts activate all the network modems on the phone and put it back to normal mode until for say 30min and ypu stopped using the phone.

DarkTuring ( 2016-12-02 17:52:59 +0300 )edit

1 Answer

Sort by » oldest newest most voted

answered 2016-11-30 21:24:27 +0300

naytsyrhc gravatar image

There is an app called Situations, which can do exactly that. E.g. I have a situation called "at home" based on my wifi access point and I have a situation called "asleep" that is active if I am "at home" and time is between 0:15 and 6:30 and display is off. During that situation, my phone is set to powersaving mode, flight mode and silent. Due to these two situations, I'm sure that my phone will switch to lowest power consumption while I'm most probably asleep and that it will not cutoff while I'm out or still using it.

edit flag offensive delete publish link more


@naytsyrhc very nice app! i messaged the developer to add functions i was looking for:

  1. change GPS settings,
  2. pause processes,
  3. when handling phone,
  4. situations based on connected WIFI network,
  5. option to connect to internet.
DarkTuring ( 2016-11-30 23:01:15 +0300 )edit

@naytsyrhc so i have played with the situations app the last couple days and had to deactivate it, it kept disconnecting my mobile data even when not setting any preferences on mobile data or setting preference for mobile data on. Its basically incompatible with SFOS at this point.

DarkTuring ( 2016-12-02 21:55:37 +0300 )edit

I'd say this is a problem with Turing phone and SFOS then (you have a turing, haven't you?). I'm using the Jolla 1 and am not experiencing any such problems (also on

naytsyrhc ( 2016-12-03 00:22:57 +0300 )edit

@naytsyrhc yes i do and you are probably right, i just want to get the most out of the battery without turning off alien dalvik since i have to use some android apps. I wonder if Jolla can steamline the power settings a little more of the hardware integration. After all under their licensing model many different gadgets will be thrown their way and power management is a most critical aspect. It seems Jolla can manage it well when they control the hardware Jolla 1, now it waits to be seen if other phones perform as well.

DarkTuring ( 2016-12-05 21:24:23 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2016-11-30 19:57:38 +0300

Seen: 452 times

Last updated: Dec 01 '16