This page details a hardware fix for an issue that was found on early PinePhone hardware revisions (see PinePhone for an overview of the different revisions) and has been fixed since the 1.2b hardware revision.
PinePhone v1.2 - UBports Community Edition
PinePhone v1.2a - postmarketOS Community Edition
This fix requires desoldering a tiny resistor, therefore some experience with soldering is highly recommended.
When connecting a VBUS powered device to the affected devices, like USB-C docks or hubs, the brightness changes significantly. The cause of the issue was a VBUS_CTRL signal provided by ANX7688 to control VBUS power direction. The signal is connected to AXP803 to tell it to not trying to charge from VBUS when the VBUS is generated from the battery. The signal is connected to the PL9 pin of the SoC, withut there being a reason for that. VBUS_CTRL is a 3.3V signal and the PL port is a 1.8V port. The issue was introduced in the 1.2 board revision.
The fix of the issue is to remove the R1318 resistor.
A detailed instruction will follow here.