Mobian: 2 week as main phone
#11
(05-09-2021, 11:52 AM)steves Wrote: 2. Sometimes the phone when it wakes from sleep will not see it's cell modem. Usually a reboot fixes this, but due to the above issue it can be rather aggravating.

I've been having the same problem. Haven't found the solution either.

(05-09-2021, 11:52 AM)steves Wrote: 6. Alarms don't work if the phone is asleep at the time it's suppose to go off.

There are a couple solutions to this. One is to use Wake Mobile like was kqInit suggested. I've used it successfully already (just got my phone last Friday).

Another is to make a systemd timer that periodically wakes the phone up, which then lets the Alarm app have a chance to activate the alarm periodically. Of course, its accuracy is limited by how often you wake it up (e.g. if you make your phone wake up every 15 minutes, then your alarm will be 0-15 minutes late depending on what you set it to). Adding the timer has the additional advantage that other apps on your phone can also check email and other messages periodically, which they can't do if the phone is asleep all the time. Note, other people have also used a timer for this purpose with success before me, which means that it is reasonably reliable. You need to make two files for the timer in the /etc/systemd/system directory. They should have the same basename but different prefixes. They would be

/etc/systemd/system/BASENAME.service
Code:
[Unit]
Description=Wake up the system to allow the alarm to work and check messages

[Service]
ExecStart=/usr/bin/true

/etc/systemd/system/BASENAME.timer
Code:
[Unit]
Description=Wake up the system to allow the alarm to work and check messages

[Timer]
Persistent=false
WakeSystem=true
AccuracySec=1000m
OnCalendar=*-*-* *:00,15,30,45:00

[Install]
WantedBy=timers.target

Where the "OnCalendar=*-*-* *:00,15,30,45:00" line indicates when it should go off. In my case, I have it set for every 15 minutes. Note the '*' for the year, month, day, and hour fields; the 00 for the second field; and the comma separated values for the minute field giving when it should go off. If you want to do a different interval, you will need to adjust this. I've set the accuracy field to a large value (m is for millisecond) because I don't need the timer to be more accurate than one second.


(05-09-2021, 11:52 AM)steves Wrote: If anyone's interested in the inhibit script here it is:
Code:
#!/bin/bash

gnome-session-inhibit --inhibit 'idle:suspend' zenity --info --text "Inhibiting sleep. Press ok when ready to stop this"

Just make a .desktop file for it and give it an icon and you're good.

Thanks for the script.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Axolotl on PinePhone / Mobian arno_nuehm 93 20,916 06-11-2021, 07:16 AM
Last Post: ergo owl
  Mobian not updating via Software app FOSSagent0 2 174 06-07-2021, 09:22 PM
Last Post: Zebulon Walton
  Reboot Modem on Pinephone in Mobian eggmatters 4 412 06-07-2021, 02:36 AM
Last Post: Gribouille
  mobile data on mobian not working synaption 1 144 06-02-2021, 03:16 PM
Last Post: Aberts10
  How do you copy and paste into mobian terminal? Do you ssh instead? temp0rary 6 244 06-01-2021, 12:16 PM
Last Post: temp0rary
  Turn by Turn alternative GPS app in Mobian livanti21 27 11,935 05-30-2021, 03:17 AM
Last Post: john_doe
  audio quality on phone Rainer 0 133 05-28-2021, 09:25 AM
Last Post: Rainer
  Can't update OS Mobian Phosh Gon 5 387 05-23-2021, 10:52 PM
Last Post: pajux
  Bluetooth audio stalling (maybe the whole phone) motox6 1 212 05-18-2021, 10:15 AM
Last Post: wibble
  Printing from Mobian johnd 2 359 05-13-2021, 01:07 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)