Typically phone lasts ~2 days, sometimes something gets stuck and consumes a lot of CPU.
Last time I charged phone fully 3 hours ago and it shows 8 hours left (already at 76%).
13% is used by CPU, 3 standby, 2% Home Assistant, where did the rest of the battery go I have no idea.

The workaround is to reboot the phone.

Any suggestions how can I identify which thread got stuck potentially? On the previous OS I could use root to see all the processes, but here SSH server is isolated, so I don't see processes from global namespace.

Not rebooting the phone for now, I'd like to figure out what is going on because it is not the first time.

I see, connected with adb and turns out Telegram uses 150% of CPU.

    nazar-pc I see, connected with adb and turns out Telegram uses 150% of CPU.

    What are the ADB commands used?

    The basics: opened shell with adb shell (Wi-Fi connection on GrapheneOS didn't work for some reason, I had to use cable), then top to find an application and top -H to get an idea of what threads in that application specifically, which might be useful hint for bug reporting.
    Added details to this one: https://bugs.telegram.org/c/23348

      nazar-pc Wi-Fi connection on GrapheneOS didn't work for some reason

      I use the wifi option all the time. Sometimes it breaks, so I've found the best way to not break it is to always use adb kill server when I'm finished. If it's still broken, I restart my phone.

      One time something was messed up really bad, so I just deleted the ~/.android folder.

        unwat Well, if I were to reboot the phone, the process that was consuming CPU would have been gone too. But yeah, there appears to be something buggy about Wi-Fi debugging here.

          nazar-pc Well, if I were to reboot the phone, the process that was consuming CPU would have been gone too.

          Right. Guess I was just saying in general this is how I avoid issues with connecting via wifi. Maybe next time the wifi connection will work for you when you want to check this sort of thing.