UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    "X-Lomiri-Touch=true" can cause lags

    Scheduled Pinned Locked Moved 20.04 Focal Fossa
    9 Posts 4 Posters 1.5k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Eric HE Offline
      Eric H
      last edited by Eric H

      Hello,

      Since I updated my phone to focal, there are some lags when switching apps.
      These lags have been reported, at least, by all users of this phone (surya).

      Yesterday, I tried to comment lines starting with X-Lomiri-Touch=true in .desktop files of a few applications.
      And, even I don't understand why, it has worked, there were no lags anymore !

      I just replaced X-Lomiri-Touch=true by #X-Lomiri-Touch=true, nothing more.

      So I wonder :

      • Are X-Lomiri-* specific desktop entries documented somewhere ?
      • Why X-Lomiri-Touch=true can cause lags on some phones ?
      • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
      • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
      arubislanderA 1 Reply Last reply Reply Quote 0
      • arubislanderA Offline
        arubislander @Eric H
        last edited by

        @eheintzmann Could you add to your post which phone is 'this phone'?

        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
        Happily running Ubuntu Touch
        JingPad (24.04-1.x daily)
        OnePlus Nord N10 5G (24.04-2.x daily)
        PinePhone OG (20.04)
        Meizu Pro 5 (16.04 DEV)

        Eric HE 1 Reply Last reply Reply Quote 0
        • Eric HE Offline
          Eric H @arubislander
          last edited by Eric H

          @arubislander Xiaomi Poco X3 NFC (surya)

          • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
          • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
          1 Reply Last reply Reply Quote 0
          • Eric HE Eric H referenced this topic on
          • danfroD Offline
            danfro
            last edited by

            Are those apps where you commented out that line build for focal? Or do you have some xenial apps running that do still work under focal?

            Eric HE 1 Reply Last reply Reply Quote 0
            • Eric HE Offline
              Eric H @danfro
              last edited by

              @danfro Hi
              During my tests, I commented out core applications only :

              • ciborium.desktop
              • content-hub-send.desktop
              • dialer-app.desktop
              • lomiri-system-settings.desktop
              • lomiri.desktop
              • mediaplayer-app.desktop
              • messaging-app.desktop
              • morph-browser.desktop
              • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
              • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
              1 Reply Last reply Reply Quote 0
              • T Offline
                TheKit
                last edited by

                I think this issue is related to https://gitlab.com/ubports/development/core/lomiri-app-launch/-/merge_requests/47#note_1567842127. As I understand from the discussion, if lomiri-app-launch is unable to write oom_adj values, it will attempt to spawn an OOM SUID helper, and doing so for every thread takes lot of time/resources.

                The easiest workaround for now is to revert Android commits in the device port kernel that made read-only oom_adj (as they had been also discarded upstream):
                https://gitlab.com/ubports/porting/community-ports/android10/xiaomi-redmi-note-9-pro/kernel-xiaomi-sm6250/-/commit/d13041168eae01e79e9625f280a640ab8f960033
                https://gitlab.com/ubports/porting/community-ports/android10/xiaomi-redmi-note-9-pro/kernel-xiaomi-sm6250/-/commit/c45ed3b1cdf7d8e485bb4b50dfd1ec9842b4bd64

                Eric HE 3 Replies Last reply Reply Quote 0
                • Eric HE Offline
                  Eric H @TheKit
                  last edited by

                  @TheKit thanks
                  @ywmaa I'm going to try that on the surya kernel

                  • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                  • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                  1 Reply Last reply Reply Quote 0
                  • Eric HE Offline
                    Eric H @TheKit
                    last edited by

                    @TheKit
                    I tested your solution.
                    It just works.
                    Many thanks.

                    • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                    • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                    1 Reply Last reply Reply Quote 0
                    • Eric HE Offline
                      Eric H @TheKit
                      last edited by

                      @TheKit
                      Your fix has been applied on surya kernel by @ywmaa.
                      Users have reported on Telegram that UI freeze are gone.

                      • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                      • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better πŸ’—

                      Register Login
                      • First post
                        Last post