I have a USB Zebex barcode scanner, this device works properly using WinXP , Vista when I open notepad. However I can't get it to work on Ubunbodytu. I open Gedit, and it makes the same noise as in Win, but nothing scans.

If any advise will be appreciated

link|improve this question

Looking around, I see that it also doesn't work in Xubuntu. In OpenSuse it works without a problem. Maybe you need some additional drivers (keyboard, maybe?). – alex Sep 14 '09 at 14:08
It's really weird, going to have to search for a solution – Roland Sep 14 '09 at 19:12
usb keyword works 100% – Roland Sep 14 '09 at 19:23
feedback

3 Answers

up vote 1 down vote accepted
+100

Two things you could try:

xinput list

This will give you a list of all input devices that are recognized by Xorg and allows you to enable or disable devices as well as test them (replace ${DEVICEID} with what is displayed by xinput list):

xinput set-int-prop ${DEVICEID} 'Device Enabled' 32 1
xinput test ${DEVICEID}

Second thing you could try would be the more low-level evtest tool (replace /dev/input/eventX with the proper device file):

evtest /dev/input/eventX

It should print events to the screen when it gets data. evtest is part of the joystick package in Ubuntu.

Neither of these will make your Barcode scanner work, but they will allow you to figure out where the problem is. If evtest works, but xinput doesn't, then you have to tweak your Xorg.conf and manually add it as extra keyboard, if neither works then its a Kernel driver problem.

link|improve this answer
feedback

Does the sound come from the PC speakers or from the scanner?

Check and make sure the scanner is properly detected

dmesg

and see if you have something that looks like this when you plug in the scanner

usb 5-1: new low speed USB device using uhci_hcd and address 2
usb 5-1: new device found, idVendor=0000, idProduct=0001
usb 5-1: new device strings: Mfr=0, Product=0, SerialNumber=0
usb 5-1: configuration #1 chosen from 1 choice
input: HID 0000:0001 as /class/input/input6
input: USB HID v1.00 Keyboard [HID 0000:0001] on usb-0000:00:10.3-1

if you see the above, then you should also see events in dmesg after you push the scan button.

if you dont see the above, then you probably need to initialize the usb keyboard module with you might try

sudo modprobe usbkbd
link|improve this answer
Yes, it makes a noise. initialized the usb keyboard and still nothing – Roland Sep 14 '09 at 15:24
feedback

Did you try the scanner in the Linux console instead of XWindows? Could be that your Xconfig only includes your primary keyboard.

link|improve this answer
I'm not sure how to test this in Console? – Roland Sep 15 '09 at 7:09
First thing I would try is to switch to the text console (probably CTRL+ALT+F1) then try scanning something into the Login: prompt – Craig Sep 16 '09 at 0:15
Did that, makes a scan noise and nothing displays on screen, then the scanner does not want to do anything – Roland Sep 16 '09 at 8:01
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.