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

    slowcyclist

    @slowcyclist

    3
    Reputation
    7
    Profile views
    24
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    slowcyclist Unfollow Follow

    Best posts made by 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
    • RE: USB-tethering doesn't work on my Onelpus 3.

      Since it was working in android, there must be a way to have it working in UBports. I had more or less the same issue in the Xperia X port and could make it work (see here). Turns out that the proper device to use was usb0 and not rnids0 (but editing some files was still required to have usb0 being available). If you are comfortable with linux command line and modifying bash scripts, you should try things along what I did.

      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

    Latest posts made by 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