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

    Xmir: Lomiri High CPU usage + battery drain.

    Scheduled Pinned Locked Moved OS
    2 Posts 2 Posters 270 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.
    • pparentP Offline
      pparent
      last edited by pparent

      Hi,

      I've noticed that whenever starting an Xmir app (even a confined and suspended one), then lomiri starts to use a lot of CPU ( 70-80% in my vollaphone ), even if the app itself does not do anything and that the phone is suspended. (Also the app itself does not seem to be really suspended but in any case its cpu usage is generally very low in comparison to lomiri)

      It applies to uWolf and Signal-desktop.

      I'm not sure if this is the right place de report and hopefully Mir2.0 will solve this problem by removing the necessity to use Xmir.

      1 Reply Last reply Reply Quote 1
      • pparentP pparent referenced this topic on
      • pparentP pparent referenced this topic on
      • H Offline
        haagch
        last edited by haagch

        opus 4.6 had a go at this and it flailed around quite a bit and in the end it came up with this bash script that doesn't even require root:

        fix-lomiri-spinner-install.txt

        I told it to be verbose in the script so you can read what it does and whether it's safe at your own discretion - keep in mind that any part of it may be hallucinated and made up.

        tl;dr: According to it, it really is the splash screen spinner, and this workaround will stop the spinning on splash screens after 15 seconds. Basically it makes a fake new version of the lomiri qml theme that symlinks all files from the current theme, but replaces the qml file for splash screens with a new qml file that disables the spinning circle on splash screens after 15 seconds. Then creates a systemd user service that sets QML2_IMPORT_PATH to that new theme.

        Seems to work here, but as always, run AI generated scripts at your own risk, or anyone else, feel free to create a better workaround or upstream fix based on this info.

        I assume there should be two fixes coming from this: 1) don't waste cpu cycles on window animations for windows that are fully covered by other windows, 2) make the spinner animation render in a way that doesn't cause upwards of half a cpu core total cpu usage.

        Firefox showing a static reddit page now:
        05f1e3b6-2d03-437b-a7ef-8c8dc125cb31-image.jpeg

        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