Is there a smart-wake yet?
#1
Hello all!

I've been fiddling with the PP on and off since September 2020, and all in all it's been a great learning experience. Very empowering for folks like me who like to imagine a better way for smartphones to be.

I've found that what was holding back my use of the PP for a daily driver was a lack of a smart-wake. I had to choose between poor battery life (handset on, not suspended) or no notifications (suspended). I am aware that the phone can wake from suspend upon incoming call or text, a feature called crust. This is great but, as of the last time I checked, did not work for arbitrary push notifications such as emails, chats, or timers. 

In summer of 2021 I hacked together a solution which wakes the PP up for one minute out of every 15 or so to check for notifications. It works fine (really saves on battery), but isn't well-integrated or well-supported. Here's the thread: https://forum.pine64.org/showthread.php?tid=14564

So, do we have this feature yet? Last time I was actively following development was around 7 months ago.

Thanks all!
  Reply
#2
The phone will wake on incoming SMS/MMS.  I think the closest you can get right now timer-wise is the "community" modem firmware has some capability to wake the phone at specified times.  Waking on incoming email seems like a tough ask.  It seems like your email provider would need a way to ask your cell provider to wake you.  Maybe your email could be rigged to send you an SMS under certain conditions?

Edit 1: on second thought, maybe by "chats" you meant IRC/matrix/xmpp etc. Then I think it would be similar to the incoming email problem.
  Reply
#3
Thank you @treebeard! I'll continue using my solution then, which just wakes the phone for 1 minute out of every 15 when in suspend mode. That should be a good balance between battery life and immediacy of notifications.
  Reply
#4
https://github.com/cparich/sleepwalk2 was mentioned on #mobian:matrix.org
  Reply
#5
(12-30-2022, 01:15 AM)jsch Wrote: https://github.com/cparich/sleepwalk2 was mentioned on #mobian:matrix.org

Really fantastic resource! Thanks a bunch @jsch. I'll give it a try.
  Reply
#6
(12-29-2022, 10:46 AM)DrPlamsa Wrote: Thank you @treebeard! I'll continue using my solution then, which just wakes the phone for 1 minute out of every 15 when in suspend mode. That should be a good balance between battery life and immediacy of notifications.

I should have read that old thread before responding - that's a nice bit of hackery.  I suspect it's possible to add timers & services to the modem's community firmware to periodically check for email etc and wake the phone accordingly.  That would stretch battery life further and could provide more immediacy but would certainly be a bit more work.  It seems like an interesting challenge.
  Reply
#7
Ok, I'll close this out with a summary. No well-integrated, complete solution exists, but many partials are available. I'm surprised that there's been so little apparent effort, as without it you have to choose between either a 2 hr battery life or limiting yourself to only call and SMS notifications.

A proof of concept for waking the phone using systemd timers is here: https://gitlab.gnome.org/kailueke/wake-mobile
Inspired by this, I put together a solution which wakes the phone for 1 minute out of every 15 here: https://forum.pine64.org/showthread.php?tid=14564
Here's an abandoned-looking attempt for PmOS: https://gitlab.com/seath1/waked
Another abandoned-looking attempt: https://github.com/vkraven/rtcsyncwake-pinephone
A script called "sleepwalk" is available from this guy's github which does something similar: https://github.com/milky-sway/pinephone-scripts
And finally, this is a refined version of "sleepwalk": https://github.com/cparich/sleepwalk2
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to wake up from suspend xavi92 5 1,104 10-26-2023, 03:02 PM
Last Post: xavi92
  Best way to wake up and check emails? DrPlamsa 7 5,539 12-31-2022, 10:57 AM
Last Post: DrPlamsa
  Does tow-boot allow periodic wake from suspension to check for notifications? DrPlamsa 4 2,657 12-31-2022, 10:56 AM
Last Post: DrPlamsa
  display will not wake up motox6 0 1,203 06-18-2021, 12:43 AM
Last Post: motox6
  Mobian screen won't wake reliably. StridAst 5 4,932 05-05-2021, 12:07 PM
Last Post: motox6
Bug Wake up from charging problem j4n3z 11 9,414 02-25-2021, 03:53 PM
Last Post: j4n3z
  is xt9 smart input (swype) possible for text input? HLing 4 5,171 07-10-2020, 03:45 PM
Last Post: HLing

Forum Jump:


Users browsing this thread: 1 Guest(s)