mini-display-for-headless-system-status
Made by JeffTurn a small HDMI/USB-C panel bolted to a headless server into an always-on, auto-starting status dashboard (htop + disk/net), correctly rotated and sized, at a priority that never competes with real work. Use when a mini monitor, bar panel, or spare screen shows the wrong orientation, needs htop/btop on boot, or must survive reboots without stealing CPU. Also use when such a panel goes dark, blank, or unreadably small after a reboot, power loss, or driver change and must recover unattended.
From Jeffrey's Skills.md: professionally crafted skills for any AI agent, installed and kept in sync by the jsm CLI. Subscription only, $20/month.
Works With
Quality and Utility come from canonical skill metadata. Community ratings appear separately as stars when subscriber reviews exist.
Subscribe to download
Public previews are available, but downloads, CLI sync, and premium content require an active subscription.
Sign In to Subscribe- Full skill content with deterministic versioning
- CLI sync + local search index
- Access to Jeffrey’s premium library
Save to your account
Saved skills live in your cloud list. Run jsm sync on each machine to pull them locally.
What's New with this Skill
2Updates, enhancements, and release notes for this skill.
Updated: mini-display-for-headless-system-status, the failures that leave every process healthy and the screen dark
Two panels built with v1 went dark anyway, and v1's own advice caused one of them: it hard-coded a framebuffer index that moves between reboots. The output path fails silently while every process stays healthy and systemd reports active (running). v2 adds OUTPUT-INTEGRITY.md, a watchdog that resolves the framebuffer by driver name and forces connector re-probes, and 76 offline assertions.
- /dev/fbN indices are assigned in driver probe order and move between reboots, so a hard-coded con2fbmap 2 1 command eventually points the console at a framebuffer with no display attached while every process stays healthy. Resolve the framebuffer by driver name at every start.
- Reading a connector's status file returns the kernel's cache rather than probing. A monitor that loses power and returns often raises no hotplug, so a wait loop polls a value nothing refreshes. Observed stuck for 89 minutes with the panel visibly powered on. Write detect to it on an interval.
- The fbset -g command reports success and runs no modeset. fbset -s, the console's row count and a cropped framebuffer screenshot then all agree while the CRTC keeps scanning out the old mode and the panel squashes it into unreadable text. Check the crtc-pos line in debugfs instead.
- A drm.edid_firmware= override added for unrelated work is scoped per connector. If it names the panel's port, the kernel reads a fake EDID and drives the panel at a foreign resolution, which the panel squashes.
- Restart=always is not forever. Five fast failures inside StartLimitIntervalSec leave the unit failed permanently, so a panel meant never to need attention has to set StartLimitIntervalSec=0.
- ananicy-cpp matches a #! script by its interpreter, so a hand-rolled Python status strip is python3 to the daemon and picks up the stock nice 5 rule no matter what the unit says. Give the interpreter a private name via a symlink.
- When the display dies the compositor exits but the tmux server does not: htop and btop keep rendering into a pty nobody reads, measured at 4.3% of a core, indefinitely. Tear the session down before waiting for the output to return.
- A watchdog that backs off its re-probe goes blind. Escalating repairs should stop after five failed rounds; writing detect must not, or a panel dark for five cycles is never looked at again and the monitor can come back unnoticed.
- Read the CRTC state from the connector's own card. Taking whichever /sys/kernel/debug/dri/* directory sorts first compares this panel's native mode against another GPU's active mode, which never matches, so the check fails forever on multi-GPU hardware.
- Writing off and then detect to a connector reproduces the whole power-loss-and-return in software, so recovery is testable without unplugging anything. Run the control arm too, or you cannot tell a repair from a display that came back on its own.
A reboot renumbered /dev/fbN. Indices are handed out in driver probe order, so the NVIDIA framebuffer that was fb1 on build day came up as fb0 and the onboard BMC took fb1. The unit still said con2fbmap 2 1, so the console was mapped onto the server's ASPEED service processor with nothing plugged into it. htop, tmux and the status strip ran perfectly for days, painting into a buffer nobody can see, and systemctl status reported active (running) the whole time. v1 taught that exact bug in two places.
New skill: mini-display-for-headless-system-status, five panels that each needed a different stack
Bolting a small status panel onto a headless server is five separate decisions, each forced by something you measure. The reflex moves fail on real hardware: bar panels are portrait screens mounted sideways, nice -n 19 from a -4 parent lands on 15, and ananicy-cpp reverts your renice within milliseconds of it printing success. Probe first, choose second; five real deployments produced five different correct stacks. 21 files, six layouts, a 51-assertion self-test, and a 0.1% CPU budget.
- Bar panels are usually portrait panels mounted sideways: the wire reports 400x1280 on a screen that is physically wide. Read /sys/class/drm/*/modes before designing anything; the usable geometry is 1280x400, and getting this wrong wastes all the work downstream.
- nice -n 19 in a launcher is relative. From a -4 parent you land on nice 15 and never notice. Use absolute renice, or systemd Nice=.
- ananicy-cpp re-pins by process name and reverts your renice within milliseconds, while renice prints success. Re-read ps -o ni afterward, every time; the verify script waits 20 seconds before checking.
- The CPUQuota= and CPUWeight= settings on a unit with PAMName=login silently do nothing: pam_systemd moves the processes into user.slice and leaves the unit's cgroup empty. Only per-process attributes like Nice= and IOSchedulingClass= survive the move.
- 128 cores cannot have per-core meters on a 16-row panel: htop's AllCPUs8 needs ceil(128/8) = 16 rows, which is the entire screen. A 3-row heat strip shows the distribution instead.
- cage is the smaller kiosk compositor but has no output transform, so it cannot rotate. If you need rotation, use sway or Hyprland; sway on proprietary NVIDIA refuses to start without --unsupported-gpu.
- Converting a TTF Nerd Font to PSF for the console is pointless: PSF caps at 512 glyphs, 1-bit, fixed cell. If you want the font, use a compositor; fbcon is for Terminus.
- The supervisor loop leaks one invisible terminal per compositor restart unless its lifetime is tied to the compositor's PID. The extra terminals stack silently until the box is rebooted.
- Do not trust the %CPU column from ps for the dashboard's cost; it is a lifetime average. measure-cost.sh samples a 20s window. Budget under 0.1% of the machine; the refresh interval dominates the cost, not the priority.
- A shell restart is not a boot test. The gates run after systemctl restart: every component count exactly 1, the log appends rather than truncates, a killed pane respawns. Driver load order and console-font persistence still need a real power cycle.
A mini monitor for server stats is really five decisions: rotate or not, compositor or bare console, which autostart mechanism, what font size, and which priority mechanism, and each one is forced by something you measure rather than assume. scripts/plan.sh runs the probe and the layout math and merges them into an ordered build plan; probe-display-host.sh --verdict-only names the stack, the reference to read, whether rotation is required, and the hazards on that specific host. The verdict distinguishes installed compositors from running ones, because extending what is already there is onl