a shakeable sleep timer for media players on SailfishOS
Slumber is a sleep timer program for SailfishOS with sensors support.
This means you can use the accelerometer or proximity sensor to reset the timer if the display is lit: Just place your device on your bed and slap the mattress in it's general direction to reset the timer. You can enable a notification to wake your display or, on some devices, use "double tap to wake".
You can pause:
If you're still awake, you can reset the timer a bunch of ways:
There are a lot of other options available for the end of the timer duration, for example:
Known restrictions
Want to help?
talk
Please let me know if it works for your favourite player and feel free to discuss: http://talk.maemo.org/showthread.php?p=1486493.
code
You can send bug reports & pull requests on github!
translate
Help me translate slumber to your language at https://www.transifex.com/velocode/slumber/
* Thu Feb 02 2023 velox 0.15-1
- SFOS 4.5 only! (sorry.)
- bugfix: handle changed duration formatter in sfos 4.5
- bugfix: remove incompatible arguments (busybox) for privileged actions
- bugfix: handle changed bluetooth audio identifier in sfos 4.5
- maintenance: update transifex config format
- maintenance: update github action for sfos 4.5
- translation update pl (thank you, atlochowski!)
* Fri May 13 2022 velox 0.14-3
- bugfix: more privileged launcher changes
- bugfix: opt out of sailjail
* Fri Jun 04 2021 velox 0.14-2
- bugfix: change ofono privileged action to work with busybox environment
- maintenance: change github CI build
* Sun May 09 2021 velox 0.14-1
- feature: D-Bus call for manually triggering/stopping the running timer
- enhancement: Stop timer if finish actions are triggered manually
- enhancement: Don't restore Volume if it hasn't been faded out (manual trigger)
* Sun Feb 21 2021 0.13-5
- feature: user-settable finalize duration (instead of 10s)
- feature: reset by amazfish watch music app activation
- feature: ofono restart privileged action
- feature: new options pages
- enhancement: better/looping sound effects
- enhancement/bugfix: new timeout action queue (fixes volume restore with BT disconnect)
- performance: a lot of optimizations
- performance: migrate some stuff to c++
* Mon Jan 06 2020 0.12-2
- enhancement: support changed Amazfish 1.0 interface
- translation updates sl, ru (thanks, translation team!)
* Thu Nov 14 2019 0.12-1
- bugfix: fix settings page for volume restoration
- feature: add simple dbus interface
- a lot of translation updates (thanks, translation team!)
* Sun May 19 2019 0.11-2
- feature: reset timer with button press on Amazfish-connected device
- feature: optional second Kodi action: Suspend/Shutdown (Not supported on every Kodi configuration)
- feature: disconnect (audio) bluetooth devices without fully shutting down BT
- enhancement: enable "quick select" for main page pull menus
- bugfix/enhancement: support Kodi 18 (leia) API change
- appearance: move notification setting to "Actions" settings page
- appearance: make "playback detected" notification inline
- some translation updates (thank you, translation team!)
* Sun Feb 18 2019 0.10-1
- packaging/meta data: OBS compatibility
- user request: main page hint font size increased (previously hard to read in chinese)
- enhancement: restore volume faster on cancel
- many translation updates
- enhancement: add 172x172 icon
- feature: replace BT action with privileged actions
* Sun Feb 03 2019 0.9-2
- bugfix: fix broken translations
- bugfix: only disable bluetooth after volume is restored
- translation updates: es/zh/fr/nl/nl_be/sl
- enhancement: always reset volume while canceling (even if reset not enabled)
- enhancement: only trigger "void" fallback after mpris handling is done
* Mon Jan 14 2019 0.9-1
- new option: detect playback (mpris) to start timer
- audio: optimize clock sound effect (more click, less noise)
- feature: re-introduce bluetooth disable action
- performance: some minor refactoring
- dev convenience: rename translations
* Sat Jan 05 2019 0.8-5
- enhancement: reset volume a bit later (for slower players like hutspot)
* Sat Jan 05 2019 0.8-4
- enhancement: query dbus for any active mpris players
- appearance: cover font (secondary) color change
- translation updates: nl/nl_be
- new Translation: zh (thanks rui kon)
* Mon Sep 03 2018 0.8-3
- remove bluetooth switch (blocked in current SFOS)
- added notification option to switch on display
- appearance: change cover font color
- translation updates
* Thu Feb 08 2018 0.8-2
- new translations: Italian (thanks fravaccaro) & French (thanks lutinotmalin)
- add more translators to about page
* Wed Mar 22 2017 0.7-1
- user request: fade local volume to zero
- translation updates
* Sun Mar 05 2017 0.6-3
- new translation: Dutch (thanks pljmn!)
* Sat Feb 11 2017 0.6-2
- new translation: Slovenian (thanks sponka!)
- user request: Long press in main view opens timepicker (no need to go through settings anymore)
- appearance: Typography: Time Strings not subscript anymore
- appearance: Slightly smaller text on tablet
- spanish translation update
* Sat Jan 14 2016 0.6-1
- bugfix: app start does not change system volume anymore
* Sat Jan 22 2017 0.5-6
- enhancement: "keep display lit" timer duration decrease
- translation update russian (thanks ancelad)
* Wed Jan 11 2017 0.5-5
- bugfix: "keep display lit" does not time out anymore
* Mon Dec 26 2016 0.5-4
- translation update swedish (thanks eson)
* Sun Dec 25 2016 0.5-3
- new translation: russian (thanks ancelad)
- polish translation update (thanks atlochowski)
* Fri Dec 23 2016 0.5-2
- new translation: polish (thanks atlochowski)
* Wed Dec 21 2016 0.5-1
- added support for some android apps (not for the first jolla phone, sorry)
* Sun Jan 03 2016 0.4-5
- new translation: finnish (thanks ria88!)
- added support for talefish and players using the unaltered "qtmpris" name
* Fri Dec 04 2015 0.4-4
- new translations:
- spanish (thanks CepiPerez!)
- swedish (thanks eson!)
* Sat Nov 21 2015 0.4-3
- new: kodimote support as "local" player (you don't need to configure Kodi in slumber if kodimote is connected.)
- added support for unplayer
* Fri Nov 13 2015 0.4-2
- annoyance fix: don't display empty options entry if "shaking" was selected before v0.4
- packaging: app icons for tablet
- really minor performance enhancements
* Thu Nov 12 2015 0.4-1
- new option: disable bluetooth when timer runs out
- new option: keep display lit while timer is running
- new option: darken main application screen while timer is running
- user request: optional visual indicator before timer runs out
- user request: stronger acceleration needed to trigger "shaking"
- user request: new, even stronger shaking option "earthquake"
- ui tweaks (new sub page for appearance options, VerticalScrollDecorators on options pages)
* Thu Oct 30 2015 0.3-2
- new timer action: VLC network pause + connection options
- bugfix: query Kodi for PlayerIDs instead of guessing
* Wed Oct 28 2015 version 0.3-1
- new timer action: Kodi network pause + connection options
- bugfix: do _not_ pause Accelerometer when Sound Effect is not previewing
- some ui & translation changes
* Mon Oct 26 2015 version 0.2-3
- also use dbus to pause players (flowplayer compatibility)
- removed QtQuick 2.2 dependency (harbour tools pass)
* Sun Oct 25 2015 version 0.2-2
- new reset option: Proximity Sensor
* Sat Oct 24 2015 version 0.2-1
- bugfix: Accelerometer now paused while using PushUpMenu to stop timer (PushUpMenu got disabled for a short bit while using it)
- bugfix: Accelerometer now paused while prelistening to Sound Effect (Sound Effect gets stopped when timer is reset)
- bugfix: Silica ProgressCircle does not change colours anymore
- new german translation
- smaller package: sound files downsampled
- various ui tweaks
Comments
deutschem
Mon, 2022/05/09 - 00:45
Permalink
since upgrade to SFOS 4.4, integration to talefish (and i think other players etc.) do not work anymore. (in Talefish: "Install slumber to activete this option"). Reinistall both (Talefish and slumber) with no effect.
velox
Fri, 2022/05/13 - 15:32
Permalink
Hi, thanks for letting me know...
I haven't had much time lately and my main device wasn't even updated. The new releases for slumber/Talefish now opted out of Sailjail to be able to keep the more advanced use cases available.
Let me know if it works for you.
Oh, if you're using privileged actions inside slumber, you may have to revoke and grant rights once.
cheers!
sponka
Tue, 2019/02/05 - 10:22
Permalink
OMG ... Silly me. Now that happens if you dont test everything. Sorry and thanks!
velox
Tue, 2019/02/05 - 12:35
Permalink
No worries, that could have easily been an error – so thanks for bringing it up!
cheers!
sponka
Mon, 2019/02/04 - 14:26
Permalink
Tested and working, thanks for quick update! And I also had time to update translation ;) One question - now we have pull down option and gear icon on homepage, both open options panel. Am I missing something or is this some kind of test, which option works better? I give my vote to gear :)
velox
Mon, 2019/02/04 - 14:36
Permalink
Thanks for testing!
You must have enabled the shortcut in the settings. The option is there to quickly enter settings when the timer is running – because then, the pulley only consists of "stop timer" to simplify "blind" useage.
cheers!
sponka
Sun, 2019/02/03 - 16:20
Permalink
Hello, version 0.9-1, slovenian (sl_SI) translation not working, not a single element translated.
velox
Mon, 2019/02/04 - 00:56
Permalink
Hi! Thanks for reporting and sorry for this. I tried to simplify transifex updates but obviously that didn't work well. And then there were some other issues preventing me from releasing the fixed version. Should now be fixed for 0.9-2 – please tell me if it works for you.
DarkTuring
Mon, 2017/02/13 - 08:34
Permalink
Longpress function works like a charm.
velox
Mon, 2017/02/13 - 12:19
Permalink
Thanks for checking ot out!
DarkTuring
Sun, 2017/02/05 - 05:59
Permalink
Suggestions for improvement:
1. show small simple digital clock above or below timer,
2. fade out music once timer closes when playing music,
3. allow edit of time from top screen without having to enter settings, simply do long press on timer which popups the edit time menue.
velox
Wed, 2017/03/22 - 21:31
Permalink
Local fade out is now finally implemented! Please tell me if it's working for you in the recent build.
velox
Sun, 2017/02/05 - 13:24
Permalink
Hi, thanks for the suggestions!
DarkTuring
Wed, 2017/02/08 - 08:56
Permalink
On item two global volume can be set like this:
pactl set-sink-volume 1 80%
If you create a loop to reduce it incrementally 100%-10% then turn off/ stop music play, streaming, then restore volume to original level pre-sound fade loop.
velox
Wed, 2017/02/08 - 12:42
Permalink
I think (no promises ;)) I'd be able to set the volume through "misusing" media elements from QML already, the problem is querying the current volume before that – preferably through pure QML/JS, as well. Thanks for inquiring, though :)
DarkTuring
Sun, 2017/02/05 - 18:34
Permalink
your welcome, 1. just a plain normal clock, 2. ill dig around and will let you know if i find anything, 3. more direct workflow, otherwise pulldown for direct time edit could work too.
velox
Mon, 2017/02/06 - 11:41
Permalink
I've done 3) on the weekend. It's on github for now – I think I'll have time to release a build during the week.
DarkTuring
Wed, 2017/02/08 - 07:13
Permalink
@velox sweet! i think those will be great additions for users of your app! cant wait to try.
velox
Sat, 2017/02/11 - 16:18
Permalink
I've decided against adding a clock to keep the interface minimalistic, but the long press shortcut is in the build released today. Thanks for the suggestion!
Ingvix
Sat, 2016/12/24 - 11:52
Permalink
How about a setting to fading volume at the last minute or something and then turn the playback off when the timer reaches zero?
velox
Sat, 2016/12/24 - 17:30
Permalink
That's actually something I had in my very first proof of concepts, but I wasn't satisfied with how it worked out (also it would have been a pain to implement it for network players and I really wanted the experience to be basically the same), so I removed that feature before it was finished. If I get an idea how to implement it nicely (or someone wants to make a pull request on github for it) it might happen at some point in the future, though.
Ingvix
Tue, 2016/12/27 - 12:34
Permalink
Okay, I hope you or someone figures it out soon. I only use the phone's output with slumber so the phone's volume fading would be satisfying for me.
velox
Wed, 2017/03/22 - 21:31
Permalink
Local fade out is now finally implemented! Please tell me if it's working for you in the recent build.
Ingvix
Fri, 2017/11/03 - 21:24
Permalink
It's nice but can you make the fade out time customizable? I'd prefer very slow fade out to the current 10 seconds.
Also one improvement came to my mind. Would it be possible make a feature to kill an app when the timer goes off? Currently there's no native app that plays Youtube streams so I use an Android app WebTube for that but it doesn't seem to have a support for the native controllers to pause the video so it would be nice if the app could kill the app after fading out the volume.
ZeiP
Fri, 2015/10/23 - 13:34
Permalink
Oh yeah, one suggestion: If it'd be possible to ignore the vibrates caused by the phone itself (notifications etc.), that'd be cool.
velox
Fri, 2015/10/23 - 14:29
Permalink
Brilliant Idea – but I have no way of telling phone vibrations from other movements. Also, the Vibration on my Phone is actually broken. If someone reads this and has a clue if vibrations can be detected, I'd be delighted to be told how.
ZeiP
Fri, 2015/10/23 - 13:32
Permalink
Installed ok on the new Sailfish 2.0.0.10. Pausing works as expected with CuteSpot, and the reset options also seemed well-defined (at least the first three, which I tried.) Well done, thanks!
velox
Fri, 2015/10/23 - 14:30
Permalink
Awesome, thanks for testing!
Mariusmssj
Fri, 2015/10/23 - 13:03
Permalink
Really coop app, will be testing it tonight