你还可以使用`libinput debug-events`命令来实时监测输入设备的事件流,以便调试和分析输入问题。 除了命令行工具,libinput还提供了一个C语言的API,你可以在你的程序中直接调用这些API来处理输入事件。这些API包括处理设备的初始化、事件的读取和处理等。 总结: 在使用libinput时,首先确保它已经安装并正常工作。然后,...
这里面有一个值很重要Device Node (265): “/dev/input/event10”,后面使用libinput命令行时会用到这个路径。 使用libinput debug-events 监控touchpad事件 ➜~libinput debug-events--device /dev/input/event10-event10 DEVICE_ADDED SynPS/2Synaptics TouchPad seat0defaultgroup1 cap:pg size100x56mm tap(...
3.使用libinput debug-gui 监控touchpad事件 代码语言:javascript 复制 ➜~libinput debug-events--device/dev/input/event10-event10DEVICE_ADDEDSynPS/2Synaptics TouchPad seat0defaultgroup1 cap:pg size 100x56mmtap(dl off)left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on event10GES...
这里面有一个值很重要Device Node (265): "/dev/input/event10",后面使用libinput命令行时会用到这个路径。 使用libinput debug-events 监控touchpad事件 ➜ ~ libinput debug-events --device /dev/input/event10 -event10 DEVICE_ADDED SynPS/2 Synaptics TouchPad seat0 default group1 cap:pg size 100x...
"$gen_dst_dir/tools/libinput-debug-events.c", "$gen_dst_dir/tools/shared.c", "$gen_dst_dir/tools/shared.h", ] branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true debug = false } configs = [ ":libinput-third_config" ] ...
AUTOMATIC STOP/RESTART ON D-BUS EVENTS SUCH AS SUSPEND There are some situations where you may want to automatically stop, start, or restartlibinput-gestures. E.g. some touchpads have a problem which causeslibinput-gestures(actually the underlyinglibinput debug-events) to hang after resuming fr...
A commandline debugging tool:https://gitlab.freedesktop.org/libinput/libinput/tree/master/tools/libinput-debug-events.c A GTK application that draws cursor/touch/tablet positions:https://gitlab.freedesktop.org/libinput/libinput/tree/master/tools/libinput-debug-gui.c ...
libinput_debug_events_sources = [ 'tools/libinput-debug-events.c', libinput_version_h, ] executable('libinput-debug-events', libinput_debug_events_sources, dependencies : deps_tools, include_directories : [includes_src, includes_include], install_dir : libinput_tool_path, inst...
libinput debug-events --seat seat1 should show the events, and likewise your compositor provided it listens to the right seat. > > I don't have libinput record tool, instead tried with evtest and I see > BTN_TOUCH, below is capture from evtest ...
tools: debug-events: install the signal handler before any libinput operations tools: make the tools exit with exit code 2 on usage issues tools: add a test for tool option parsing tools: let debug-events take a device path tools: draw evdev events in the debug-gui ...