Skip to content

feat(pico4-power): the status LED as PICO OS sets it - #58

Merged
Xenolphthalein merged 2 commits into
mainfrom
feat/status-led
Dec 3, 2026
Merged

Xenolphthalein merged 2 commits into
mainfrom
feat/status-led

Conversation

@Xenolphthalein

Copy link
Copy Markdown
Contributor

status-led follows the battery, the charger and the screen the way PICO OS's two LED writers do, in their order:

  • the battery service's colour while charging (red to 20 %, amber to 98 %, green from 99 %) and its red blink at a warm or cold battery;
  • the power manager's red blink below 20 %, blue with the screen on, off with the screen off on battery;
  • the charger program's colours in charger mode;
  • init's blue blink at shutdown.

It drives rgb:status, the PM8150L's tri-colour LED (overpressure/linux, phoenix/status-led), and doesn't start on a kernel without it.

On the headset, with that device tree: green on the cable at full charge, blue on battery, off in standby, blue on wake, green again once plugged in. Not seen yet: the low-battery and temperature blinks, charger mode and the shutdown blink, which are covered by host tests only.

For overpressure/phoenix#183

status-led follows the battery, the charger and the screen as PICO OS's
two writers of the LED do, in their order: the battery service's colour
while charging (red to 20 %, amber to 98 %, green from 99 %) and its red
blink at a warm or cold battery; the power manager's red blink below
20 %, blue with the screen on and off with it on battery; the charger
program's colours in charger mode; and init's blue blink at shutdown.

It drives rgb:status, the PM8150L's tri-colour LED, and stays inactive
on a kernel without it.

For overpressure/phoenix#183
@Xenolphthalein
Xenolphthalein merged commit a1aa7f5 into main Dec 3, 2026
24 checks passed
@Xenolphthalein
Xenolphthalein deleted the feat/status-led branch December 3, 2026 14:15
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