omarchy hw touchpad misses touchpads named after their model (synaptics-tm3066-002), so toggle touchpad fails
What happened
omarchy toggle touchpad off prints No touchpad device found and exits 1 on a Lenovo Yoga 900-13ISK, although Hyprland lists the touchpad and it works normally.
Why
omarchy-hw-touchpad takes the first Hyprland mouse whose name matches touchpad|trackpad:
hyprctl devices -j | jq -r '[.mice[] | .name | select(test("touchpad|trackpad"; "i"))] | first // empty'
This touchpad is named after its model, synaptics-tm3066-002 (kernel name Synaptics TM3066-002, I2C-HID 06CB:77C6). Nothing in the name says touchpad, so detection comes back empty, and omarchy toggle touchpad, along with anything else that calls omarchy-hw-touchpad, fails.
$ hyprctl devices | sed -n '/^mice:/,/^$/p'
mice:
Mouse at 55a41ada16c0:
synaptics-tm3066-002
udev already classifies the device correctly:
$ udevadm info -q property -n /dev/input/event15 | grep TOUCHPAD
ID_INPUT_TOUCHPAD=1
ID_INPUT_TOUCHPAD_INTEGRATION=internal
Steps to reproduce
- Use a laptop whose touchpad name contains neither "touchpad" nor "trackpad" (here
synaptics-tm3066-002). - Run
omarchy hw touchpad. It prints nothing. - Run
omarchy toggle touchpad off. It printsNo touchpad device foundand exits 1.
Expected
The touchpad is detected and toggled.
Suggested fix
Use udev's classification as well as the name: find input devices tagged ID_INPUT_TOUCHPAD=1 (ideally with ID_INPUT_TOUCHPAD_INTEGRATION=internal), then map each one's kernel name to Hyprland's device name. On this machine, Hyprland's name is the kernel name lowercased, with spaces replaced by -.
System
- Lenovo YOGA 900-13ISK (80MK)
- Intel Core i7-6500U, Intel HD Graphics 520
- Omarchy 4.0.6-1, Hyprland 0.56.2, kernel 7.2.8-9-omarchy
I read the report and checked omarchy-hw-touchpad and its toggle callers on quattro. Commit e1b0e5e9bb72b15dc494458925655bf32656382b adds the udev fallback for devices whose names contain neither “touchpad” nor “trackpad”; the current detector includes that path. I have not tested it on the Yoga 900-13ISK.
Codex High performed the source review. The configured classification reviewer returned no usable class, so classification remains unsettled and verification stopped before running tests. This issue remains open for maintainer review.
This looks fixed on quattro. bin/omarchy-hw-touchpad now falls back to udev when no mouse name contains "touchpad" or "trackpad". It maps each /sys/class/input/event* device's kernel name to Hyprland's form (lowercased, spaces and commas as dashes, with a -N suffix allowed) and takes the mouse whose device has ID_INPUT_TOUCHPAD=1. That's the approach suggested here.
Checked with this report's device: a Hyprland mouse synaptics-tm3066-002, a kernel name Synaptics TM3066-002 and ID_INPUT_TOUCHPAD=1, with stubbed hyprctl/udevadm and a scratch input class tree. The current script prints synaptics-tm3066-002 and exits 0, so omarchy toggle touchpad will find it once that change reaches your channel.
The detection fix is included in v4.5.0 (commit ac2690cd7be4f47e4a255f5e2e78d904d436b068). On a disposable worker, using your reported Synaptics names and udev properties, the actual v4.0.6 detector returned no device; v4.5.0 and current quattro returned synaptics-tm3066-002. Restoring the old detector reproduced the miss. All seven existing detector tests passed. This checks detection logic, not the physical Yoga's disable/enable operation.
Please run omarchy update, check omarchy version, and retry omarchy toggle touchpad off followed by omarchy toggle touchpad on. Please confirm the installed version and whether both operations work. If it still fails, include the output and exit status of omarchy hw touchpad, hyprctl devices -j's mouse list, and the kernel name plus udev properties for the same Synaptics event node. That will distinguish a remaining detection failure from a later toggle failure.
Codex High checked the source and ran the worker tests. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the source and agreed with the software diagnosis; independence is not guaranteed. This issue remains open awaiting your hardware retest.