TOUCHPAD-EDGE-DETECTOR(1)

✨ touchpad-edge-detector(1) ✨

okay bestie, welcome to the General Commands Manual page for touchpad-edge-detector and lemme tell you, this little tool is everything πŸ’–


🌸 NAME 🌸

touchpad-edge-detector β€” prints the axis ranges for a touchpad device πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

touchpad-edge-detector [--help] WxH /dev/input/eventX

πŸ’… DESCRIPTION πŸ’…

so basically, touchpad-edge-detector sits there reading touchpad events straight from the kernel and keeps track of the minimum and maximum coordinates as you move your finger around. it's an interactive tool, meaning you have to do the work, bestie β€” drag that finger all over the touchpad and genuinely try to trigger an event at every single edge. like, all of them. no skipping. 😀

to stop collecting events and get the summary printed, hit Ctrl+C. and ngl, the recommendation is to run this thing several times so you actually get a reliable result. one run is giving "first draft" energy, we want the final version. ✨


πŸŽ€ OPTIONS πŸŽ€

  • WxH β€” the width and height of your touchpad, in mm</> (millimeters, queen). so for a touchpad that's 100mm wide and 75mm high, you'd pass 100x75. this one is required, no cap. 🫢
  • /dev/input/eventX β€” the event node of the touchpad you want to read events from. wanna find your options? you can get a list of possible event nodes with any one of these commands: libinput record, evemu-record, or evtest. alternatively, the event node for a device is listed in the Handlers= line of /proc/bus/input/devices. also required, periodt. πŸ’–
  • --help β€” prints a short help description. cute, quick, iconic. πŸ‘‘

πŸ“ NOTES πŸ“

when it's done, this tool prints out a summary of all the events it collected plus a suggested udev rule. the tea here is: because of rounding errors, it's rare to get an exact match for your touchpad's actual dimensions. that's just how it is. but if the discrepancy is more than 5mm, you should fix it with that suggested udev rule. don't ignore it. πŸ’€

and listen β€” that udev rule should be simplified and then submitted as a pull request to the system repository over at https://github.com/systemd/systemd. if you want further guidance (and honestly, you probably do), go look at the file /usr/lib/udev/hwdb.d/60-evdev.hwdb. it's giving homework but it's worth it. πŸ™ˆ


🌈 SEE ALSO 🌈


k bye bestie, that's the whole page πŸŽ€ this was touchpad-edge-detector(1) from the General Commands Manual β€” go measure those edges, slay, and remember: several runs or it doesn't count. mwah πŸ’œβœ¨