Alarm app available that wakes the phone
#1
Since alarms set up with GNOME Clocks can't yet wake up the device from suspend, I wrote a small alarm app exploring how to set up systemd timers that wake up the system through the interal RTC device.

For now there is just one alarm available and not recurring but this is just an UI issue, not a limitation of the systemd timers.

You can install it through "make install" on any OS that has systemd or, for Mobian, use the binary packages linked in the README: 

https://gitlab.gnome.org/kailueke/wake-mobile


Eventually GNOME Clocks will be able to wake the device, too, but this is still in development and requires an approach of making the necessary Linux capabilities available to regular users.
I worked around this limitation in my app by using a setuid binary that can only write out a drop-in unit file for the systemd timer.
  Reply
#2
Cool stuff! I need to wake up earlier tomorrow, maybe I should test how reliable it is... Tongue
  Reply
#3
Nice work.
  Reply
#4
(01-08-2021, 04:32 PM)pothos Wrote: ...

You can install it through "make install" on any OS that has systemd ...

On (up to date Arch) I can make install fine (after installing gcc and make).

At runtime I have the psutil challenge and can't find a suitable Arch package to resolve; I tried both psutils and python2-psutil without success. Python3 is installed but there appears to be no python(3)-psutil package :-(
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC
  Reply
#5
I installed it on Mobian. It installed with errors. "gnome package Canterbury not installed" and it won't open.
  Reply
#6
On Mobian I installed and have it running fine from the .deb - download that and install it with apt which will resolve all the dependencies. In the directory yu download the deb
sudo apt install ./thefilename.deb
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC
  Reply
#7
(02-05-2021, 05:44 PM)dukla2000 Wrote: On Mobian I installed and have it running fine from the .deb - download that and install it with apt which will resolve all the dependencies. In the directory yu download the deb
sudo apt install ./thefilename.deb
That's what I did. I downloaded he Mali64.deb. Should I have downloaded the ARM64.deb?
  Reply
#8
(02-05-2021, 10:59 PM)C0ffeeFreak Wrote:
(02-05-2021, 05:44 PM)dukla2000 Wrote: On Mobian I installed and have it running fine from the .deb - download that and install it with apt which will resolve all the dependencies. In the directory yu download the deb
sudo apt install ./thefilename.deb
That's what I did. I downloaded he Mali64.deb. Should I have downloaded the ARM64.deb?

You need the arm package - this one.

(To be fair I installed version 1.1-1 a while ago, so there may be problems with the current version 1.3-1 but who knows?)

ps: just removed 1.1 and installed 1.3 on my Mobian install fine. Which fails on runtime as python3-psutil needs to be manually installed and then all is well (on Mobian).
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC
  Reply
#9
I installed the file gain. No joy. It just hangs on the Mobian wallpaper launch screen.
  Reply
#10
(02-13-2021, 03:59 PM)C0ffeeFreak Wrote: I installed the file gain. No joy. It just hangs on the Mobian wallpaper launch screen.

Open the terminal and type
Code:
sudo apt install python3-psutil
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How-To: Remote Control Your Phone from Desktop via VNC biketool 2 417 10-12-2024, 11:47 AM
Last Post: biketool
  Article: NuttX RTOS for PinePhone: Feature Phone UI in LVGL, Zig and WebAssembly lupyuen 64 25,595 09-09-2023, 09:49 AM
Last Post: WhiteHexagon
  Article: NuttX RTOS for PinePhone: Phone Calls and Text Messages lupyuen 2 1,930 05-03-2023, 05:03 PM
Last Post: lupyuen
  [Stupid Question] Where is the phone camera software?! newusername 5 3,781 10-10-2022, 03:58 AM
Last Post: newusername
Question New user/phone here - initial update issues sexywheat 2 2,198 06-29-2022, 04:27 PM
Last Post: sexywheat
  Which apps can I run on this phone? poppyhodler 2 2,921 06-07-2022, 12:18 PM
Last Post: jenniferjohn12
  Phone Operation which SW Realease (mute funtion)? scrwbigtek 0 1,045 05-25-2022, 07:35 AM
Last Post: scrwbigtek
  Jami on the Pine phone ? bcnaz 7 6,660 04-03-2022, 12:10 PM
Last Post: Fish
  First time pine phone user Matt73 3 3,083 03-10-2022, 02:04 AM
Last Post: Matt73
  Phone Shell Nextcloud message notifications: turn them off? lsitongia 0 1,398 09-28-2021, 11:04 AM
Last Post: lsitongia

Forum Jump:


Users browsing this thread: 3 Guest(s)