Skip to content

The status LED shows what PICO OS's shows #183

Backlog

Description

@Xenolphthalein

As an owner, I want the status LED to show whether the headset charges or is full, as on PICO OS, so that I can tell
at a glance.

Now: on Valve's kernel the LED has no LED class device: nothing drives it, and it stays blue as the bootloader
leaves it (reported by a user). PICO OS drives it from its charger states.

Acceptance criteria

  • Which hardware drives the LED and what PICO OS shows in which state is known.
  • The kernel offers the LED (device tree and driver), as PICO OS's does.
  • The installed system shows PICO OS's states (charging, full, low, on, off), checked on the headset.

Activity

  1. added
    kernel
    power
    on Dec 3, 2026
  2. Xenolphthalein commented on Dec 3, 2026

    @Xenolphthalein
    ContributorAuthor

    The status LED works on the headset.

    The LED itself is the PM8150L's tri-colour LED on its LPG, channels 1–3 (red, green, blue), as in the stock tree. Our device tree didn't describe that PMIC at all.

    PICO OS's logic was read from its services: two writers set the LED and the last write wins.

    • The battery service, while charging: red up to 20 %, amber from 21 to 98 %, green from 99 %. It also blinks red at a warm or cold battery.
    • The power manager: blinks red below 20 %, blue with the screen on, off with the screen off on battery.
    • Charger mode has its own level colours, and init blinks blue at shutdown.

    Changes:

    Seen on the headset (7.2-11's kernel with the new device tree, installed for the test):

    • The LPG probes, and red, green and blue each light their own colour.
    • status-led showed green on the cable at full charge, blue unplugged, off in standby, blue on wake, and green again once plugged in.
    • No failed units.

    Still open:

    • The low-battery and temperature blinks, charger mode and the shutdown blink are covered by host tests only.
    • A linux release with the device tree, then phoenix's kernel pin.
  3. Xenolphthalein commented on Dec 3, 2026

    @Xenolphthalein
    ContributorAuthor

    Released and pinned: overpressure/linux phoenix/7.2-12 (the LED in the device tree, byte for byte the DTB tested on the headset) and overpressure/packages 2026.12.4 (status-led), both on phoenix's main in 04ab20e (#189).

    Criteria 1 and 2 are met. Left for criterion 3, on the headset: the amber colour while charging below 99 %, and the red blink below 20 % on battery with the screen on. Seen so far: full, on, off and standby.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kernelpower

    Fields

    Stage

    Awaiting release

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions