[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] PocoF3user:
So I'm running the latest version of Microg for Lineage (20230313) & rooted on my Poco F3 and I'm having some serious problems with charging my phone.

About a week ago I downloaded Advanced Charging Controller (ACCA) because I wanted do automate charging overnight and stuff. What I didn't know however was that some Xiaomi Devices appear to have a buggy PMIC that causes trouble. And that's exactly what I noticed when I tried to regulate the maximum charging current. My Phone just wouldn't want to charge up anymore when I tried limiting the current. So eventually I just gave up on the whole Idea and uninstalled the app. However my Phone ever since behaves weird when charging.

On my PC (normal 5v slow charging) it just refused to charge at all. I then tried connecting it to the included power adapter and that worked fine. So fast charging worked normally. When I then plugged it to my PC I think it worked fine again. Or at least I got it to charge after some reboots or so.

However battery usage overnight has increased quite a lot ever since. Every morning I wake up with 15-20% less battery than the moment I put my phone aside before I went to sleep. Before that was a lot less. I don't know how much exactly but I believe it was around 5% or so (I might be wrong here).

When I plug in my phone to charge it up I get the android notification "Charging this device via USB" as usual. But when I unplug the USB cable the notification will not disappear until I click on it and then select file transfer or any of the options and then after a second or two it will go away and the options become grayed out. The battery indicator however does report that the phone does not charge anymore the instant I disconnect the USB cable.

Now today I connected the phone to my PC again and wanted to charge it. But it just didn't want to charge once again and the android notification didn't show up. So I connected it to the included power adapter which worked fine. And then I connected it back to my PC and it now charges flawlessly and the notification even disappears after disconnecting the USB cable.

I believe that the high battery usage overnight has something to do with android still showing the "Charging this device via USB" notification because AccuBattery reports that the phone won't go into deep sleep mode when the screen is turned off. And now after I shortly connected the phone to the included power adapter to (at least temporarily?) fix the issues the phones does go into deep sleep mode. So I assume android thinks the phone is still being charged and thus doesn't enter deep sleep mode even though the device is not charging.

However I'm quite annoyed by the weird behavior of the phone, especially the high battery usage overnight. Things I have tried to resolve this issue include: Reflashing both slot a and b with the latest version of LineageOS. Going into fastboot and typing "fastboot reboot bootlaoder" into CMD hoping that would reset the PMIC or something (because I read that somewhere). None of this seems to have resolved my issues. Maybe there are some configuration files that Advanced Charging Controller (ACCA) left behind the cause trouble however I have no Idea how to find and delete them.

I would really appreciate any advice from you as this is my daily driver.

Oh and feel free to ask any questions if you need further details.