Skip to content

Hardware and cabling ​

AudioX runs a custom Raspberry Pi image with USB audio and USB networking. Analog inputs, outputs, and other peripherals depend on the audio hardware you connect; the software image does not provide microphone preamps or phantom power.

Board status ​

BoardRepository statusBuild defaults
Raspberry Pi 4 Model BHardware-tested target; not a claim that every peripheral or host combination is testedmake pi4_defconfig (also make defconfig), kernel8.img, fe980000.usb, vc4-kms-v3d-pi4
Raspberry Pi 5Hardware-tested target; framebuffer UI remains untested with a connected displaymake pi5_defconfig, kernel_2712.img, 1000480000.usb, vc4-kms-v3d-pi5
Other Raspberry Pi models/Compute ModulesNo matching board preset or release path documented hereDo not assume the Pi 4 image is compatible

The kernel, device trees, firmware, overlays, USB controller, and modules must match the board. Pi 5's preset is not simply a faster Pi 4 preset: it uses different boot/display/controller defaults. Do not rename a Pi 4 download to make it look like a Pi 5 build.

Host compatibility depends on its USB networking, audio, and MIDI support. Physical enumeration, multichannel audio, and host volume behavior require hardware checks; host tests and QEMU do not establish them.

Power and port roles ​

The build configures dwc2 in peripheral mode and binds a composite USB gadget. Use the Pi's USB-C connection for the intended host-facing data link, rather than trying to connect a computer to one of the Pi's USB-A host ports.

Over that one data link AudioX can expose:

  • Bidirectional USB Audio Class 2 audio.
  • USB NCM networking for the browser UI, DHCP/DNS, and mDNS.
  • Optional USB MIDI passthrough.
  • Optional HID keyboard output for keyboard macros.

MIDI and keyboard functions are disabled unless configured. See Config, MIDI, and Scripts.

The Pi 5 USB device path has been tested on hardware. Use the board-matched preset and a suitable power/data arrangement; this does not establish compatibility with every cable, hub, or power supply.

Use a data-capable cable. Charge-only cables can power a board while leaving both audio and the network absent. A cable/adapter must support the host/device connection, not just fit mechanically. Do not use USB-A-to-USB-A cables to join the two machines' host ports.

Power is a separate engineering requirement ​

The USB-C connection is also a power connection. AudioX does not make an arbitrary laptop port an adequate Pi power source. Allow for the board, display, USB audio interface, MIDI controller, and other peripherals when choosing power.

  • Use a power supply and power/data arrangement appropriate to the exact Pi model.
  • Do not assume any USB hub injects power into the device-side Pi connection or safely combines two supplies.
  • Do not improvise a Y cable or connect competing power sources without a documented, safe hardware arrangement.
  • Power off before changing internal ribbon cables, GPIO wiring, or the SD card.
  • Keep power and the USB data connection stable throughout an update. A browser reconnect message is not permission to unplug.

Follow the board and peripheral manufacturers' electrical instructions. This guide does not specify a universally validated powered-hub, USB-C splitter, or GPIO power-injection design.

USB-A: attach peripherals to the Pi ​

The Pi's USB-A ports are host ports for devices such as a USB audio interface, MIDI controller, or USB touch input. These are distinct from the host-facing gadget connection.

The runtime includes ALSA USB audio/raw-MIDI support and rediscovers devices, but a module in the build is not a tested-device compatibility list. Check the Routing graph after plugging in an interface; its channels, names, and supported formats may differ from another interface.

Use powered peripherals or an appropriate powered hub when required. Begin with a minimal setup, then add one device at a time so power, enumeration, and audio problems can be separated.

Audio connectors ​

Microphones, instruments, speakers, and headphones require suitable audio hardware and levels. The software does not turn a GPIO pin or an unspecified board connector into a protected analog input, nor supply microphone phantom power.

Do not assume built-in analog or HDMI audio has a preconfigured AudioX route just because a connector exists on the board. Discover the endpoints the running build actually exposes and route them explicitly. Start with low monitoring levels, check Volume, and avoid feeding an output back into its own input.

Ethernet and Wi-Fi ​

The normal control path implemented here is the USB NCM gadget, not the physical Ethernet jack. The runtime configures usb0; the stock configuration has no documented Ethernet DHCP-client or Wi-Fi provisioning workflow. The board's presence of Ethernet/Wi-Fi hardware is not a promise that those interfaces are usable in this image. See Networking.

Display and touch ​

A display is optional: audio, MIDI, and the Web UI continue running headlessly.

  • For HDMI, use the board's display connector and a suitable cable; the Pi 4/5 display connectors are micro-HDMI, not full-size HDMI.
  • HDMI video alone does not provide touch input. A touch display may need a separate USB touch connection and its own power.
  • For a DSI panel, use the cable/adapter appropriate to the board and panel. Pi 4 and Pi 5 camera/display ribbon connectors are not interchangeable without the correct cable.
  • Connect ribbons only with power removed. Follow the panel's orientation, latch, and power instructions.

The build ships the kernel's DRM display, panel, bridge, backlight, fbdev/SPI display, I²C/SPI bus, and touchscreen (I²C, SPI, USB HID multitouch) driver families. They are not loaded unconditionally: at boot and on every hotplug AudioX matches each device's modalias against the shipped modules (as udev does) and loads only the drivers for the hardware that is present.

Both boards always use full KMS (vc4-kms-v3d-pi4 / vc4-kms-v3d-pi5, chosen by board); FKMS is not supported. HDMI audio is disabled (noaudio), so HDMI ports do not appear as audio devices; use a USB audio interface for output. config.txt sets display_auto_detect=1 so the firmware loads the overlay for a detected official DSI panel (Touch Display 1 and 2 and their variants); those overlays are included in the boot files. An optional CONFIG_DSI_TOUCH_OVERLAY (for example vc4-kms-dsi-7inch) can name a panel overlay explicitly instead; its default is empty. Third-party DSI/DPI/SPI panels need their overlay named in CONFIG_DSI_TOUCH_OVERLAY (it is copied to the boot partition and added to config.txt; automatic detection is then disabled). HDMI monitors and USB touchscreens need no overlay. Inclusion of a driver or automatic detection does not certify every panel.

Headless and reconnect behavior ​

The local UI drives one KMS output directly (DRM master, double-buffered page flips). It picks a connected built-in panel (DSI, DPI, SPI, LVDS) first, then an external monitor (HDMI, DP, DVI), and uses the preferred mode up to 1920×1200. Kernel DRM hotplug events trigger an immediate re-check; otherwise the cached connector state is checked at roughly 500 ms intervals. On display loss it releases display resources, suspends touch scanning, cancels gestures, and releases a sound held by touch. It moves to another connected output, or reopens the display when it returns, without restarting audio. During boot it waits up to three seconds for the KMS driver to replace the firmware's boot framebuffer.

Displays without a KMS driver fall back to a framebuffer device (/dev/fb*). There, cable-loss detection depends on the driver: on non-DRM panels a still-present framebuffer may not reveal that the physical cable is absent.

The touch device is the best direct-input (touchscreen) device found; touchpads, tablets and game controllers are ignored. Its coordinates are scaled from the digitizer's range to the display size. Rotation and calibration are left to the driver/overlay.

DSI and DPI panels are not hot-pluggable; they must be connected and powered at boot, and a panel that loses power while running needs a reboot. Physical HDMI reconnect behavior on Pi 5 still needs target-side validation.

Hardware health and the Pi 5 power button ​

The System page reports Raspberry Pi firmware undervoltage, throttling, and soft-temperature-limit flags when the firmware mailbox is available. The firmware's generic throttled bit does not identify its cause (it can include undervoltage), so it must not be presented as proof of thermal throttling. The separate soft-temperature-limit bit is thermal-specific. Current is the live flag; since boot records whether firmware has observed the condition since startup. An unsupported or unavailable result is distinct from a clear (false) flag and must not be interpreted as a healthy reading. The API exposes throttling (generic bit), soft_temperature_limit (thermal bit), and thermal_throttling as a compatibility summary that is true if either bit is set. The compatibility summary does not identify cause.

Pi 5 fan telemetry is read from the running pwm-fan hwmon/cooling interfaces. The driver, fan RPM, PWM output, and cooling-device state are reported independently because not every fan setup exposes tachometer feedback. The shipped Pi 5 device tree declares an RPM regmap for its onboard fan; telemetry still reports RPM only if the running driver actually publishes fan1_input. A stall warning is only raised when RPM feedback exists, cooling is requested, and zero RPM persists for at least 15 seconds. module_status reports whether pwm_fan is loaded; device_status reports whether hwmon or thermal cooling interfaces for a fan are bound.

The managed curve saved in /boot/config.txt is compared with the loaded Pi 5 device-tree fan thresholds and cooling levels. The active curve describes the configuration loaded at boot, not the current cooling state. If either curve cannot be read (for example, because the fan node is disabled or the driver is unavailable), its status says so and the comparison is null; a saved curve alone is not evidence that the same curve is active.

On Raspberry Pi 5, a press of the onboard power key requests a normal system power-off through the kernel power-off path. The framebuffer displays “Shutting down…” before the same sync-and-power-off sequence used by the System shutdown action. Do not remove external power until shutdown has completed. This input relies on the shipped gpio-keys module and built-in evdev driver; other boards and environments without a KEY_POWER input do not get this physical-button behavior.

A safe bring-up sequence ​

  1. Flash the matching image as described in Getting started.
  2. With power off, insert the card and connect any required display/touch wiring.
  3. Establish suitable power and the USB-C data link to the host.
  4. Check the NCM network and open the Web UI before adding audio/MIDI peripherals.
  5. Add one peripheral, wait for discovery, then inspect Routing or MIDI.
  6. Test a simple audio route quietly before adding effects or increasing gain.
  7. Save settings, create a configuration backup, and use System shutdown before removing power.

If a device does not enumerate, check the data cable, port, and power before changing firmware. If it disconnects under load, collect System logs and note the connected hardware and power arrangement.

Serial diagnostics ​

Advanced kernel-fault investigation can use a 3.3 V UART adapter, never RS-232 or 5 V signaling. Connect ground and the selected Pi UART TX to the adapter RX; do not connect the adapter's power pin. Confirm the UART/pins for the board and Bluetooth overlay before wiring.

The normal command line uses framebuffer consoles. Serial logging requires an appropriate console option, normally console=serial0,115200, while preserving the single-line command line and rdinit=/init. On the Pi 4, Bluetooth keeps the PL011 UART, so serial0 (GPIO 14/15) is the mini UART. The optional CONFIG_BT_MINIUART setting swaps them, but it drops incoming Bluetooth audio packets and is not recommended. Pi 5 has different UART defaults. This is diagnostic work, not a guaranteed login shell. See Troubleshooting and Development before modifying boot files.

AudioX is open source and under active development.