Notes on Systems, Android & Code

A personal log of kernel patches, custom ROM maintenance, server automation, and abstract strategy game engineering.


Taming Idle Battery Drain: Dynamic USB Power for Android IR Blasters

External USB-C IR blaster dongles are an easy way to control legacy AV equipment and appliances from modern phones, but they come with an annoying penalty: Android keeps the 5V VBUS rail energized continuously in Host mode, generating 15–40 mA of silent parasitic battery drain all day long.

To fix this, I built a lightweight vendor daemon and loopback socket bridge for custom LineageOS builds that supplies USB power strictly on-demand when transmitting IR codes.