Linux Phones Hackday #3

Third hackday happend on 2nd September as planned. Here are few topic we worked on.

Attendees

  • Andrea
  • David Heidelberg
  • Pavel Machek
  • Jakub Jirutka
  • Petr Hodina

Videos on Librem 5

Pavel presented his pipeline for recording videos on the Librem 5 with reasonable quality.

Xiaomi 11 Lite 5G

Next time, Pavel Machek will brief us about his new phone based on the Snapdragon 778G.

Smart Charging

David and Pavel discussed possibilities to make the phone smarter during charging to optimize for longer battery life. Pavel shared his scripts for achieving something similar on his previous phone.

Purism Librem 5 + Dell U2723QE

We tested the Dell U2723QE together with the Librem 5 phone, and it seems that both charging and 4K output at 30 Hz work well (for some reason, the correct resolutions are only detected after the second USB-C plug-in).

Since the phone start heating up, we cooled it with cooling pad.

LD_PRELOAD, using glibc optimizations under musl-libc

David and Jakub discussed the possibility of using more assembly optimizations in Alpine/postmarketOS by leveraging existing performance optimizations done for glibc (licensed under GPL, thus they cannot be shared upstream with musl-libc).

Outcome: Separate optimized functions, preloaded.

OpenWRT on Acer Predator W6X

Together with Andrea, we tried to improve the router device tree, but later discovered it had already been mainlined the previous month.

Lenovo A6010

Andrea flashed her first Linux phone.
Things to address:

  • Enable charging in Linux.
  • Fix Adreno 306 display flickering.

Mainline on Sony Devices Powered by Snapdragon 845

Petr prepared the kernel to test patches that support UFS storage without wiping its contents (previously an issue due to poor design of SDM845-based Sony phones). Testing should happen in the coming days on one device in very poor condition (so no big loss if it fails).