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
  troubleshooting sleep/wake button on trixie biketool 5 1,004 05-04-2025, 08:11 PM
Last Post: Kevin Kofler
  Unable to wake up from suspend xavi92 6 4,324 07-28-2024, 02:48 PM
Last Post: dchang0
  How to check if tow-boot is installed? jojuma 3 2,797 09-29-2023, 11:29 PM
Last Post: tllim
  Does tow-boot allow periodic wake from suspension to check for notifications? DrPlamsa 4 4,689 12-31-2022, 10:56 AM
Last Post: DrPlamsa
  Is there a smart-wake yet? DrPlamsa 6 4,863 12-31-2022, 10:55 AM
Last Post: DrPlamsa
  How to check which mobian build I am running jojuma 0 1,268 08-29-2022, 04:44 AM
Last Post: jojuma
  display will not wake up motox6 0 1,894 06-18-2021, 12:43 AM
Last Post: motox6
  Mobian screen won't wake reliably. StridAst 5 6,956 05-05-2021, 12:07 PM
Last Post: motox6
Bug Wake up from charging problem j4n3z 11 13,811 02-25-2021, 03:53 PM
Last Post: j4n3z

Forum Jump:


Users browsing this thread: 1 Guest(s)