Overview
A Rust daemon that unlocks the ASUS ProArt touchpad's DialPad over I2C and turns rotation into keys, combos, or shell commands on Linux.
proart-diald makes the ASUS ProArt P16's DialPad work on Linux.
The DialPad is the rotary control printed in the top-left corner of the touchpad. On Windows it scrolls, zooms, and switches tools. On Linux it does nothing at all, because the hardware ships it locked and no driver ever asks for it.
This daemon unlocks it, reads rotation off the touchpad's raw multitouch stream, and turns each tick into a keypress, a key combination, or a shell command. The rest of the touchpad keeps working normally the whole time.
How it works
There are four steps, and each one solves a distinct problem.
1. Find the touchpad and its bus. The daemon scans sysfs for a device whose name contains "touchpad". It then canonicalizes that device's symlink to pull the I2C bus number out of the path. Nothing is hardcoded to one machine's numbering.
2. Unlock the dial over I2C. The DialPad answers a vendor command sequence written directly to the touchpad controller. It's an unlock byte, then an activate byte, inside a thirteen byte frame. An ioctl claims the I2C address, and it falls back to the forcing variant when the kernel's own HID driver already holds that address.
3. Grab the touchpad, then give it back. The daemon takes an exclusive evdev grab, so the dial's circular swipes never reach the desktop as pointer movement.
Everything outside the dial circle is replayed onto a uinput virtual touchpad, cloned from the real device's capabilities. Two finger scroll, tap to click, and gestures all behave exactly as before.
4. Turn touches into ticks. Active multitouch slots are converted to polar coordinates around the dial's centre. Angle deltas are unwrapped across the 360 degree boundary and accumulated. Every 25 degrees emits one tick, clockwise or counter clockwise, which works out to roughly fourteen actions per full revolution.
Inside the centre button radius, a touch counts as a press rather than as rotation.
Profiles
Rotation means whatever the active profile says it means. The centre button cycles profiles and fires a desktop notification, so you can see which one you landed on.
threshold_degrees = 25.0
profiles = ["Scroll", "Tabs", "Zoom"]
[actions.Scroll]
clockwise = { key = "ScrollDown" }
counter_clockwise = { key = "ScrollUp" }
center = { action = "next_profile" }
[actions.Tabs]
clockwise = { combo = ["Ctrl", "Tab"] }
counter_clockwise = { combo = ["Ctrl", "Shift", "Tab"] }
center = { action = "next_profile" }
Four action types are available.
| Type | Example | Does |
|---|---|---|
key | { key = "VolumeUp" } | A single key or scroll event |
combo | { combo = ["Ctrl", "Tab"] } | A modifier plus key chord |
command | { command = "pactl set-sink-volume @DEFAULT_SINK@ +5%" } | Any shell command |
action | { action = "next_profile" } | Daemon control: next_profile, prev_profile, disable |
Activation
The dial starts off. A tap and hold in the top-left corner for 800 milliseconds turns it on. The same corner turns it back off, and so does the CLI.
This matters because the touchpad should never be quietly hijacked. You ask for the dial, and until you do, the hardware behaves the way you expect.
The activation box and the dial geometry are all configuration values. That's also how you would retune this for a different ProArt model.
circle_center_x = 586
circle_center_y = 573
circle_radius = 460
center_button_radius = 182
activation_hold_ms = 800
CLI and status bars
A Unix socket carries commands to the running daemon, so a keybind can drive it.
proart-diald toggle # dial mode on or off
proart-diald profile-next # cycle profiles
proart-diald status # JSON, shaped for a status bar
The status command emits Waybar's JSON format directly.
"custom/proart": {
"exec": "proart-diald status",
"return-type": "json",
"interval": 2,
"on-click": "proart-diald toggle",
"on-scroll-up": "proart-diald profile-next"
}
Install
cargo build --release
sudo ./setup.sh
The setup script does five things. It installs the binary to /usr/local/bin. It creates the uinput and i2c groups and adds you to them. It writes a udev rule making /dev/uinput and the I2C buses group writable. It loads the i2c-dev module at boot. And it installs a user systemd unit.
systemctl --user enable --now proart-diald
Log out and back in after the first run, so that the new group memberships take effect.
Status and caveats
This is early software, and there are three things worth knowing before you rely on it.
The geometry defaults are measured on a ProArt P16, model H7606WV. Other models will need their own numbers.
The I2C sequence is the vendor's, recovered by observation rather than from documentation. It's specific to this touchpad controller.
The daemon holds an exclusive grab while it runs, which means a crash takes the touchpad with it until systemd restarts the unit.