Questions tagged [evdev]

Generic input event interface in Linux

evdev is a generic input event interface in the Linux kernel.

It generalizes raw input events from device drivers and makes them available through character devices in the /dev/input/ directory.

See here for further information.

124 questions
0
votes
2 answers

Python evdev and bar code scanner

I have a following code which I use to catch input from bar code scanner. The problem is in that I want to save whole scanned code in database, but every character of code prints on new line: #!/usr/bin/env python from evdev import InputDevice,…
bosha
  • 69
  • 1
  • 10
0
votes
1 answer

How to install python-evdev on Mac OS?

Is there any way to install the python-evdev library on Mac OS? When I try to install it, Mac says that The linux/input.h header file is missing. (of course). Is it possible to install it under Mac? Or do you know any other alternative? I have an…
user1870839
-1
votes
1 answer

Reading mouse/keyboard events on Virtual Machine(VM) Ubuntu

Basically I need to read mouse & keyboard events, so the program will know when you are pressing keys or scrolling. It works fine on my physical machine, but does not show any events when I connect to virtual machine(VMware in my case) via Remmina…
-2
votes
1 answer

how to get a valid understandable string from an hid device (barcode scanner) with evdev in python

I've been trying to get string outputs from using a barcode scanner with evdev in python. This was my script... from evdev import * dev = InputDevice('/dev/input/event2') print(dev) for event in dev.read_loop(): if event.type ==…
1 2 3
8
9