We have moved to a new Sailfish OS Forum. Please start new discussions there.
17

battery drain related to carddav-client

asked 2016-10-28 07:00:29 +0300

Kaku gravatar image

updated 2018-11-02 05:02:54 +0300

Since updating to 2.0.4.14 I'm experiencing very poor battery live (less than 6 hours) with typical use, and the Jolla gets very hot.What is the best way to identify any runaway process / troubleshoot something like this? Thanks for any help.

Edit: from comments below, this drain seems to be related to a carddav-client process running constantly.

Edit: updated the title since this is still an issue, though there is discussion of carddav improvements in later Sailfish3

edit retag flag offensive close delete

Comments

3

Same issue here, don't remove the accounts but try to disable automatic sync. That should help for the time being.

bomo ( 2016-10-28 10:07:41 +0300 )edit
1

Is there any update, has anyone ever managed to resolve the issue? Kaku if you've made any progress on that issue I'd be very happy if you could share your solution.

MasterOfMemory ( 2017-05-15 04:12:24 +0300 )edit

what @MasterOfMemory said. I am running nextcloud 12 and seems the issue came back after that upgrade. Also on 2.1.0.11

solved: backed upbthe.contacts, reset the cpntacts db from a comment above. resyncd and the issue is resolvef

marxistvegan ( 2017-07-17 13:24:41 +0300 )edit

This issue came up on my SailfishX (Lapuanjoki) as well. It's syncing to a Nextcloud 13. I'm not the admin so right now I can't say if there were any recent changes on server side.

@chris.adams: Could you give me a quick follow up on this?

A brief scan of the systemd logs showed repeated messages about saving contacts avatars, with one Base64 decoding error. So carddav-client seems to be looping on caching avatars. Might be unrelated but also there were duplicated avatar files (same image, different ID) in the cache folder.

Disabled autosync (not my preferred long time solutions) and rebooted. So far the client is behaving.

rozgwi ( 2018-05-31 02:42:10 +0300 )edit

Issue still present. My AlienDalvik kept crashing as a consequence and it took me very long to realise Memotoo was the issue. It's a shame they don't seem intent on fixing this issue. Even a disclaimer would be nice. I was about to quit on sailfish because of this issue. XA2 single sim device

GouweGozer ( 2019-09-06 22:37:31 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-10-28 08:11:04 +0300

Sakke gravatar image

I haven't noticed any battery draining, but I've noticed that after system reboot processes like tracker-store, tracker-main or system-server are taking the cpu a lot. So related to your question; Lighthouse and ChargeMonitor (both in Jolla store) are good candidates to find out what's taking cpu,ram etc. and therefore battery.

edit flag offensive delete publish link more

Comments

2

Lighthouse is super useful - thanks! My CPU is running 80% constantly, and it looks like the offending process is carddav-client. I'm guessing this is related to my Memotoo account contacts sync; I will try to disable that account and see if that fixes it.

Kaku ( 2016-10-28 09:23:53 +0300 )edit

It is definitely carddav-client, but even removing all accounts from my Jolla did not fix it. How do I kill this process and/or reset the contact db?

Kaku ( 2016-10-28 09:44:20 +0300 )edit
1

If you removed all accounts then the easiest way might be a simple reboot, have you tried that?

filipb92 ( 2016-10-28 09:57:39 +0300 )edit

Disabling sync didn't help, neither did removing the account. Killing the process manually (via terminal) just made it come back on next reboot. However after I completely reset the contacts database following the instructions here, the hung carddav-client process finally went away.

Of course now I have zero contacts on my phone, and as soon as I added the account back and turned sync back on the problem was back :(.

Kaku ( 2016-10-29 03:15:10 +0300 )edit
2

If you can get sync logs as per https://sailfishos.org/wiki/CalDAV_and_CardDAV_Community_Contributions#Sync_Logs and send them to chris dot adams at jolla dot com I will try to investigate why this is happening for you.

How many contacts exist on the remote CardDAV server? How many different addressbooks are there? What type of server is the remote CardDAV server?

chris.adams ( 2016-10-31 05:10:33 +0300 )edit
Login/Signup to Answer

Question tools

Follow
8 followers

Stats

Asked: 2016-10-28 07:00:29 +0300

Seen: 708 times

Last updated: Nov 02 '18