Skip to content

pico4: the panels dark from the kernel's start, no brightness steps before the first picture - #99

Merged
Xenolphthalein merged 2 commits into
phoenix/7.2from
phoenix/dark-takeover
Dec 4, 2026
Merged

Xenolphthalein merged 2 commits into
phoenix/7.2from
phoenix/dark-takeover

Conversation

@Xenolphthalein

Copy link
Copy Markdown
Contributor

Two changes so that the lenses go from PICO's boot logo to dark, then to the boot indication:

  • The device tree: a pin state of the TLMM itself holds the panels' enable line (GPIO 29) low from the TLMM's probe. The bootloader leaves it high with its logo scanned out; once the display's clock controller and the SMMUs probe, that scanout breaks up and the still-lit panels showed grey for about a second.
  • The panel driver: the enable line stays low through the panels' first power-on and goes up once, with the picture. Raised at the first enable, it lit the lenses black for 300 ms before the first light took it down and up again: two brightness steps.

The line goes low at 0.17 s with the PDC registered early (overpressure/linux sm8250/pdc-early, into sm8250/7.2); without it the TLMM probes at 0.61 s and some grey stays.

On the headset (phoenix/7.2-12's tree with both changes), watched through several starts of the installed system: PICO's logo, a flash too short to tell apart, dark, the boot indication; no grey, no brightness steps. Dropping the line through bl_power while a picture shows goes straight to dark. The boot indication in both lenses; SteamVR's wake: both panels read mode 0x1c with compression on.

A short flash right after the logo remains: it happens before the TLMM's probe, the earliest point the kernel can set a pin, and nothing the kernel does before then touches the display.

For overpressure/phoenix#195

…el's start

The bootloader leaves the panels' enable line (GPIO 29) high with its
splash on the panels. Once the kernel's display clock controller and the
SMMUs probe, that scanout breaks up, and the panels, still lit, show
grey until something lowers the line: for about a second at every boot,
in the installed system, charger mode and the recovery.

A state of the pin controller itself drives the line low when the
controller probes, before the display's clock controller, the SMMUs and
mdss. That takes the PDC registered early (irqchip/qcom-pdc: register
before the device initcalls, on sm8250/7.2): without it the pin
controller waits for the late initcalls, at 0.61 s, and the grey stays
for about 170 ms. With it the line goes low at 0.17 s. A short flash
before that remains; nothing the kernel does before then touches the
display.

The panel driver takes the line as it finds it and raises it once the
panels show its picture.
A boot's panels show nothing after their first power-on until the
first light sends the power-on commands again. Raised at the first
enable, the enable line lit the lenses black for those 300 ms, then
the first light took it low and raised it again with the picture: the
lenses changed brightness twice before the first picture. The line now
stays low from the first enable until the first light raises it.

The probe's comment no longer says the panels show the bootloader's
splash until the first modeset: mdss's reset ends it, and the tree
keeps the enable line low from the kernel's start.
@Xenolphthalein
Xenolphthalein merged commit c5afc40 into phoenix/7.2 Dec 4, 2026
5 checks passed
@Xenolphthalein
Xenolphthalein deleted the phoenix/dark-takeover branch December 4, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant