carbonian.org / manual pages
CARBONIAN-LINKD(1) Carbonian Manual CARBONIAN-LINKD(1)

carbonian-linkd - the USB cable to Android devices

carbonian-linkd [--socket PATH] [--no-usb]

Owns the USB cable to the Android phones and tablets that run the Carbonian app (Carbonian Link, package org.carbonian.screen). A device plugged in is switched into accessory mode (the Android Open Accessory protocol: no adb, no USB debugging, no tethering, no network); when the app on it answers it is up, and clients talk to it on a Unix socket. The bus tells when a device comes or goes (libusb hotplug): nothing is polled, and at rest the daemon sleeps.

A device whose app does not answer is tried again after a wait that grows. The user needs access to the USB device (the udev rule 70-carbonian-link.rules).

$XDG_RUNTIME_DIR/carbonian/link.sock (mode 600), one line protocol; a connection is one thing:

The devices up: device ID MODEL WxH caps=... codecs=... key=..., then end.
The devices now as up ..., then up ... and down ID as they come and go.
Send LINE on the control channel and return the device's answer, to end (hello, info, size, codec, touch, ...).
Answers ok, then the picture messages the client writes go to the device.
The lines the device says on its own: t (touch), k (a button), s (a sensor), b (battery).
Switches the thing on on the device for as long as the connection lives and sends its lines. Reference counted: on for the first client, the rate follows who is left, off when the last leaves.

carbonian-device(1), carbonian-screen(1)

November 2026 Carbonian