Best way to wake up and check emails?
#4
Hello all. I've made some modest progress.

The script can be made to programmatically turn off the screen to save battery by the addition of this gdbus call to Mutter DisplayConfig:
gdbus call --session --dest org.gnome.Mutter.DisplayConfig --object-path /org/gnome/Mutter/DisplayConfig --method org.freedesktop.DBus.Properties.Set "org.gnome.Mutter.DisplayConfig" "PowerSaveMode" "<int32 3>"

Then it can be made to programmatically suspend again by calling "systemctl suspend" after some delay.

I speculate that a more complete solution:
1) Starts a timer just before suspending, using systemd's /lib/systemd/system-sleep/.
2) This timer wakes up after 30 min and immediately turns off the screen using the gdbus call above. Then it starts a timer to re-suspend after 1 minute.
3) If the user unlocks the phone during this timer, it is deactivated.

I'll post again with my progress.
  Reply


Messages In This Thread
RE: Best way to wake up and check emails? - by DrPlamsa - 08-03-2021, 09:18 AM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)