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
1
vote
1 answer

How to capture legitimately and programmatically a second mouse or a trackball under linux, X?

I am designing and implementing an experimental GUI application. I wish to allow my users to ergonomically use both hands simultaneously to interact with the application. As an example, imagine GIMP and a second mouse (a trackball) in your left…
embedeo
  • 13
  • 5
1
vote
0 answers

Xephyr with evdev on SLES 12 SP3

I have two touch screen devices currently working in SLES 12 SP3. What I would like to do is have Xephyr run a separate (essentially multiseat) window on the second monitor with it's own touch screen independent of the main screen. Issue being, I…
dlawler
  • 19
  • 2
1
vote
0 answers

How to disable atuo repeat for specific keyboard on linux, preferably from python

I am using the excellent Python-evdev library for a utility that remaps keys in a certain way, similar to at-home-modifier. In the process, I am grabbing all my physical keyboards and pipe the keys to a virtual keyboard. If possible, I would like to…
jchtt
  • 11
  • 3
1
vote
2 answers

Multiple Gamepads with Python Evdev?

I found a way to use a gamepad in Python, using the module Evdev (see link at the end). In this tutorial the author only uses one gamepad, but he also states, that it should be possible to use multiple gamespads with code basing on the…
bsteur
  • 11
  • 3
1
vote
0 answers

Python script stops working on new started applications (python-evdev)

I have been scratching my head for a couple of weeks now, I'm not well diversed in Linux so it's certanly something easy I've overlooked. In my system I got an arduino that sends data via I2C to my RaspberryPi. The PI looks at the data and then…
1
vote
1 answer

How to determine when new devices are added with evdev?

What is the preferred way to determine when new devices become available as /dev/input/eventX? Do I have to periodically examine the /dev/input directory, comparing my open files against the list of /dev/input/eventX devices, or is there a simpler…
Josh Sanford
  • 622
  • 5
  • 18
1
vote
0 answers

Automatic inputs in Chromium are filled randomly

Automatic inputs in Chromium are filled randomly CASE I want to simulate a barcode scanner without any hardware attached to my computer. From what I learnt, barcode scanners behave as keyboards, so I want to simulate a keyboard HID…
Jocimar Candido
  • 311
  • 1
  • 8
1
vote
1 answer

Interrupt a blocking evdev reading

I have a module that captures all reads from a barcode scanner. My problem is that I can not close it properly. After sending a KeyboardInterrupt or SystemExit signal, it stops only when I scan a barcode. I tried to add this method to the…
T'lash
  • 552
  • 1
  • 3
  • 15
1
vote
1 answer

python InputDevice fflush

I use python-evdev library for detect keyboard event. But I have a problem, I need flush the keyboard event after I have detect key. example: from evdev import InputDevice, categorize, ecodes dev = InputDevice('/dev/input/event1') for event in…
1
vote
2 answers

Map XInput2 devices to sysfs nodes

How can I turn an XInput2 device, e.g. as reported by XIQueryDevice, into an appropriate sysfs node? The device is a generic HID device, handled by the evdev input driver. I know I can get the name of the device. I might be able to look at the…
MvG
  • 57,380
  • 22
  • 148
  • 276
1
vote
2 answers

Python Evdev binding for OpenWrt

Good day, I'm a student and I would just like to ask for a minute of your time. I'm working on a barcode reader connected via USB port to a board name Arduino Yun. This board runs a version of embedded linux derived from OpenWrt using a…
1
vote
0 answers

Qt5: cross-compiling static program with evdev-support

I'm trying cross compiling a simple program. Natively compiling on my computer works (the program is functionable). When cross-compiling for my dev-board, linuxfb work out of the box. But no input is generated. That's how qt was…
michi.0x5d
  • 959
  • 9
  • 13
1
vote
2 answers

Sending events to uinput with python-evdev on keybinding trouble with mask keys

The short of it is that I am trying to add a keybinding to my program that will edit the clipboard and then paste the changes to whatever window you have active. On Windows I think I can probably do it with message passing, but X doesn't use message…
Josiah
  • 3,266
  • 24
  • 24
0
votes
1 answer

Cannot install evdev==1.6.0 package on Ubuntu because of linux-headers?

I am stuck on installing evdev==1.6.0 python package on my Ubuntu20.04(Focal) AMD64 machine. Firstly, I tried $ pip install evdev==1.6.0 and then, I got a error message below. Collecting evdev Using cached evdev-1.6.1.tar.gz (26 kB) Preparing…
Naoki
  • 1
0
votes
0 answers

How can I handle multiple devices as they connect and disconnect with evdev?

I am trying to use evdev to read input events on Linux asynchronously, but I want to handle devices being connected or disconnected. To make my system relatively general and compatible with multiple devices, I want a control thread that can dispatch…
zane49er
  • 31
  • 5
1 2 3
8 9