UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. pparent
    3. Posts
    Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 30
    • Posts 562
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Bug: data mobile interface looses ip

      @domubpkm said:

      May you please suggest a complete procedure to test

      1°) With adb create the script with

      nano /home/phablet/backup-ip.sh
      

      and paste the content

      2°) Give execution rights:

      chmod +x /home/phablet/backup-ip.sh
      

      3°) Start the script with:

      sudo su -c "/home/phablet/backup-ip.sh > /home/phablet/log-backupip 2>&1 &"
      

      It will then be running until next reboot.

      posted in OS
      pparentP
      pparent
    • RE: Bug: data mobile interface looses ip

      @domubpkm said:

      Did you notice side effects (you said that, i have a Volla 22 too) ?

      The only thing that I've noted so far, is that If I enable airplane mode with a wrong timing (bad luck), it might go into a loop of disabling / re-eabling the modem. But then I switch off and on, the airplane mode it goes fine.

      posted in OS
      pparentP
      pparent
    • RE: Bug: data mobile interface looses ip

      @lduboeuf said:

      did you reported the issue to the porter ?.

      I plan to do so when I have time.

      posted in OS
      pparentP
      pparent
    • RE: Bug: data mobile interface looses ip

      Here is the script that I currently use, it improves greatly the usability of my phone, because it reduces dramatically the need to go in the settings to restart cellular connexion, in order to get access to the Internet.

      Though it's not perfect and might have side effects, use at your own risks!

      #!/bin/bash
      
      MODEM="/ril_0"
      HOST_TO_PING="8.8.8.8 www.google.com ubports.com 1.1.1.1 9.9.9.9 cloudflare.com amazon.com microsoft.com wikipedia.org apple.com"
      
      function get_modem_iface()
      {
      /usr/share/ofono/scripts/list-contexts |awk -v target="$1" '
      /^\[ \/ril_/ { r=$2 }
      
      /Type = internet/ { i=1 }
      
      /Interface=ccmni/ && r==target && i {
          sub(/^.*Interface=/, "")
          sub(/ .*/, "")
          print
          exit
      }
      '
      }
      
      IFACE=$(get_modem_iface $MODEM)
      
      i=0;
      
      while true; do
          if [ "$IFACE" = "" ]; then
              IFACE=$(get_modem_iface $MODEM)
          fi
          ifconfig $IFACE | grep -v inet6 | grep inet > /dev/null 2>&1
          if [ "$?" -ne "0" ]; then
              gdbus call --system --dest org.ofono --object-path "$MODEM" --method org.ofono.NetworkRegistration.GetProperties | grep "'Technology': <'lte'>" > /dev/null 2>&1
              if [ "$?" -eq "0" ]; then
                  date
                  echo "IFACE: $IFACE";
                  echo "IP loss detected"
                  /usr/share/ofono/scripts/offline-modem $MODEM
                  /usr/share/ofono/scripts/online-modem $MODEM
                  sleep 5;
                  IFACE=$(get_modem_iface $MODEM)
              fi
          else
              route=$(ip route show default)
              if [ "$route" = "" ]; then 
                  gdbus call --system --dest org.ofono --object-path "$MODEM" --method org.ofono.NetworkRegistration.GetProperties | grep "'Technology': <'lte'>" > /dev/null 2>&1
                  if [ "$?" -eq "0" ]; then
                      date
                      echo "IFACE: $IFACE";
                      echo "Route loss detected"
                      /usr/share/ofono/scripts/offline-modem $MODEM
                      /usr/share/ofono/scripts/online-modem $MODEM
                      sleep 5;
                      IFACE=$(get_modem_iface $MODEM)
                  fi
              fi
          fi
          
          i=$((i+1))
          if [ "$i" -gt "15" ]; then
              i=0;
              gdbus call --system --dest org.ofono --object-path "$MODEM" --method org.ofono.NetworkRegistration.GetProperties | grep "'Technology': <'lte'>" > /dev/null 2>&1
              if [ "$?" -eq "0" ]; then
                  internetaccess=0;
                  for host in $HOST_TO_PING ; do
                      ping -W 1 -c 1 $host >/dev/null 2>&1
                      if [ "$?" -eq "0" ]; then
                          internetaccess=1;
                          break;
                      else
                          echo "Ping to $host failed, trying next one in 4s ...."
                          sleep 4;
                      fi
                  done
                  if [ "$internetaccess" -eq "0" ]; then
                          date
                          echo "IFACE: $IFACE";
                          echo "Internet access loss detected"
                          /usr/share/ofono/scripts/offline-modem $MODEM
                          /usr/share/ofono/scripts/online-modem $MODEM
                          sleep 5;
                          IFACE=$(get_modem_iface $MODEM)
                  fi
              fi
          fi
          sleep 20;
      done
      
      posted in OS
      pparentP
      pparent
    • RE: Bug: data mobile interface looses ip

      @domubpkm said:

      A good test is to see if the connection is still lost after reboot or complete shutdown and startup.

      This is not really the purpose of the script for now. The purpose of the script is that, when you keep the phone up, and you travel, Internet remain accessible at any moment, without needing to manualy go in the settings to restart the connection.

      posted in OS
      pparentP
      pparent
    • RE: Support for Hotspot wifi captive portal via RFC 8910 and RFC 8908

      @projectmoon

      Can you do

      journactl -r | grep 99captive_portal
      

      ?

      posted in OS
      pparentP
      pparent
    • RE: Support for Hotspot wifi captive portal via RFC 8910 and RFC 8908

      @projectmoon

      Ok well I don't know, are you testing with a specific wifi network with captive portal? Does it support RFC 8910 and RFC 8908, or is it legacy? Did you try with other wifi networks?

      Ps: You can also retry with mobile data disabled, sometimes it's better.

      posted in OS
      pparentP
      pparent
    • RE: Support for Hotspot wifi captive portal via RFC 8910 and RFC 8908

      @projectmoon

      What do you mean, do you get the notification when you connect to the wifi network with captive portal?

      (You should not open the app from the app grid, it is useless, it will open when you click on the notification, in the notification panel, like in the video)

      posted in OS
      pparentP
      pparent
    • RE: Support for Hotspot wifi captive portal via RFC 8910 and RFC 8908

      @projectmoon

      With the latest version of the script you need to install this app first:

      https://github.com/pparent76/Captiveviewer-UT/releases/tag/0.1.0

      Then install the latest version of the script, and chmod +x the script, and reboot

      https://gitlab.com/pparent/lxc-android-config/-/blob/main/etc/NetworkManager/dispatcher.d/99captive_portal?ref_type=heads

      Then you should get a notification when you connect to a wifi with captive portal, and if you click the notification it will open the captive portal app.

      posted in OS
      pparentP
      pparent
    • RE: Bug: data mobile interface looses ip

      @domubpkm

      I've written a workaround script that I'm currently testing, that detects an IP loss on the interface and automatically reinitialize the modem when it happens. For now it seems to work quite well, and even seems to have a positive impact on VoLTE connexion. I will test it for a few days, and if everything goes well, I will publish it here.

      posted in OS
      pparentP
      pparent
    • RE: Signal UT: Signal-Desktop for Ubuntu Touch

      @kdb7

      Ok but could you record the screen when it fails to import the file with:

      https://open-store.io/app/screenrecorder.ubports

      because I fail to see what could be happening.

      posted in App Development
      pparentP
      pparent
    • RE: Signal UT: Signal-Desktop for Ubuntu Touch

      @kdb7

      Can you tell which version of UT are you using, and post a video screenshot? because on all the phones that I own it works fine, so I would need to see visually whats happens on your phone.

      posted in App Development
      pparentP
      pparent
    • RE: Signal UT: Signal-Desktop for Ubuntu Touch

      @kdb7

      You need to open file directly from Signal app, by clicking on the "+" in the bottom right hand corner of a chat, and then select the gallery app, to select the file to import.

      It's true that there is currently something that should not be: Signal appears in the application grid in content Hub, as an option to export an image to, it should not, this does not work that way, only the other way around import the picture from the signal app. I will correct that in next revision.

      posted in App Development
      pparentP
      pparent
    • RE: Starting a series of videos about Ubuntu Touch

      @ChromiumOS-Guy

      I'm not sure to understand your message? You want to give me a script about what?

      Thank's! 😉

      posted in General
      pparentP
      pparent
    • RE: Starting a series of videos about Ubuntu Touch

      New video about Whatsapp on Ubuntu touch, and my app Whatsnew.

      English version: https://www.youtube.com/watch?v=jW_GmcLzidc
      French version: https://www.youtube.com/watch?v=yTQso0cec9k

      posted in General
      pparentP
      pparent
    • RE: Signal UT: Signal-Desktop for Ubuntu Touch

      @Moem Very nice, could be very cool if Signal Destkop, hence Signal UT, would become a primary client, with no need to link it to an iOS or Android device!

      Thank's for sharing!

      posted in App Development
      pparentP
      pparent
    • RE: [app]{release}~ubports forums, direct port of my android app

      @developerbayman

      I have a question: Is there a reason you're not publishing your apps in the openstore? Are you waiting for them to be ready?

      posted in App Development
      pparentP
      pparent
    • RE: Whatsnew: Whatsapp Web with Electron.

      I've just released version 0.1.7, that adapts to changes upstream that broke the app. I also made a few changes to be more resilient to changes upstream without needing to update the app, this can be further improved. I also updated electron so that now the chromium engine used is in version 144.

      Let me know if it works well for you!

      posted in App Development
      pparentP
      pparent
    • RE: Call for testing: Ubuntu Touch 24.04-1.3

      @gpatel-fr

      The version v1.35.5-1 of the Min Browser, is now compatible with UT 24.04-1.3, can you confirm it solves the problem for you?

      (I will also publish very soon a new version of Rocket.Chat, so that all my apps are compatible with UT 24.04-1.3

      EDIT: I've also published a new version of Rocket.Chat, that is compatible with 24.04-1.3 )

      posted in OS
      pparentP
      pparent
    • RE: Xmir: Lomiri High CPU usage + battery drain.

      For what it's worth, this bug should be solved in 24.04-1.3 (no need to apply a patch script: the sense that the placeholder does not remain open in background anymore). It could still be a nice fix to avoid that it uses a lot of CPU in the first place, as it could possibly allow for faster starts of the apps.

      posted in OS
      pparentP
      pparent