← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 370851] Re: Barcode reader kill X on scan

 

@Mathieu, upstream would like you to record the signals that the barcode sends so they can trigger
the bug on their machines without having access to hardware (also useful for regression tests etc).

I've tried to outline the process for you below (let me know
if any of the steps doesn't seem to work on your machine):

 1. download the debugging utility by opening a terminal and
    running "wget http://people.freedesktop.org/~whot/evtest.c";

 2. stop the X windowing system by first running the command "sudo /etc/init.d/gdm stop"
 3. once in text mode, switch to a text based console by pressing CTRL-ALT-F1
 4. login with your normal credentials

 5. disconnect / unplug the barcode reader completely
 6. run the command "find /dev/input/event*"
 7. connect the barcode reader to the computer again
 8. run the same command "find /dev/input/event*" once more
 9. there should be exactly one device entry / line which is included
    in the second print out (that was not there the first time), this
    represents your barcode reader device and it should look something
    like "evtest" where X is some number.

11. compile the debugging utility by running "gcc evtest.c -o evtest"
12. run the debugging utility by running "./evtest /dev/input/eventX > output.txt"
    (Note: you should use the specific eventX entry for your device that
     you found using steps 1-4)

13. zap something with the barcode reader
14. press CTRL-C to terminate the evtest debugging utility

15. now the file output.txt should have a complete trace of all
    the input events that were sent by the barcode reader, the file
    should look somewhat similar to this: http://temp.minimum.se/b.txt

16. type "sudo reboot now", and attach the file you recorded to the bug
report


** Changed in: xserver-xorg-input-evdev (Ubuntu)
       Status: Confirmed => Incomplete

-- 
Barcode reader kill X on scan
https://bugs.launchpad.net/bugs/370851
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-input-evdev in ubuntu.