Sponsored Content
Top Forums Programming Read 1 of 2 keyboards connected Post 302981758 by wisecracker on Monday 19th of September 2016 04:28:56 AM
Old 09-19-2016
Quote:
Originally Posted by SerKan
I have my normal keyboard and also I have this barcode reader that enter text like a keyboard.

What I want is to read the text from the scanner in asynchronous mode and avoid this one mess with the real keyboard input that I want to let work as usual.

Why this thing has to be so complicated?
I don't think we have to deal with interrupts and all of that. It would need to be done in the unix way, by just reading files.
Erm, now I am confused.
Your OP -
Quote:
I want to make work the following setup:
2 usb keyboards connected to a normal x86
One keyboard working as usual in xorg, but I need that the other one doesn't send anything to xorg but instead I want to process its keystrokes with some kind of background process.
- so now you don't want 2 keyboards but a USB barcode scanner instead!?
The barcode scanner will probably have its own device _name_ inside the '/dev' drawer.
You will still need to know its protocol to extract the relevant data. You will have to research that part yourself.
To see the data coming from the barcode scanner you can start by using cat /dev/barcode_scanner_devicename but this might hang or do nothing as the I/O might just be another section in the '/dev' drawer; see post #6...

As I don't have a barcode scanner to test with then my reply has to be limited.
This User Gave Thanks to wisecracker For This Post:
 

10 More Discussions You Might Find Interesting

1. AIX

How can I get Information about who is connected???

Hello, I'm new here and I come from Germany. At our AIX-ORACLE-System someone has deleted one important file and we'd like to find out who did this, next time. Is there any command to find out who is connected? I'm not trying to find out if it's root, etc., I'd like to get the DNS-Name or... (3 Replies)
Discussion started by: Huch
3 Replies

2. Programming

Connected or not connected !

Hello ! I've got a question . I really don't het this point. Let's supose that I have a client connected to a server. I want the server IMEDIATLY know if the client is diconnected . How can I realize this ? :mad: Amd I'm just curios about one thing. I have a server and multiple clients... (3 Replies)
Discussion started by: !_30
3 Replies

3. IP Networking

check whether connected to network

hi... can anyone pls suggest a few methods to check whether a computer is connected to any network, using the terminal, not GUI. thanks eskay (1 Reply)
Discussion started by: eskay_karthik
1 Replies

4. UNIX for Advanced & Expert Users

linux connected to as400

we have a as400 5rev4 and want to use a rhel server to use as a file server. We exported a drive on the rhel box and then mounted it on the as400. We can see the top directory in our mounted as400 directory but when we attempt access subdirectories we get a no matching object error. When we open... (2 Replies)
Discussion started by: javagair
2 Replies

5. AIX

How do I know to which storage I am connected

Hello everyone. We have a environment where we have DS8K storage and ES800 storage, the way to check to which storage the box is connected is using the LUN ID I get frm " pcmpath query device " command. for ex: 75CXX - DS8K storage 26860 - ES 800 Storage I was told to check... (4 Replies)
Discussion started by: nivaspIND
4 Replies

6. IP Networking

Am I Connected?

Be Gentle folks, I am a baby OpenSuSe 11.2 user :-) In windows Vista, there is a world in the systray when you are Internet connected and not just local. I have searched all over for a .RPM for the Network Manager or another packeg in Suse that can show me the same thing or something close. ... (0 Replies)
Discussion started by: donmaxwelliii
0 Replies

7. UNIX for Dummies Questions & Answers

Non Internet connected distribution

Hi all I've been a Debian user since solidly since about 1997 so I'm fairly experienced Linux user as a whole but unfortunately the monoculture has hit be hard recently. I'm working off a Laptop a lot of the time which spends up to 2-4 weeks without an Internet connection. A few weeks ago it... (1 Reply)
Discussion started by: pointyhat
1 Replies

8. UNIX for Dummies Questions & Answers

Ftp showing connected only

hi, good morning. Anyone can help me out. A trying to ftp from server A to server B. from server A to B its working fine but from server B to A, its only showing connected only: finap7 #ftp 10.10.10.210 Connected to 10.10.10.210. I refresh the inetd but nothing is happening. Please... (1 Reply)
Discussion started by: kamaldev
1 Replies

9. OS X (Apple)

How to see connected macs through terminal?

Been a while since I've been here; I have my iMac and MBpro connected via firewire, and they can see each other when I open the finder windows. But I'd like to be able to 'see' each computer on the other via the terminal application; and I can't see them right now. I can transfer files via the... (0 Replies)
Discussion started by: Straitsfan
0 Replies

10. IP Networking

Connected to IANA anyway, why?

May someone can answer this. Anytime I ignite my laptop to go online I see via etherape that I am connected to IANA as shown below. Is my provider redirecting me there, the cable under the sea, what is the reason for this? This happened with a pretty normal desktop PC, as well with my ancient... (2 Replies)
Discussion started by: 1in10
2 Replies
kmflcomp(1)						      General Commands Manual						       kmflcomp(1)

NAME
kmflcomp - keyboard mapping for linux compiler SYNOPSIS
kmflcomp -v kmflcomp [-d] [-f] [-V] keyboardfile kmflcomp -h DESCRIPTION
KMFL is a keyboard input method project which brings Tavultesoft Keyman functionality to *nix operating systems. kmflcomp is the keyboard compiler and syntax checker for the kmfl project. The files created by kmflcomp can be loaded by the kmfl libraries to provide input methods to clients. Note that the kmfl libraries now have the capability to compile kmfl keyboards on the fly so kmflcomp is no longer strictly necessary. The most useful part of kmflcomp is its kmfl keyboard syntax checking. OPTIONS
-d Output debugging information -f Force compilation even if there are errors found in the keyboard file -h Print this help message -V Be more verbose in kmfcomp's information messages -v Print program version SEE ALSO
The full documentation for kmflcomp can be found on the kmfl website (kmfl.sourceforge.net). This includes documentation for the kmfl lan- guage syntax, useful for creating new keyboards, or modifying existing keyboards. AUTHORS
KMFL was developed jointly by SIL international(www.sil.org) and Tavultesoft(www.tavultesoft.com). The primary authors are John Durdin and Doug Rintoul. kmflcomp 0.9.8 February 2009 kmflcomp(1)
All times are GMT -4. The time now is 11:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy