ProArt DialPad

LiveOpen source · MIT licence

A Rust daemon that turns the ASUS ProArt touchpad's hidden dial into a working Linux input device.

Overview

The ProArt P16's touchpad has a DialPad, a rotary control in the top-left corner that Windows drivers expose and Linux ignores completely. proart-diald unlocks it over I2C with the vendor's command sequence, then grabs the touchpad, tracks touch slots in polar coordinates around the dial, and emits an action every 25 degrees of rotation. Everything outside the dial circle is replayed onto a virtual touchpad, so pointer movement and gestures keep working while the daemon holds an exclusive grab. Profiles are switched with the dial's center button and read from TOML.

Highlights

  • Unlocks the DialPad with a raw I2C write to the touchpad controller, discovered by walking sysfs to find the device's own bus
  • Exclusive evdev grab with full passthrough: every touch outside the dial circle is replayed onto a uinput virtual touchpad, so the rest of the surface behaves normally
  • Multitouch slot tracking in polar coordinates, accumulating wrapped angle deltas and emitting one tick per 25 degrees
  • TOML profiles binding rotation to a key, a key combo, or a shell command, with the center button cycling profiles and firing a notification
  • Unix socket IPC so toggle, profile-next, and status work from a keybind, and status returns Waybar JSON
  • Corner tap and hold activation, so the dial is off until you ask for it and the touchpad is never hijacked by accident