83 questions
-1
votes
0
answers
14
views
How to rotate the input of a non-Wacom graphics tablet in Linux using xinput? [migrated]
I want to leave this solution here because it was difficult for me to find it or I didn't know how to look for it.
I have a Gadnic graphics tablet (model Gotop T505, identified by lsusb as ID 08f2:...
0
votes
1
answer
441
views
How do I get a raw input device's proper display name in C#?
I am making a simple program to enumerate all of the devices currently connected to your Windows along with their pointers, then display the proper name for the device you clicked a button on your WPF ...
1
vote
0
answers
1k
views
How to Create a Soundboard That Plays Audio Through the Microphone in a Voice Call?
I’ve been diligently searching for a solution on how to play audio (specifically audio files) through the microphone, but so far, I haven’t had any success. My goal is to create a soundboard – ...
0
votes
0
answers
93
views
python - multiprocessing module to read data from several external devices
I am currently working on a project that aims to capture photos with 4 cameras at the same time. For that, I have an Arduino that sends a trigger every second.
I am using uEye cameras and I have ...
0
votes
2
answers
2k
views
Windows Input Device Signal Enhancements
We write software (C#) for Speech Recognition, up until a particular W10 update we had no problems with speech recognition (via usb Microphone/headset). We are now facing issues with recognition and ...
1
vote
0
answers
1k
views
How to only list audio devices using FFmpeg?
I am doing an audio recording project using FFmpeg 5.0.1. To list all the available audio input devices for the user to select and use, I used the function avdevice_list_input_sources(). My code goes ...
1
vote
2
answers
1k
views
p5.js - Getting an array of all available video devices (webcams) with id
I would like to use x to output a list of all connected webcams with ID. Unfortunately, I always get the following error message (see picture).
Does anyone have an idea what this could be? I am ...
1
vote
1
answer
1k
views
Is there a way to check for available microphones using pyaudio?
I was looking through PyAudio documentation and i found these two methods:
1: info.get('deviceCount')
2: p.get_default_input_device_info()
Which returns:
output 1: 3
output 2: IOError
My pc ...
-1
votes
1
answer
683
views
IOException when reading few bytes from /dev/input
When trying to read input_events from /dev/input/event16 I noticed that the size of the buffer I'm reading into may cause an exception. Here is the code I wrote:
public static void main(String[] ...
1
vote
2
answers
2k
views
SDL2 does not see joystick, but OS does
I am using Ubuntu 18.0.4.4 LTS with a home-brew Arduino-based USB joystick attached.
The OS sees the device at both /dev/input/js0 and /dev/input/event5 and jstest works with it:
$ jstest /dev/...
0
votes
0
answers
385
views
How to get text from a keyboard in embedded linux without decoding every key event?
Right now I'm reading directly from /dev/input/eventX. Is there some library or api that would convert the byte stream for me? Below is the code I'm running, sample input and output.
int main (void)
{...
1
vote
1
answer
5k
views
Faking an input device for testing purpose
What I want to do
I'm writing a daemon which listen to the input devices for keys presses and send signals via D-Bus. The main goal is to manage audio volume and screen backlight level by requesting ...
1
vote
0
answers
1k
views
Mouse moves as expected but cannot select or click (after a recent update) [Arch Linux on Virtualbox]
In an Arch Linux VM on Virtualbox, the mouse is present and moves as expected, however it cannot select or click. It is a recent behavior after an update.
According to this post, it could be related ...
2
votes
2
answers
521
views
is there a higher level (character?) based way to access a Linux keyboard other than /dev/input/eventx?
I'm trying to write a Linux daemon that needs to take input from a keyboard-like (HID) device - it's not the console keyboard, but a second device (it's actually a 1D barcode scanner if it makes any ...
0
votes
0
answers
155
views
How would the linux kernel find all IRQs registered to mice?
I am new to kernel hacking and I am wanting to know if there is a way to find all IRQs that HID mice drivers have registered with the kernel.
Edit** I need to know how find the correct irq given ...
0
votes
0
answers
77
views
Accessing 2 identical scanners from c#
I have a USB scanner which I connect and use through a DLL provided by the manufacturer.
these are the functions I use to access it:
[DllImport(".\\lib\\HsId600s.dll", SetLastError = true, ...
1
vote
1
answer
3k
views
Check certain USB port to get device fd on C Linux
I'm writing a program that check every /dev/input/eventX and using ioctl I can get it capabilities and check what it is (mouse, keyboard, touch screen).
Now I need to check certain USB out(port) if ...
0
votes
1
answer
705
views
Identifying a particular function of a multifunction input device using evdev
I have some Python code that interacts with a wireless USB numeric keypad. I'd like to be able to discover the device by name, but shows up as multiple input devices. In /dev/input/by-id:
# ls -l /...
0
votes
1
answer
350
views
difference between serial event value and serial port value
i am using jssc to read values from serial ports.once i write to the serial port the following callback is getting called . within that callback i can get values from the event and from serial port ...
1
vote
1
answer
5k
views
RawInput from different Keyboard C# .Net
I am working on a Windows Forms Application that should get data from a USB Scale.
The USB scale is handled like a Keyboard. If someone puts something on the scale, the scale starts to type the weight ...
1
vote
0
answers
831
views
How can I bind my own serial device with a driver?
I am currently building a device and its driver in an embedded Android.
The device is basically an embedded Linux behaving like a touchscreen.
The device and the embedded Android are connected with ...
2
votes
2
answers
2k
views
Is stdin treated as a character device in Linux?
When I say stdin, I am referring to the stream referred to by fd = 0.
I am taking an OS course which covers block and character devices. It specifically said that the keyboard is a character device. ...
1
vote
1
answer
3k
views
Get audio input list in VB.net
I'm Developing a voice recording system with the help of USB audio cards. Therefore I need to get the list of audio input devices to a listbox where I can select the audio input device. When I attempt ...
4
votes
2
answers
2k
views
Android kcm file doesn't seem to work. What am I missing?
I have created an input device driver that I use for controlling mouse/keyboard from an app. Everything works so far, I can generate input events for both keyboard and mouse from within the app.
The ...
8
votes
1
answer
5k
views
Simulate mouse motion on linux wayland
I receive xy data from my network and i would like to control the mouse position using linux on wayland.
I've seen many source codes using X libs or X apps but it will not work on wayland. I also ...