Best way to wake up and check emails?
#5
(08-01-2021, 06:29 AM)DrPlamsa Wrote: Here, I'll discuss what I've already accomplished. I found that systemd timers can wake up the PinePhone from suspend/crust. For testing purposes, I've used sytemd-run rather than making new .timer and .service files, because of its simplicity. Here's my one-line command which sets a wake timer:

sudo systemd-run --unit='WakeTimer' --on-active=1 --on-unit-active='30m'  --timer-property='AccuracySec=1s' --timer-property='WakeSystem=true' /bin/sh -c "date >> /home/[user]/Desktop/MyWakeLog.txt"

So, what is supposed to happen?
1) After 5 minutes, the PinePhone goes into suspend/crust
2) After 30 minutes, the PinePhone wakes up, automatically checks email and chats, and serves any notifications
3) After 5 minutes, the PinePhone goes back into suspend/crust to save battery

Here's what actually happens:
1) After 5 minutes, the PinePhone goes into suspend/crust
2) After 30 minutes, the PinePhone wakes up!
3) The screen stays on, and it never goes back into suspend/crust
4) The battery runs down and it dies

So, does anyone know of either a way of fixing my existing incomplete solution, or a better way of implementing this behavior?

I've tried using xdotool to send a key press, in the hope that this will reset the idle timer and allow the phone to re-suspend after 5 minutes, but xdotool does not seem to actually produce any results on the PinePhone. I've tried using gdbus to call the org.gnome.Mutter.IdleMonitor.GetIdletime method, which works on my desktop but on the PinePhone returns "Not supported." I've tried using gdbus to call the org.gnome.Mutter.IdleMonitor.ResetIdletime method, but this method apparently requires a specific compiler directive to work.

Thanks for your attention and input
For what it's worth, I think xdotool doesn't work because it doesn't work on Wayland and Phosh uses Wayland. But also, if you happen to find something like xdotools for wayland I would love to hear about it because I just need a single right click but usb tethering isn't working for me so I am just stuck waiting until the next kernel upgrade which hopefully fixes it.
  Reply


Messages In This Thread
RE: Best way to wake up and check emails? - by ragreenburg - 08-06-2021, 11:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to wake up from suspend xavi92 6 2,611 07-28-2024, 02:48 PM
Last Post: dchang0
  How to check if tow-boot is installed? jojuma 3 1,756 09-29-2023, 11:29 PM
Last Post: tllim
  Does tow-boot allow periodic wake from suspension to check for notifications? DrPlamsa 4 3,433 12-31-2022, 10:56 AM
Last Post: DrPlamsa
  Is there a smart-wake yet? DrPlamsa 6 3,373 12-31-2022, 10:55 AM
Last Post: DrPlamsa
  How to check which mobian build I am running jojuma 0 952 08-29-2022, 04:44 AM
Last Post: jojuma
  display will not wake up motox6 0 1,401 06-18-2021, 12:43 AM
Last Post: motox6
  Mobian screen won't wake reliably. StridAst 5 5,832 05-05-2021, 12:07 PM
Last Post: motox6
Bug Wake up from charging problem j4n3z 11 11,315 02-25-2021, 03:53 PM
Last Post: j4n3z

Forum Jump:


Users browsing this thread: 1 Guest(s)