Skip to content

About

Linux driver + web UI for Valkyrie B360V3/B360GT AIO displays

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Valkyrie Ctrl

Control Valkyrie AIO cooler displays from Linux. A daemon with a web UI and a small CLI stream images, GIFs, text overlays, clocks, and live CPU/GPU temperatures to the cooler's LCD. No root required.

Supported hardware

Model Panel VID:PID VIC
Valkyrie B360V3 320x240 345f:9132 148
Valkyrie B360GT 480x480 345f:9132 143

Both models share the same VID:PID. The daemon auto-detects the panel from the flash serial: an SN containing 480 means B360GT, *0240 means B360V3. Force it with --panel B360V3|B360GT.

Features

  • Web UI at http://localhost:8686 with a live preview rendered by the same code path that drives the LCD, so the preview matches the panel
  • Image/GIF upload with native GIF timing, text overlays (font, size, color), clock, and hwmon CPU/GPU temperatures; all components are draggable on the preview
  • Scenes persist to ~/.config/valkyrie-ctrl/scene.json and restore on daemon or machine boot
  • Dark, light, and Catppuccin Mocha themes
  • CLI for quick single-image streaming

Install

Python 3.10+ and libusb are required.

python3 -m venv venv
./venv/bin/pip install -r requirements.txt

USB access for your user (no root):

sudo cp 70-valkyrie.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && sudo udevadm trigger
sudo usermod -aG plugdev $USER     # then log out/in (or use an existing group)

Run

Manual:

./venv/bin/python3 aio_server.py
# open http://localhost:8686

As a systemd user service (starts on boot, restores your scene):

mkdir -p ~/.config/systemd/user
cp aio-daemon.service ~/.config/systemd/user/
# edit the ExecStart path in the unit if your checkout lives elsewhere
systemctl --user daemon-reload
systemctl --user enable --now aio-daemon
journalctl --user -u aio-daemon -f

CLI:

./venv/bin/python3 valkyrie-ctrl.py photo.png
./venv/bin/python3 valkyrie-ctrl.py --panel B360GT photo.png

Hosted UI

A hosted copy is live at https://lyricalfrog3.github.io/valkyrie-ctrl/ (GitHub Pages, served from docs/). Open it on any machine running the daemon; it connects to the local 127.0.0.1:8686 automatically, since browsers allow ws://127.0.0.1 from HTTPS pages. No tunnel or server needed.

Hosting it yourself is the same: web/ is a static page, so deploy it anywhere (GitHub Pages, Vercel, Netlify, a VPS).

If you host it on a custom domain, allow that origin on the daemon:

./venv/bin/python3 aio_server.py --origins https://your-host.example

The daemon only binds 127.0.0.1 and has no authentication. Keep it that way.

Architecture

File Purpose
aio_driver.py USB driver: startup sequence, UYVY encode, frame framing, panel detection
aio_render.py Scene rendering (PIL): backgrounds, text, clock, temps, GIF decoding, hwmon reads
aio_server.py Daemon: web UI + WebSocket on 127.0.0.1:8686, streaming loop, persistence
web/ The web UI (static: index.html, style.css, app.js)
docs/ Copy of the UI served by GitHub Pages
valkyrie-ctrl.py CLI wrapper around aio_driver
70-valkyrie.rules udev rules for non-root USB access
aio-daemon.service systemd user unit

The frame transport is documented in VALKYRIE_B360V3_DISPLAY_PROTOCOL.md, verified against a real capture of the vendor software.

Credits

  • Fakinvisibility/b360gt-driver: driver for the sibling B360GT only. Its startup sequence and UYVY encode informed this project. We do not own a B360GT, so that panel support here is untested.
  • bambinounos/ms91xx-linux-drm: official MacroSilicon MS9132 source. Source of the FF-rect frame header, register maps, and URB/ZLP behavior.
  • Include-sys/msdisp-drm: second MS9132 driver. Additional transport and register details.

The B360V3 protocol was documented by decompiling the vendor software (MythCool) and verified with a USBPcap capture of its USB traffic on real hardware.

License

MIT. See LICENSE.

About

Linux driver + web UI for Valkyrie B360V3/B360GT AIO displays

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages