Sxmo - Simple X Mobile Released for the Pinephone (new minimalistic UI & image)
scrcpy is a pretty cool app.. Using it to access my wallet apps from my old android phone over tcpip..Try it out to end up carrying just pinephone without worrying about missing android apps
  Reply
(07-30-2020, 12:46 PM)arjunaithal Wrote: The incoming calls not showing up even when I toggle modem. I'm using the latest sxmo image. The command to get the incoming calls - ( mmcli -m 0 --voice-list-calls -a) is not able to pick the incoming calls but the sms works fine. The other functionality is working as expected. The incoming calls is working fine in mobian and UT for the same Sim. Can someone please help? Thanks in advance
I think I have the exact same problem. Incoming calls did used to work for me and I'm not yet sure at what point it broke for me. I'll investigate further and see if I can solve it.
  Reply
(09-16-2020, 11:14 AM)proycon Wrote:
(07-30-2020, 12:46 PM)arjunaithal Wrote: The incoming calls not showing up even when I toggle modem. I'm using the latest sxmo image. The command to get the incoming calls - ( mmcli -m 0 --voice-list-calls -a) is not able to pick the incoming calls but the sms works fine. The other functionality is working as expected. The incoming calls is working fine in mobian and UT for the same Sim. Can someone please help? Thanks in advance
I think I have the exact same problem. Incoming calls did used to work for me and I'm not yet sure at what point it broke for me. I'll investigate further and see if I can solve it.

I have written custom scripts to get this working, with this fix I'm able to use my phone as daily driver without any issues and the latest fix of wakeup from crust on incoming call has increased the battery life significantly- https://lists.sr.ht/~mil/sxmo-devel/patches/13923 (getting almost 10-12 hrs on moderate usage)

Custom script to monitor incoming call -

sxmo_incomingcall.sh - A script scheduled in cron or sxmo_xinit.sh to monitor incoming calls using AT commands

#!/usr/bin/env sh

LOGFILE=/home/mo/.config/sxmo/modem/modemlog.tsv
EVT_HANDLE="call_ringing"
LOCKFILE=/home/mo/.config/sxmo/modem/ongoingcall.lock
NOTIFDIR=/home/mo/.config/sxmo/notifications

while [ 1 ]
do
        if [ -f $LOCKFILE ]; then
                sleep 10
                continue
        fi
#      WAKE=$(AT+QCFG="risignaltype","physical"|atinout - /dev/ttyUSB2 -)
        CALL=$(echo "AT+CLCC"|atinout - /dev/ttyUSB2 -)
        NUM=$(echo $CALL|perl -ne '$_=~ m/^.*\+91(.*)",145.*/;print $1;')
        if [ "$NUM" != "" ]; then
                TIME="$(date --iso-8601=seconds)"
                printf %b "$TIME\t$EVT_HANDLE\t$NUM\n" >> "$LOGFILE"
                printf %b "$NUM\n" > "$NOTIFDIR/sxmo_incomingcall"
                if [ -x "/home/mo/.config/sxmo/hooks/ring" ]; then
                        "/home/mo/.config/sxmo/hooks/ring" & sxmo_vibratepine 2000
                else
                        sxmo_vibratepine 2000
                fi
        else
                sxmo_setpineled green 0
        fi
        sleep 3
done

I have again used AT commands to receive and end calls using user defined script hooks.
Command to accept call -
ACCEPT=$(echo "ATA"|atinout - /dev/ttyUSB2 - 2>/dev/null)

Command to end call -
CALLEND=$(echo "AT+CHUP"|atinout - /dev/ttyUSB2 - 2>/dev/null)

Command to start a call -
START=$(echo "ATD+ +91$1;"|atinout - /dev/ttyUSB2 - 2>/dev/null)

This way I don't use mmcli at all, it seems to be working without any issues.
  Reply
Thanks! Doing it all without ModemManager is a very interesting solution!

I did manage to find a bit of a less intrusive solution (cross-posting from https://todo.sr.ht/~mil/sxmo-tickets/73):

This requires less adaptation and doesn't ditch ModemManager: Starting modemmanager with a bit more verbosity helps (--debug also does the trick too but is even more verbose).

Code:
--- /etc/init.d/modemmanager
+++ /etc/init.d/modemmanager @@ -2,6 +2,7 @@

 supervisor=supervise-daemon command=/usr/sbin/ModemManager
+command_args="--log-file=/var/log/modemmanager.log --log-level=INFO"

 description="ModemManager Daemon"

I don't really understand why ModemManager fails without these options. I I had tried downgrading it but that didn't help either. For now this seems a pretty acceptable solution, having a log seems appropriate anyhow, so maybe we should merge this into sxmo (although it's technically not an sxmo issue).
  Reply
I love this! And would love to use sxmo as my daily driver. One thing I'm struggling with is getting the SIM to unlock automatically, or prompt me to. Thanks janw for the guide on NetworkManager - I think it'd work if I were to be able to get my modem online. I also submitted a ticket here: https://todo.sr.ht/~mil/sxmo-tickets/93#event-50869 about that and tried the solution to no avail. Any help with getting the modem running would be great. Thanks, and thanks again for creating such a promising OS.
  Reply
@mil I'm having troubles both finding the merged sxmo packages and understanding how to install on top an existing pmOS. The install guide is missing details on what to do following the install of the `postmarketos-ui-sxmo` package to make use of SXMO, which can't be found in the default repos following an `apk update`. Does a user run `pmbootstrap`? Or can a user make use of the new UI without given an existing pmOS install? How?
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Quick look at 4 different PinePhone OSs Luke 6 1,579 25 minutes ago
Last Post: Twig
  openSUSE for Pinephone Alefnode 27 4,882 09-25-2020, 03:04 AM
Last Post: Alefnode
  Arch Linux ARM on PinePhone (2020/08/22) Danct12 39 5,973 09-24-2020, 05:01 PM
Last Post: hiimtye
  PureOS on Pinephone dukla2000 80 15,381 09-23-2020, 01:14 AM
Last Post: onkelfip
  OpenBCI brain computer interface software for the PinePhone Peter Gamma 5 354 09-12-2020, 04:38 PM
Last Post: Peter Gamma
  Pinephone BLE bike Computer and sports watch? Peter Gamma 25 2,589 09-12-2020, 10:59 AM
Last Post: Peter Gamma
  KDE (Plasma Mobile) by Default Prescience500 3 327 09-11-2020, 01:55 AM
Last Post: fooxl
  Pinephone OS Backups (System Images) ThrillGates 2 203 09-08-2020, 09:35 PM
Last Post: bcnaz
  Phone calls on Pinephone Ubuntu touch? Peter Gamma 16 933 09-08-2020, 01:42 AM
Last Post: Peter Gamma
  How hard is it to port OS images designed for the Pine a64 LTS to the pinephone? coolguy129 0 125 09-06-2020, 10:58 PM
Last Post: coolguy129

Forum Jump:


Users browsing this thread: 1 Guest(s)