UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. slowcyclist
    3. Posts
    S
    Online
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 26
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: 20.04 Focal: uNav freezes with GPS enabled

      Just as @applee, I suspect that this thread possibly discusses several different bugs. Notably, I believe the problem described in reply #3, and maybe by @kristatos are the same as the one I described in this other topic. The issue in that other topic is related to how UBports interfaces with the android gps drivers and it affects all apps using gps on all ported android phones released since around 2020, but possibly with app-dependent symptoms : freezing, crashing, or just going on with a frozen location.

      The good news is that the other topic's bug has a working fix which should hopefully land in an upcoming OTA.

      posted in App Development
      S
      slowcyclist
    • RE: GPS positioning stops working after a random duration

      I finally nailed it! After a simple change and recompiling a package, I could have gps working continuously for over 3 hours, which had never happened previously on my FP5.

      The problem was indeed in ubuntu_application_gps_hidl_for_hybris.cpp part of the package libubuntu-platform-hardware-api3 whose repo is at https://gitlab.com/ubports/development/core/platform-api, and lomiri-location-services calls this library to access the android drivers (through hybris). The problem was that the code continued to use a chunk of memory that had been supposedly freed (use-after-free) and the memory corruption only became visible when the allocator reused that freed memory chunk for a new allocation. At that point two pieces of code competed for the same memory, leading to crashing. The issue is more likely to happen quickly when many applications are running, explaining the somewhat random duration before the crash.

      On my Xperia X, a different piece of code was used (ubuntu_application_gps_for_hybris.cpp, not ubuntu_application_gps_hidl_for_hybris.cpp) which explains why it never had this problem.

      That gps_hidl piece of code has not been touched since 2020 and I believe UBports uses it in all phones running running Android 10+ vendor blobs, meaning that the problem should not be specific to the FP5. Yet, I find it really strange that no one reported the issue previously and that only @WillemHexspoor confirmed it here. Does that mean that UBports users either never use their gps for extended periods (e.g. routing with PureMaps or uNav) or that they only do so under waydroid, or that other phones access the gps through a different scheme (another library)?

      I have filed a merge request to that package.

      EDIT: I take back all what I said yesterday, it eventually crashed all the same after (except after a very long time (~10h), and then this morning again after only 3h... So the root cause is not yet found... I'm digging further.

      posted in Support
      S
      slowcyclist
    • RE: GPS positioning stops working after a random duration

      @gpatel-fr Hey, you were right! By merely restarting the service, positioning becomes available again (no need to reboot!), and adding Restart=on-failure in the service file does the job automatically.
      Alas, it's not really a fix for the problem : all the applications that were using the gps at the time of the service failure/restart quit as soon as you try to get back to them. Restarting PureMaps is much faster than rebooting, but you still need to acquire a new gps fix...

      I've seen other errors than segfaults in the same piece of code :

      Mar 03 15:01:50 ubuntu-phablet lomiri-location-serviced-wrapper[6592]: malloc(): unaligned fastbin chunk detected
      Mar 03 15:01:50 ubuntu-phablet systemd[1]: lomiri-location-service.service: Main process exited, code=killed, status=6/ABRT
      Mar 03 15:01:50 ubuntu-phablet systemd[1]: lomiri-location-service.service: Failed with result 'signal'.
      
      Mar 03 15:08:19 ubuntu-phablet lomiri-location-serviced-wrapper[7546]: malloc_consolidate(): unaligned fastbin chunk detected
      Mar 03 15:08:19 ubuntu-phablet systemd[1]: lomiri-location-service.service: Main process exited, code=killed, status=6/ABRT
      Mar 03 15:08:19 ubuntu-phablet systemd[1]: lomiri-location-service.service: Failed with result 'signal'.
      

      It seems this daemon's code did not evolve much lately. It was working well on my Xperia X which was armhf while now I have random alignment errors or segfaults on the FP5 which is arm64. But if the architecture is the reason, it should likely affect all arm64 phones running UBports, unless compilations options/checks are set differently on the FP5...

      I guess I'll try to rebuild this piece of code with debug symbols, but then guidance for running it with gdb would be welcome.

      posted in Support
      S
      slowcyclist
    • RE: GPS positioning stops working after a random duration

      @gpatel-fr Except for the bug I report here, I find that GPS on the FP5 works reliably outdoors, although it may take up to a few minutes to get the first fix ( hence maybe the hit-or-miss impression if one is not patient enough). The problem I report here is that, once you get a fix, you can't use the GPS for an arbitrarily long period: at some point (it can be after 5 minutes, 20 minutes or 2 hours) you'll hit this bug and you'll need to reboot to recover usage of the gps (the phone still works well besides that).

      I've also been monitoring what goes on on the android side when the bug occurs:
      LocSvc_GnssAPIClient tries to deliver an NMEA sentence via gnssNmeaCb callback to the UBports hybris layer
      The binder call fails with DEAD_OBJECT because the ubuntu_application_gps_hidl_for_hybris process on the UBports side has died
      LocSvc_GnssInterface detects serviceDied and calls cleanup
      It sends QMI_LOC_STOP_REQ_V02 to the modem — actively stopping GPS at the hardware level
      Then QMI_LOC_SET_ENGINE_LOCK_REQ_V02 — locking the engine
      From this point isGpsEnabled:0 — the session is permanently dead until reboot

      It seems rather clear that the root cause is the UBports process ubuntu_application_gps_hidl_for_hybris that bridges the Android GNSS HAL to the Linux side dying, at which point the Android HAL correctly detects the dead binder and shuts everything down. The GPS hardware itself is fine — it's the UBports bridge process that's crashing due to the segfault.

      If the termination of the lomiri-location-serviced-cli that you observed was due to the same issue, then GPS would seem disabled afterwards, until reboot. And AFAIU having the service auto-restarting would not resucitate the GPS, but I'll give it a try.

      posted in Support
      S
      slowcyclist
    • RE: USB tethering working?

      @gpatel-fr @FlavioMala, indeed the newer Bluetooth stack had the side effect of breaking usb_tethering.
      I could fix it by applying a small patch and recompiling the kernel. The patch is attached to the issue.

      posted in Fairphone 5
      S
      slowcyclist
    • RE: Synchronize appointments with caldav and radicale

      @gpatel-fr I also have a Radicale server and UBPorts agenda syncs well with it (both ways) as long as I do not reboot the phone after connecting to the caldav server (i.e. creating the remote caldav account). On subsequent boots, calendars no longer sync; I need to delete the remote caldav account on the phone and recreate it for syncing to work again. It could just be a problem with storing the password (I find it somewhat surprising that once it's created, it's not possible to change the remote account password, AFAICT), but I have not investigated it more than that. And, yes, it's a pain...

      posted in Support
      S
      slowcyclist
    • GPS positioning stops working after a random duration

      When an app actively uses gps (e.g. PureMaps, SensorStatus ...), I find that the location is no longer updated after a random duration ranging from a couple of minutes to well over one hour.

      When that happens
      -the app no longer receives position updates, as if you were not moving anymore (the app itself is fine, it's not frozen),
      -the white location icon is no longer visible in the top toolbar, and if you open the positioning setting panel, positioning is "on" but no longer green and you can't toggle it.
      -SensorStatus reports "AccessError"

      The only way to recover gps positioning is to reboot the phone. Needless to say this bug is particularly annoying when you are depending on your phone for routing while driving. It's also quite frustrating since PureMaps would route me for hours without any problem on my previous phone (Xperia X under 20.04).

      When the loss of positioning occurs, the journal shows :
      Mar 01 17:02:39 ubuntu-phablet systemd[1]: lomiri-location-service.service: Main process exited, code=killed, status=11/SEGV
      Mar 01 17:02:39 ubuntu-phablet systemd[1]: lomiri-location-service.service: Failed with result 'signal'.
      Mar 01 17:02:39 ubuntu-phablet systemd[1]: lomiri-location-service.service: Consumed 1.165s CPU time.

      and the service invokes ExecStart=/usr/bin/lomiri-location-serviced --bus system --provider gps::Provider --provider remote::Provider

      so it's lomiri-location-serviced which segfaults after a random duration, requiring reboot.

      I did not worry too much about the issue earlier because I do not use the GPS heavily, but I believe this issues was already present when got my FP5 back in October. I'm presently on daily channel, running 24.04-1.x (2026-02-13/2), and lomiri-location-service is 3.3.0+0~20250628184827.14+ubports~dev~1.gbp8c98a8

      Am I the only one having this issue?

      posted in Support
      S
      slowcyclist
    • RE: USB tethering working?

      @gpatel-fr thanks for digging into this. So, right, it's supposed to use ncm and not rndis, but usb-moded should handle tethering with that .
      The file you tried to cat is restricted to root access, but even with sudo, it's not accessible, and that probably explains why the configuration script fails, falling back to charging only.
      Maybe the fp5 is missing the corresponding kernel module now, while it had it back in August?
      I created a ticket.

      posted in Fairphone 5
      S
      slowcyclist
    • RE: USB tethering working?

      @Moem of course, that's what triggers the messages in the journal. In French it's called "partage de connexion USB" and
      I've tried both from the system settings and UT tweaks.

      posted in Fairphone 5
      S
      slowcyclist
    • USB tethering working?

      I'm on daily channel, up-to-date. Testing usb tethering today for the first time, I find it does not work.
      In the journal I can see related errors:

      usb_moded[1957]: /etc/usb-moded/usb-moded.ini: can't remove stale config file: Read-only file system
      usb_moded[1957]: /sys/kernel/config/usb_gadget/g1//functions/rndis.usb0: mkdir failed: No such file or directory
      usb_moded[1957]: function rndis.usb0 is not registered
      usb_moded[1957]: /sys/kernel/config/usb_gadget/g1//UDC: write failure: Invalid argument
      usb_moded[1957]: mode setting failed, try charging_only
      

      Yet, it was reported earlier to be working . Is it a regression? Does it work for you?

      posted in Fairphone 5
      S
      slowcyclist
    • RE: sdcard not visible through mtp

      I still don't know how to make the sdcard appear directly on my desktop computer when I connect my phone, but I have a workaround : symlink the sdcard mount point in the /home/phablet directory ( = "internal storage" on the desktop computer).

      This is easily done using the terminal (or adb shell). Find the exact mount point of the sdcard using the command mount; it is something like /media/phablet/XXXX-YYYY. Then enter ln -s /media/phablet/XXXX-YYYY ~/sdcard

      posted in Fairphone 5
      S
      slowcyclist
    • sdcard not visible through mtp

      Hello,
      I have configured the camera to store images on the sdcard, but when I connect the phone to my computer, only "internal storage" is visible. As a result, I cannot browse or transfer my photos through the GUI (I have to use adb pull from a terminal, which is a pain). On my previous UT device (sony xperiax, running 20.04), the sdcard was accessible through mtp, alongside "internal storage".

      I'm currently running 24.04-1.x daily, dated 2025-10-14. Am I alone to experience this problem? Is there an easy fix?

      Thanks in advance.

      posted in Fairphone 5
      S
      slowcyclist
    • RE: Fairphone 5 - 24.04-1.0

      @sixwheeledbeast said in Fairphone 5 - 24.04-1.0:

      an issue with is OSM server

      Indeed, it's broken, there is a bug report for it.

      posted in Fairphone 5
      S
      slowcyclist
    • Latest OTA broke GPS - Need help to revert to previous OTA

      I upgraded my Xperia X to the latest RC 2024-W30/2 on August 17, and since then, the GPS is no longer getting a fix (even waiting for hours). Previously I was running RC 2024-W03, and GPS worked fine (I used it on August 13).
      I wish to reinstall that previous version, but I have not found detailed steps explaining how to do that. I guess I should run

      sudo system-image-cli ...
      

      in an adb shell but I don't know how to specify the image I want. Does anyone has experience doing such downgrade?

      posted in Support
      S
      slowcyclist
    • RE: Wireless Hotspot Settings

      @TakoR see a fix in the Xperia X sub-forum

      posted in Support
      S
      slowcyclist
    • RE: Sony Xperia X loses Wifi Connection

      @los-tioz said in Sony Xperia X loses Wifi Connection:

      Has anyone updated Ubuntu Touch from version 16.04 to 20.04? Is the problem with the Wlan also present there?

      Wifi reconnects much more reliably in 20.04.

      posted in Sony Xperia X (F5121 & F5122)
      S
      slowcyclist
    • RE: Hotspot not working on focal 20.04

      @TakoR I only recently made the move to focal (RC 2024-W03) and saw the same problem of hotspot only working with no password.
      Some research revealed that Volla devices also had a similar problem that has been solved by adding a file in Networkmanager configuration.

      The same fix (detailed below) works also for the Xperia X. You will need to reapply it at each upgrade of the OS until it is merged in the device tree, if ever.

      1-From a computer open a terminal session on your phone using either "adb shell" or ssh. Alternatively you can do it in terminal app on the phone itself, but it is very cumbersome.

      2-make the image writable (until reboot) :

      sudo mount -o remount,rw /
      

      3-create the new file with appropriate content:

      cat << EOF > /etc/NetworkManager/conf.d/fix-ap-with-password.conf
      [main]
      wifi-wpa-psk-pmf-no-optional-ap=yes
      EOF
      

      4-reboot the phone

      5- my (linux) laptop could still not pair with the hotspot at that point. So I deleted the failed wifi hotspot config on the laptop and also edited the hoptspot config on the phone, changing the password and rebooted the phone again. After that, the laptop could connect the hotspot with password. I guess that not all of these last steps are needed.

      Besides that issue and other minor quirks, I am very pleased with the OS upgrade. I just changed the channel, and upgraded as I had done before for the xenial upgrade. After that, I upgraded all apps. The new version has about a doubled battery life (for my rather lite use case, at least) compared to xenial and it solved the bug which made the camera app record half-green pictures about 1/3 of the time.

      posted in Sony Xperia X (F5121 & F5122)
      S
      slowcyclist
    • RE: Sony Xperia X loses Wifi Connection

      @los-tioz

      I have an F5122 and in my case, the loss of Wifi connectivity has no definite pattern that I can see: Sometimes it would reconnect when getting back in range and sometimes not, apparently not dependent on the duration I was connected or out of range. When wifi does not reconnect within seconds, rebooting is the only way to fix it (and it works 99% of time).

      Much less often (every couple of months, perhaps), I experience a loss of cell connectivity : the phone would suddenly declare it has no sim card, requiring a reboot to recover. Although infrequent, this later issue can indeed lead to missed calls, as it is entirely up to you to realize you are out of reach (in my case it can last hours...). It's definitely not an electrical problem but really a software problem which was already present when I was running SailfishOS on that phone and that is linked to my carrier using a form of "roaming" with another carrier where it lacks covering. Besides this rare issue, calling and receiving works fine for me and those who call me.

      However, unlike in you report, my connectivity issues do not prevent launching the applications I use (camera, browser, email...). But of course, apps needing connectivity do not function properly. For me, commands entered in the terminal perform as expected.

      Finally, I'm glad you report here the rebooting issue because I have had this issue too for a few months, after an update (on the candidate channel). When asking for a shutdown or a reboot (most of the time for restoring wifi connectivity) the screen goes black and the phone freezes in that state (power button is inactive unless volume up id pressed simultaneously). However, if you wait long enough (7-8 min?) the phone eventually reboots. I guess some process does not honour the termination request and the kernel waits a long time before forcefully terminating it.

      posted in Sony Xperia X (F5121 & F5122)
      S
      slowcyclist
    • RE: FluffyChat Encryption via Pantalaimon

      Hey thanks @keneda, problem solved! I wish that piece of information were more obvious...

      posted in App Development
      S
      slowcyclist
    • RE: FluffyChat Encryption via Pantalaimon

      I have downloaded the latest click package, but struggled a bit finding how one is supposed to manually install such a click package. I did

      pkcon install-local --allow-untrusted pantalaimon.thrrgilag_0.5.0_arm64.click
      

      Then I could open launch the app, configure it, start the service. All seemed fine. However, Fluffychat does not connect through pantalaimon (":confused_face: no connection "). And Fluffychat can connect directly to my homeserver.

      Looking in the logs, it seems pantalaimon has a problem

      Traceback (most recent call last):
        File "peewee.py", line 3035, in connect
        File "peewee.py", line 3371, in _connect
      sqlite3.OperationalError: unable to open database file
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "pantalaimon", line 10, in <module>
        File "click/core.py", line 829, in __call__
       
        File "peewee.py", line 3371, in _connect
      peewee.OperationalError: unable to open database file
      [11864] Failed to execute script pantalaimon
      
      

      I suspect the way I installed the app might not give it the proper rights to operate correctly. If so can anyone tell me how one is supposed to properly install a click package manually? Otherwise, any idea how I can debug the issue?

      posted in App Development
      S
      slowcyclist