How to get instant email notifications
#11
One solution is to keep the phone from sleeping. Here is a link to a resource that may help you do that: https://wiki.mobian-project.org/doku.php...pend-sleep Their proposed solutions center around the gsettings setting `org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout` and the command `gnome-session-inhibit`.

Another solution is to have the phone wake up every 15 min or so. I thought I saw someone doing that with a simple script, but I can't find it now. As I recall it used a systemd timer to wake up the phone at set intervals. You may want to take a look at wake-mobile https://gitlab.gnome.org/kailueke/wake-mobile and see what they did.
  Reply
#12
(07-29-2021, 09:44 AM)DrPlamsa Wrote: One solution is to keep the phone from sleeping. Here is a link to a resource that may help you do that: https://wiki.mobian-project.org/doku.php...pend-sleep Their proposed solutions center around the gsettings setting `org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout` and the command `gnome-session-inhibit`.

Another solution is to have the phone wake up every 15 min or so. I thought I saw someone doing that with a simple script, but I can't find it now. As I recall it used a systemd timer to wake up the phone at set intervals. You may want to take a look at wake-mobile https://gitlab.gnome.org/kailueke/wake-mobile and see what they did.

That may have been mine, the copyright on it is dubious (I have a 1.5 year long backlog of copyright stuff I need to clear up, I hate dealing with that) so I haven't posted it here but it's pretty easy to recreate:
Make a separate runlevel in OpenRC that inherits from default and adds your wake manager service
In the wake manager service switch to another VT (or have Xorg turn of the display) and run rtcwake and sleep in a loop (this is where you can tune the period/duty cycle, if you're able to match the keepalive time your sockets can even survive sleeping) I also like to loop through the previous network connections using nmcli and attempt to reconnect them because sometimes they get disconnected during sleep. I've been happy with a sleep time of 250 seconds and an awake time of 30 seconds after network manager is done with its stuff but it's up to you.
When the script exits just have it kill the loop and whatnot, i had some issues with openrc not cleaning up symlinks so there's some ugly kludge at the end to do that, it has race conditions though.
To have the lock button toggle it just toggle the runlevel from the acpid script for the lock button (its something like /etc/acpid/0000008 or so)
  Reply
#13
@swiley That's great info! Would you mind please posting to another relevant topic, https://forum.pine64.org/showthread.php?tid=14564
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Email client p1trson 1 2,965 11-22-2020, 06:34 PM
Last Post: hiimtye

Forum Jump:


Users browsing this thread: 1 Guest(s)