8
votes
4answers
2k views

Why does “cat ttyUSB0” not produce output?

I connected an infrared receiver to a USB port ... (the last line of dmesg tells device file) $ dmesg [10496.596063] usb 7-2: new full-speed USB device number 2 using uhci_hcd [10496.751112] usb 7-2: ...
14
votes
2answers
2k views

bash script to detect and record mouse movements?

I need to be able to record the mouse movements every so often (every .2 of a second for example) and have them in a coordinate representation instead of a diff. I found the following script: ...
3
votes
0answers
270 views

How to know the event by looking at /dev/input/by-id

I want to access the keyboard device driver. I usually accesses it by looking at /dev/input/by-name but the event provided by it gets changed every time I log in. After searchin on the Net, I found ...
10
votes
2answers
8k views

How do mouse events work in linux?

This is mostly out of curiosity, I'm trying to understand how event handling works on a low level, so please don't reference me to a software that'll do it for me. If for example I want to write a ...