Difference between revisions of "QinHeng Electronics Foot Pedal"
From Free Knowledge Base- The DUCK Project: information for everyone
(Created page with "QinHeng Electronics $ ls -l ./by-id|grep e026 lrwxrwxrwx 1 root root 9 Feb 9 15:12 usb-1a86_e026-event-mouse -> ../event9 lrwxrwxrwx 1 root root 6 Feb 9 15:12 usb-1a...") |
|||
Line 17: | Line 17: | ||
Listens to the kernel uevents and events sent out by a udev rule and prints the devpath of the event to the console. It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev | Listens to the kernel uevents and events sent out by a udev rule and prints the devpath of the event to the console. It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev | ||
event. | event. | ||
− | + | ||
-k, --kernel | -k, --kernel | ||
Print the kernel uevents. | Print the kernel uevents. | ||
− | + | ||
-u, --udev | -u, --udev | ||
Print the udev event after the rule processing. | Print the udev event after the rule processing. | ||
− | + | ||
-p, --property | -p, --property | ||
Also print the properties of the event. | Also print the properties of the event. | ||
− | + | ||
-s, --subsystem-match=string[/string] | -s, --subsystem-match=string[/string] | ||
Filter kernel uevents and udev events by subsystem[/devtype]. Only events with a matching subsystem value will pass. | Filter kernel uevents and udev events by subsystem[/devtype]. Only events with a matching subsystem value will pass. | ||
− | + | ||
-t, --tag-match=string | -t, --tag-match=string | ||
Filter udev events by tag. Only udev events with a given tag attached will pass. | Filter udev events by tag. Only udev events with a given tag attached will pass. | ||
+ | |||
+ | derek@lando:~/footswitch-master/footswitch$ footswitch | ||
+ | Usage: footswitch [-123] [-r] [-s <string>] [-S <raw_string>] [-ak <key>] [-m <modifier>] [-b <button>] [-xyw <XYW>] | ||
+ | -r - read all pedals | ||
+ | -1 - program the first pedal | ||
+ | -2 - program the second pedal (default) | ||
+ | -3 - program the third pedal | ||
+ | -s string - append the specified string | ||
+ | -S rstring - append the specified raw string (hex numbers delimited with spaces) | ||
+ | -a key - append the specified key | ||
+ | -k key - write the specified key | ||
+ | -m modifier - ctrl|shift|alt|win | ||
+ | -b button - mouse_left|mouse_middle|mouse_right | ||
+ | -x X - move the mouse cursor horizontally by X pixels | ||
+ | -y Y - move the mouse cursor vertically by Y pixels | ||
+ | -w W - move the mouse wheel by W | ||
+ | |||
+ | You cannot mix -sSa options with -kmbxyw options for one and the same pedal | ||
+ | $ sudo footswitch -r | ||
+ | [switch 1]: a | ||
+ | [switch 2]: b | ||
+ | [switch 3]: c | ||
+ | $ sudo footswitch -1 w | ||
+ | $ sudo footswitch -2 w | ||
+ | $ sudo footswitch -3 w | ||
+ | $ sudo footswitch -r | ||
+ | [switch 1]: unconfigured | ||
+ | [switch 2]: unconfigured | ||
+ | [switch 3]: unconfigured | ||
+ | $ sudo footswitch -1 | ||
+ | $ sudo footswitch -k w | ||
+ | $ wwwwwwwwwwww |
Revision as of 17:26, 21 December 2020
QinHeng Electronics
$ ls -l ./by-id|grep e026
lrwxrwxrwx 1 root root 9 Feb 9 15:12 usb-1a86_e026-event-mouse -> ../event9 lrwxrwxrwx 1 root root 6 Feb 9 15:12 usb-1a86_e026-mouse -> ../js0
$ udevadm monitor --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
udevadm monitor [options] Listens to the kernel uevents and events sent out by a udev rule and prints the devpath of the event to the console. It can be used to analyze the event timing, by comparing the timestamps of the kernel uevent and the udev event. -k, --kernel Print the kernel uevents. -u, --udev Print the udev event after the rule processing. -p, --property Also print the properties of the event. -s, --subsystem-match=string[/string] Filter kernel uevents and udev events by subsystem[/devtype]. Only events with a matching subsystem value will pass. -t, --tag-match=string Filter udev events by tag. Only udev events with a given tag attached will pass.
derek@lando:~/footswitch-master/footswitch$ footswitch Usage: footswitch [-123] [-r] [-s <string>] [-S <raw_string>] [-ak <key>] [-m <modifier>] [-b <button>] [-xyw <XYW>]
-r - read all pedals -1 - program the first pedal -2 - program the second pedal (default) -3 - program the third pedal -s string - append the specified string -S rstring - append the specified raw string (hex numbers delimited with spaces) -a key - append the specified key -k key - write the specified key -m modifier - ctrl|shift|alt|win -b button - mouse_left|mouse_middle|mouse_right -x X - move the mouse cursor horizontally by X pixels -y Y - move the mouse cursor vertically by Y pixels -w W - move the mouse wheel by W
You cannot mix -sSa options with -kmbxyw options for one and the same pedal $ sudo footswitch -r [switch 1]: a [switch 2]: b [switch 3]: c $ sudo footswitch -1 w $ sudo footswitch -2 w $ sudo footswitch -3 w $ sudo footswitch -r [switch 1]: unconfigured [switch 2]: unconfigured [switch 3]: unconfigured $ sudo footswitch -1 $ sudo footswitch -k w $ wwwwwwwwwwww