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 712 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.
      • E 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 ?
        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Online
          arubislander @Eric H
          last edited by

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

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

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

            @arubislander Xiaomi Poco X3 NFC (surya)

            1 Reply Last reply Reply Quote 0
            • E 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?

              E 1 Reply Last reply Reply Quote 0
              • E 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
                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

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

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

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Eric H @TheKit
                      last edited by

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

                      1 Reply Last reply Reply Quote 0
                      • E 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.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post