Skip to content

tools: aurora: Notify about unsupported front-port displays (J700) - #334

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
userspace/j700-display-port-hint
Oct 17, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
userspace/j700-display-port-hint

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

The MacBook Neo's front USB-C connector is USB 2.0 only, so it cannot carry DisplayPort. A display or dock plugged in there stays dark, with no explanation. This adds a small userspace notifier that tells the user, as macOS does:

This port doesn't support displays. Connect the display to the rear USB-C port.

How it works

  • Trigger: a USB-C adapter whose alternate mode wasn't entered enumerates a USB Billboard device (class 0x11), the standard signal for it.
  • Matching: a udev rule marks Billboards on the J700's front branch. An unprivileged per-user service verifies the board's fixed hub and controller topology.
  • Delivery: one ordinary libnotify notification, only to an active local graphical session. This works with GNOME on Fedora and with mako on Hyprland/Omarchy.
  • Rate limit: once per plug, kept across service restarts, with delivery attempts at least 30 s apart.
  • No side effects: it changes no display configuration or notification preferences.
  • Kernel/userspace split: this stays in userspace on purpose, because the firmware-managed Type-C driver registers no partner altmodes, so missing altmodes cannot prove a lack of DP support. The README covers the split, installation, rollback and the attended acceptance checks.

Testing

  • Synthetic host tests, plus a private-session-bus libnotify integration test.
  • Independent review: PASS with one MINOR (the rate-limit timestamp was taken before the session query), fixed in this commit with a test.
  • On the Neo: installed and enabled. The live replay and rear-port checks are still owed, because the Billboard did not enumerate on the boot it was installed on. An attended front/rear plug check comes before merge.

🤖 Generated with Claude Code

A display adapter on the J700's USB 2.0 front connector can enumerate a
Billboard device while leaving the display dark. Explain the connector's
limitation and direct the user to the rear USB-C port.

Mark front-branch Billboards with udev and verify the board's fixed hub
and controller topology in an unprivileged user service. Send a normal
libnotify notification only for an active local graphical session. Keep
per-plug delivery state across service restarts and rate-limit attempts
without changing display configuration or notification preferences.

Keep this board-specific hint in userspace: missing partner altmodes in
the firmware-managed Type-C driver do not establish a lack of DP support.
Document the kernel/userspace split, public implementation survey,
installation, rollback and attended acceptance checks. Add synthetic
host tests and a private-session-bus libnotify integration test.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Neo check, 2026-10-17: installed and active on the default kernel. The rear port never triggers it (replays of usb1/usb2/1-1 gave 0 hints). All 31 unit tests and the private-D-Bus integration test pass on the Neo against the installed code. A live front-port positive test wasn't possible this boot: the dock (0bda:5423 + DisplayLink) exposed no Billboard device on the front branch, so the notifier correctly sent nothing. The positive path is covered by the integration test. Merging; a live check follows when a DP-alt adapter is on the front port.

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