Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-24-2015, 01:25 PM   #1
LQ Newbie
Registered: Mar 2015
Location: Indianapolis, in
Distribution: currently: Wheezy/Puppy/PCLinux OS
Posts: 1

Rep: Reputation: Disabled
Isolating a second USB keyboard device.

The problem in question is how to make only a secondary USB keyboard device visible to a particular piece of software.

The PC in question is running a CNC machine tool, the OS is Debian Wheezy and the secondary keyboard device is a P.I. engineering Xkeys keyboard emulator. The Xkeys emulator is located in a remote pendent that allows adjustment of the machine's feed, speed, etc.

The problem is that the program that receives and decodes the data from the pendent also receives input from the primary keyboard. This has the potential to cause safety issues under the right (actually, wrong!) circumstances.

Trying to redirect the /dev/input/event file or the /dev/input/by-id/USB-Xkeys-event-kbd works, but also displays any input from the primary keyboard.

The ideal would be to separate the two keyboard inputs, and send the Xkeys input to a com port or a file. Any suggestions? Thanks.
Old 03-24-2015, 05:18 PM   #2
Registered: Mar 2008
Posts: 21,826

Rep: Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610Reputation: 3610
Hello and welcome to LQ.

I'd say that the only safe way is lock out tag out one of the keyboards where no control exists.

Maybe a kvm would accomplish it.

Generally you could blacklist a device maybe. Not sure that would comply with safety??

Split out the 5V on a lock out device?

Last edited by jefro; 03-24-2015 at 05:21 PM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux USB Device Drivers and Linux USB Device Side user space application ashwindeshpande Linux - Embedded & Single-board computer 3 12-12-2014 08:05 AM
Built-in keyboard hub requires manually making configs for every usb device. Fix? Holering Linux - Hardware 1 07-06-2013 07:30 PM
How to know which usb keyboard device file. nithima Linux - Newbie 1 04-27-2010 06:23 AM
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
How to force kernel to use a USB 2.0-compatible device (ehci_hcd) as a USB 1.1 device eze Linux - Hardware 0 05-16-2006 06:24 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration