09-20-2004
It would help if you would tell us which unix you are using. The only usbkvm manpage I find is
here, and when I read the man page, I see:
open("/dev/kbd", O_RDWR)
and I would expect this module to be autopushed anyway. Be sure that you're open the right device. And run autopush on that device to be sure that the module really needs an explicit push.
I sorta doubt that a keyboard module will handle a bar code reader anyway. But I've never worked with this stuff, so who knows...
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
How can you pull up a list of print drivers loaded at the Unix level? I am trying to get an HP LaserJet 2300 using the PCL5e driver to print barcode labels. I believe the PCL5e driver needs to be loaded somewhere at the Unix level but am at a loss as to where. Thanks (2 Replies)
Discussion started by: llepley
2 Replies
2. Linux
Hi Everyone,
I am using 2.6.26.3-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard.
It is detected as "/dev/input/event0".
I don't know how to detect key press events and read the keys?
Why can't I read the keys using scanf() like funtions?
... (7 Replies)
Discussion started by: siva4ever
7 Replies
3. Solaris
I have a serial barcode reader which I attached to my Solaris 10 workstation. I can see the barcode scanned data appearing when I do a tip hardwire.
Question is how can I enable the data to appear in command prompt or any text editor programs?
Thanks for the help (3 Replies)
Discussion started by: timtan169
3 Replies
4. UNIX for Dummies Questions & Answers
Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive.
Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies
5. What is on Your Mind?
QR Code Generator (0 Replies)
Discussion started by: Neo
0 Replies
6. What is on Your Mind?
I bought a Sony PRS-650 Reader to read books and I'm loving it.
For one thing, there are zillions of free books in epub format available for download for free. Many of them are out of print, so you would have to pay a high price to get a printed copy. Most current releases have to be paid for,... (15 Replies)
Discussion started by: KenJackson
15 Replies
7. Ubuntu
hi all:
as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have read/write permission when the aotu mounted usb flash disk pluge in ? thanks !! (0 Replies)
Discussion started by: arnold.king
0 Replies
8. Ubuntu
Hello,
I'm facing some problems with a barcode scanner from Cygnal Inc, model Sweda SL-20. Info from lsusb -v:
Bus 003 Device 003: ID 10c4:ff11 Cygnal Integrated Products, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
... (4 Replies)
Discussion started by: minharojr
4 Replies
9. HP-UX
Greetings.
Seeking guidance on adding a USB barcode reader (BCR) to an HP c3750 workstation with HP-UX 11.11 which is essentially configuring X windows to accept input from both a primary keyboard and a secondary keyboard that happens to be the BCR.
Historically, I have successfully added a BCR... (2 Replies)
Discussion started by: mnkaltenbach
2 Replies
LEARN ABOUT CENTOS
usbkbm
usbkbm(7M) usbkbm(7M)
NAME
usbkbm - keyboard STREAMS module for Sun USB Keyboard
SYNOPSIS
open("/dev/kbd", O_RDWR)
The usbkbm STREAMS module processes byte streams generated by a keyboard attached to a USB port. USB keyboard is a member of Human
Interface Device (HID) Class, and usbkbm only supports the keyboard protocol defined in the specification. Definitions for altering key-
board translation and reading events from the keyboard are in <sys/kbio.h> and <sys/kbd.h>.
The usbkbm STREAMS module adheres to the interfaces exported by kb(7M). Refer to the DESCRIPTION section of kb(7M) for a discussion of
the keyboard translation modes and the IOCTL section for the supported ioctl(2) requests.
USB Keyboard usbkbm returns different values for the following ioctls than kb(7M):
KIOCTYPE
This ioctl() returns a new keyboard type defined for the USB keyboard. All types are listed below:
KB_SUN3 Sun Type 3 keyboard
KB_SUN4 Sun Type 4 keyboard
KB_ASCII ASCII terminal masquerading as keyboard
KB_PC Type 101 PC keyboard
KB_USB USB keyboard
The USB keyboard type is KB_USB; usbkbm will return KB_USB in response to the KIOCTYPE ioctl.
KIOCLAYOUT
The argument is a pointer to an int. The layout code specified by the bCountryCode value returned in the HID descriptor is returned in
the int pointed to by the argument. The countrycodes are defined in 6.2.1 of the HID 1.0 specifications.
KIOCCMD
KBD_CMD_CLICK/KBD_CMD_NOCLICK
The kb(7M) indicates that inappropriate commands for particular keyboards are ignored. Because clicking is not supported on the USB
keyboard, usbkbm ignores this command
KBD_CMD_SETLED
Set keyboard LEDs. Same as kb(7M).
KBD_CMD_GETLAYOUT
The country codes defined in 6.2.1 of the HID 1.0 specification are returned.
KBD_CMD_BELL/KBD_CMD_NOBELL
This command is supported although the USB keyboard does not have a buzzer. The request for the bell is rerouted.
KBD_CMD_RESET
There is no notion of resetting the keyboard as there is for the type4 keyboard. usbkbm ignores this command and does not return
an error.
FILES
/kernel/strmod/usbkbm
32-bit ELF kernel STREAMS module ( platform only)
/kernel/strmod/sparcv9/usbkbm
SPARC 64-bit ELF kernel STREAMS module
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |PCI-based systems |
+-----------------------------+-----------------------------+
|Availability |SUNWusb |
+-----------------------------+-----------------------------+
dumpkeys(1), kbd(1), loadkeys(1), ioctl(2), keytables(4), attributes(5), hid(7D), usba(7D), virtualkm(7D), kb(7M)
STREAMS Programming Guide
System Administration Guide: Basic Administration
http://www.sun.com/io
DIAGN0STICS
None
27 June 2005 usbkbm(7M)