Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Power drain, perhaps caused by app Notes

    Support
    5
    13
    154
    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.
    • G
      guru last edited by

      Hello,
      On my BQ E4.5 (latest UPports OTA) I have always set the following whe the phone is not in use:

      • switched off Wifi
      • have switched on two SIM with data mobile in one
      • switched of all apps, apart of the terminal app and the battery view of the System Settings app
      • stopped dekkod (from the terminal with stop dekkod)
      • auto suspend after two minutes idle

      With this for weeks there was no drain, not even over the full night.

      This, no drain, changed some days ago and there was always a low but constant drain of for example 20% over the night. I was asking me, what could have caused this. I saw in the recent updates the Calculator, Wheather App and Notes. And I vaguely remembered that the Notes app has some network syncing feature (never used this). So, I started with de-installing this app as first, And bingo! The drain stopped again.

      1 Reply Last reply Reply Quote 1
      • L
        Luksus last edited by

        @bhdouglass perhaps knows something?

        1 Reply Last reply Reply Quote 0
        • bhdouglass
          bhdouglass last edited by

          So you can't technically uninstall the notes app as its part of the rootfs, so what version do you have installed now and what version did you uninstall?

          G 1 Reply Last reply Reply Quote 0
          • G
            guru @bhdouglass last edited by

            @bhdouglass said in Power drain, perhaps caused by app Notes:

            So you can't technically uninstall the notes app as its part of the rootfs, so what version do you have installed now and what version did you uninstall?

            I just clicked the app's icon long, it asked me as for any other app: open or uninstall and I clicked the latter and the icon went away. I don't see the app anymore, please let me know if I should look for it in the file system and explain to me why I can't uninstall it. Thx

            1 Reply Last reply Reply Quote 0
            • G
              Giiba last edited by

              UT has a read only root file system, that has a version of the notes app baked in. This means you can upgrade to newer versions, but when you 'uninstall' a system app, I think what happens is the app is downgraded to the baked in version.

              Is there still an icon in the app drawer?

              G 1 Reply Last reply Reply Quote 0
              • G
                guru @Giiba last edited by

                @Giiba said in Power drain, perhaps caused by app Notes:

                UT has a read only root file system, that has a version of the notes app baked in. This means you can upgrade to newer versions, but when you 'uninstall' a system app, I think what happens is the app is downgraded to the baked in version.

                Is there still an icon in the app drawer?

                No, there is no icon of the notes app anymore; and btw: since 10 hours the battery is at 59% 🙂
                Can I query somehow for the notes in the terminal window? And no, my system root is not mounted writable.

                1 Reply Last reply Reply Quote 0
                • L
                  Luksus last edited by

                  Just tried to uninstall notes app - its possible. (on Halium)

                  1 Reply Last reply Reply Quote 0
                  • G
                    Giiba last edited by

                    Interesting... I wonder what 'uninstall' is actually doing?

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      guru @Giiba last edited by guru

                      In addition (and maybe the problem is more complex): This night I had a power drain again and caught a dekko proc which does in a loop every second this:

                       root@ubuntu-phablet:/home/phablet# ps ax | grep dekko
                       3263 ?        Ssl    0:24 /opt/click.ubuntu.com/dekko2.dekkoproject/current/lib/arm-linux-gnueabihf/bin/plugins/notify/dekkod-notify
                       7362 pts/52   S+     0:00 grep --color=auto dekko
                      root@ubuntu-phablet:/home/phablet# 
                      root@ubuntu-phablet:/home/phablet# 
                      root@ubuntu-phablet:/home/phablet# strace -s 256 -p 3263
                      strace: Process 3263 attached
                      restart_syscall(<... resuming interrupted poll ...>) = 0
                      clock_gettime(CLOCK_MONOTONIC, {31508, 110627514}) = 0
                      clock_gettime(CLOCK_MONOTONIC, {31508, 111023129}) = 0
                      stat64("/home/phablet/.config/dekko2.dekkoproject/tmp", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
                      socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
                      connect(4, {sa_family=AF_LOCAL, sun_path="/home/phablet/.config/dekko2.dekkoproject/tmp/qcop-server-0"}, 110) = -1 ENOENT (No such file or directory)
                      close(4)                                = 0
                      write(2, "void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError \"QLocalSocket::connectToServer: Invalid name\"\n", 115) = 115
                      clock_gettime(CLOCK_MONOTONIC, {31508, 122487283}) = 0
                      clock_gettime(CLOCK_MONOTONIC, {31508, 124085668}) = 0
                      poll([{fd=3, events=POLLIN}], 1, 999)   = 0 (Timeout)
                      
                      Flohack 1 Reply Last reply Reply Quote 0
                      • Flohack
                        Flohack @guru last edited by

                        @guru Yes unfortunately dekkod is known to enter a busy-waiting loop when it cannot reach any network resources from the accounts - do you turn off your internet over night?

                        G 2 Replies Last reply Reply Quote 0
                        • G
                          guru @Flohack last edited by

                          No, only Wifi as I said begining this thread. Stanislav Lem: Niemand liest etwas, wer etwas liest, versteht es nicht, wer es versteht, vergisst es wieder 🙂

                          Flohack 1 Reply Last reply Reply Quote 0
                          • Flohack
                            Flohack @guru last edited by

                            @guru You wrote this night, I wanted to know if that might have been a special night or not. But, regardless of whats the WiFi state, dekkod freaks out a bit when there are connection issues, yes. I hope someone can fix this soon. It would be good to report this in the dekkod tracker in case its not there yet.

                            Also, even if a process makes a query every 5 minutes this could prevent the phone from entering deepsleep as it creates wakelocks. Background activity is a fragile topic on mobile devices.

                            1 Reply Last reply Reply Quote 0
                            • G
                              guru @Flohack last edited by

                              @Flohack said in Power drain, perhaps caused by app Notes:

                              @guru Yes unfortunately dekkod is known to enter a busy-waiting loop when it cannot reach any network resources from the accounts - do you turn off your internet over night?

                              Btw, the looping/polling proc was not dekkod but dekkod-notify. Looks like a concept flaw polling every second.

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