Skip to content

[wishlist] pause sleep when screen is turned on #511

@hydrargyrum

Description

@hydrargyrum

It would be nice if this could work:

  • in the evening, user opens plees app and presses "start" button
  • plees counter starts
  • user sleeps
  • in the middle of the night, user wakes up
  • user presses phone button to turn screen on (and show unlock screen) but does not look at screen
  • plees receives screen turned on event
  • plees stops current counter automatically
  • after 20 minutes (configurable?) without more activity, plees starts another counter automatically
  • in the morning, user wakes up
  • plees stops current counter automatically (and will not wait 20 minutes then)
  • user opens plees and stops the current sleep
  • plees would then count 2 sleeps: evening to night, then night to morning

it would also be fine if instead of stop/start in the night, a pause (new type of sleep?) is recorded

this could also work fine if user wakes up 2 or more times in the night

however be careful that sometimes notifications turn the screen on for a few seconds, this should not be recorded as a sleep pause. if the 2 can't be distinguished, maybe require user to unlock screen in order to pause for 20 minutes

the advantage is that it would not require the user to do a lot of activity on the phone with a lot of light which might make sleeping harder

Metadata

Metadata

Assignees

No one assigned

    Labels

    needinfoFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions