11# USBDisplayStack
22
3+ English | [ 简体中文] ( README.zh-CN.md )
4+
35USBDisplayStack is a GPL-2.0-only Linux display stack for USB display
46adapters that use vendor-specific transport protocols. Applications render to
57normal framebuffer or DRM/KMS devices; protocol, compression, and USB details
68stay in replaceable userspace backends.
79
810> ** Alpha status:** the virtual DRM/fbdev frontend and userspace frame path are
9- > working on Linux 4.15. The Actions Micro ` 185b:2d1d ` hardware transport is
10- > still experimental and is not enabled by default.
11+ > working on Linux 4.15. The Actions Micro ` 185b:2d1d ` live backend is
12+ > implemented but remains experimental and is not enabled by default.
1113
1214## Architecture
1315
@@ -46,11 +48,15 @@ See [architecture](docs/architecture.md), [ABI](docs/abi.md), and
4648- ` userspace/usb-displayd.c ` : single-consumer frame dispatcher.
4749- ` backends/null ` : diagnostics and throughput testing.
4850- ` backends/ppm ` : writes the latest frame as a PPM image.
51+ - ` backends/actions-micro ` : initialization, heartbeat, FFmpeg H.264, and HID
52+ video transport for Actions Micro ` 185b:2d1d ` .
4953- ` tools/fb-test-pattern ` : writes a color pattern through ` /dev/fbN ` .
5054- ` tools/drm-probe ` : checks connectors and modes using DRM ioctls without
5155 requiring libdrm.
5256- ` tools/actions-micro-replay ` : validates and explicitly replays captured
5357 ` 185b:2d1d ` HID reports for protocol research.
58+ - ` examples/lvgl ` : LVGL 9 applications for fbdev and DRM/KMS.
59+ - ` examples/csharp ` : .NET 8 applications for fbdev and DRM/KMS.
5460
5561## Requirements
5662
@@ -68,11 +74,17 @@ CONFIG_FB_DEFERRED_IO
6874Install the compiler, make, and headers matching the running kernel before
6975building.
7076
77+ The experimental Actions Micro backend requires ` ffmpeg ` built with the
78+ ` libx264 ` encoder. The optional examples require LVGL 9/libdrm or .NET 8 as
79+ described in their local READMEs.
80+
7181## Build
7282
7383``` bash
7484make userspace
7585make module
86+ # Optional, when LVGL 9 and libdrm development files are installed:
87+ make examples-lvgl
7688```
7789
7890The userspace binaries are written to ` build/ ` ; the module is
@@ -101,6 +113,24 @@ sudo rmmod usbdisplay
101113Do not assume the secondary nodes are always numbered ` 1 ` ; discover them by
102114the ` usbdisplay ` framebuffer name and DRM driver name in production scripts.
103115
116+ ## Application examples
117+
118+ Run only one producer at a time. Both LVGL examples render the same dashboard:
119+
120+ ``` bash
121+ make -C examples/lvgl
122+ sudo build/examples/lvgl-fbdev-example /dev/fb1
123+ sudo build/examples/lvgl-drm-example /dev/dri/card1
124+ ```
125+
126+ The C# examples render animated XRGB8888 patterns and refuse devices that are
127+ not owned by USBDisplayStack:
128+
129+ ``` bash
130+ dotnet run --project examples/csharp/Fbdev -- /dev/fb1
131+ dotnet run --project examples/csharp/Drm -- /dev/dri/card1
132+ ```
133+
104134## Install
105135
106136` scripts/install.sh ` installs the module built for the running kernel,
@@ -115,12 +145,32 @@ sudo systemctl enable --now usb-displayd.service
115145Set the virtual resolution in ` /etc/modprobe.d/usbdisplay.conf ` and select a
116146backend in ` /etc/default/usb-displayd ` before enabling the service.
117147
148+ ## Actions Micro activation
149+
150+ The live backend requires an authorized ` DPRPL001 ` replay template containing
151+ the adapter's initialization and heartbeat commands. Captured video is ignored
152+ by default; ` bootstrap=full ` explicitly sends it once on firmware that requires
153+ a full captured stream to leave its waiting page. Replay data is never
154+ distributed by this project. Configure the reference adapter with:
155+
156+ ``` text
157+ USBDISPLAY_BACKEND=/usr/lib/usbdisplay/usbdisplay-actions-micro.so
158+ USBDISPLAY_BACKEND_ARGS=--backend-option template=/var/lib/usbdisplay/actions-micro.replay,bootstrap=full
159+ ```
160+
161+ The backend discovers and verifies both ` 185b:2d1d ` hidraw interfaces, sends
162+ initialization, maintains heartbeats while idle, and converts new fbdev or DRM
163+ frames into baseline H.264 and vendor HID reports. With the module and service
164+ running, an LVGL write to the USBDisplayStack framebuffer automatically enters
165+ that pipeline. See [ Actions Micro 185b:2d1d] ( docs/actions-micro-185b-2d1d.md )
166+ for options and current validation limits.
167+
118168## Experimental hardware work
119169
120- The Actions Micro research notes and replay safety rules are documented in
121- [ Actions Micro 185b:2d1d ] ( docs/actions-micro-185b-2d1d.md ) . Captured Windows
122- output has displayed successfully, but this does not yet prove that live
123- frames generated by USBDisplayStack are accepted by the device .
170+ The Actions Micro research notes and replay safety rules are documented in the
171+ link above. Both captured Windows output and live generated LVGL output have
172+ displayed successfully on the reference unit. The backend remains experimental
173+ until repeated reconnect and long-running tests are complete .
124174
125175## License
126176
0 commit comments