{"id":1836,"date":"2023-01-08T20:56:09","date_gmt":"2023-01-08T19:56:09","guid":{"rendered":"https:\/\/hannes.enjoys.it\/blog\/?p=1836"},"modified":"2023-01-28T14:58:24","modified_gmt":"2023-01-28T13:58:24","slug":"using-a-tiardey-usb-single-foot-pedal-pcsensor-footswitch-on-linux","status":"publish","type":"post","link":"https:\/\/hannes.enjoys.it\/blog\/2023\/01\/using-a-tiardey-usb-single-foot-pedal-pcsensor-footswitch-on-linux\/","title":{"rendered":"Using a Tiardey USB Single Foot Pedal (PCsensor FootSwitch) on Linux"},"content":{"rendered":"\n<p><small>This post&#8217;s purpose is to link &#8220;Tiardey USB Single Foot Pedal Optical Switch Control One Key Programm Computer Tastatur Maus Game Action HID&#8221; to &#8220;PCsensor&#8221; and the footswitch tool on search engines so others who wonder if the device is easy to use on Linux learn that this is the case. Hope it helps!<\/small><\/p>\n\n\n\n<p>I bought this https:\/\/www.amazon.de\/dp\/B09TQFBS3C which came with a chinese\/manual saying &#8220;FS2007 User Manual&#8221; and also says &#8220;FS2007U1SW (mechanical switch)&#8221; (mine clicks, so I guess it is not the &#8220;FS2007U1IR (silent photoelectric switch)&#8221;. The manual links to pcsensor.com for Windows drivers.<\/p>\n\n\n\n<p>Plugin the device. <code>dmesg<\/code> should show something like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">[Sun Jan 8 20:25:05 2023] usb 1-4: new full-speed USB device number 7 using xhci_hcd<br>[Sun Jan 8 20:25:05 2023] usb 1-4: New USB device found, idVendor=1a86, idProduct=e026, bcdDevice= 0.00<br>[Sun Jan 8 20:25:05 2023] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0<br>[Sun Jan 8 20:25:05 2023] usb 1-4: Product: FootSwitch<br>[Sun Jan 8 20:25:05 2023] usb 1-4: Manufacturer: PCsensor<br>[Sun Jan 8 20:25:06 2023] input: PCsensor FootSwitch Keyboard as \/devices\/pci0000:00\/0000:00:14.0\/usb1\/1-4\/1-4:1.0\/0003:1A86:E026.0001\/input\/input19<br>[Sun Jan 8 20:25:06 2023] input: PCsensor FootSwitch Mouse as \/devices\/pci0000:00\/0000:00:14.0\/usb1\/1-4\/1-4:1.0\/0003:1A86:E026.0001\/input\/input20<br>[Sun Jan 8 20:25:06 2023] input: PCsensor FootSwitch as \/devices\/pci0000:00\/0000:00:14.0\/usb1\/1-4\/1-4:1.0\/0003:1A86:E026.0001\/input\/input21<br>[Sun Jan 8 20:25:06 2023] hid-generic 0003:1A86:E026.0001: input,hidraw0: USB HID v1.11 Keyboard [PCsensor FootSwitch] on usb-0000:00:14.0-4\/input0<br>[Sun Jan 8 20:25:06 2023] input: PCsensor FootSwitch as \/devices\/pci0000:00\/0000:00:14.0\/usb1\/1-4\/1-4:1.1\/0003:1A86:E026.0002\/input\/input22<br>[Sun Jan 8 20:25:06 2023] hid-generic 0003:1A86:E026.0002: input,hidraw1: USB HID v1.10 Device [PCsensor FootSwitch] on usb-0000:00:14.0-4\/input1<br>[Sun Jan 8 20:25:06 2023] usbcore: registered new interface driver usbhid<br>[Sun Jan 8 20:25:06 2023] usbhid: USB HID core driver<br>[Sun Jan 8 20:25:10 2023] usb 1-4: reset full-speed USB device number 7 using xhci_hcd<\/code><\/pre>\n\n\n\n<p>Sweet, so it is just some rebranded PCsensor device.<\/p>\n\n\n\n<p><code>lsusb<\/code> says ID <code>1a86:e026 QinHeng Electronics FootSwitch<\/code> btw.<\/p>\n\n\n\n<p>There is a great little tool for configuring those on Linux: <a href=\"https:\/\/github.com\/rgerganov\/footswitch\">https:\/\/github.com\/rgerganov\/footswitch<\/a><\/p>\n\n\n\n<p><code>footswitch -m ctrl -k 1<\/code> will configure it to send <code>Ctrl+1<\/code> when pressed for example. See the readme for usage and more examples.<\/p>\n\n\n\n<p>You can use more than 3 of these devices via this <a href=\"https:\/\/github.com\/rgerganov\/footswitch\/pull\/68\">pull request<\/a>. I have four connected via a USB hub <code>1a40:0101<\/code> (&#8220;Terminus Technology Inc. Hub (branded &#8220;hama&#8221;), https:\/\/www.amazon.de\/dp\/B08YRZT1RL) and they work just fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post&#8217;s purpose is to link &#8220;Tiardey USB Single Foot Pedal Optical Switch Control One Key Programm Computer Tastatur Maus Game Action HID&#8221; to &#8220;PCsensor&#8221; and the footswitch tool on search engines so others who wonder if the device is easy to use on Linux learn that this is the case. Hope it helps! I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,40],"tags":[],"class_list":["post-1836","post","type-post","status-publish","format-standard","hentry","category-linux","category-small-things"],"_links":{"self":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/comments?post=1836"}],"version-history":[{"count":4,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1836\/revisions"}],"predecessor-version":[{"id":1842,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/posts\/1836\/revisions\/1842"}],"wp:attachment":[{"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/media?parent=1836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/categories?post=1836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hannes.enjoys.it\/blog\/wp-json\/wp\/v2\/tags?post=1836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}