Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [hid]

Human Interface Device

Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

Bluetooth keyboard connects, but does not work

I have a Lenovo Duet 3 Bluetooth keyboard, which works fine when connected physically (it has 5 pins for that) to its laptop, and also works as expected when I connect it to my Android phone. However, ...
user avatar
1 vote
1 answer
98 views

Replace HID device driver with custom one

I'm looking for a way to replace my keyboard kernel module to a custom one. I have a Logitech MK710 keyboard + mouse set for this purpose, with a USB receiver with those 2 interfaces. Automatically, ...
user avatar
3 votes
1 answer
243 views

How to bind the hid-generic driver to an hid interface that's taken by a different hid driver?

Short background on the issue I'm facing. I'm working on implementing a simultaneous UART/I2C operation using a usb bridge, the FT260. The chip relies on HID reports to provide these functionalities. ...
user avatar
  • 41
0 votes
0 answers
81 views

Touchscreen device doesn't work after boot but does after reconnecting USB

I have A Sharp Touch Screen device. Sharp PN-HW431T 43" Connected via USB. Bus 002 Device 003: ID 04dd:9e90 Sharp Corp. Touch Device The Touch works fine if you connect it after OS is Booted. OS:...
user avatar
  • 111
0 votes
0 answers
90 views

How to get eGalax touch screen driver running on Fedora

I am trying to get a eGalax touch screen running under Fedora 35 (kernel 5.15) but am not successful. The Touchscreen is detected (as shown by lsusb): Bus 003 Device 002: ID 0eef:0001 D-WAV ...
user avatar
  • 1,322
2 votes
3 answers
90 views

Is it possible to block capabilities in a USB device?

I have a USB device which communicates with a wireless handheld remote (Dupad G20S Pro Plus). It works great on my debian box. The problem I am trying to solve is preventing the power button on the ...
user avatar
0 votes
0 answers
15 views

UHID Keyboard not interacting with Window Manager

I'm trying to get the following UHID device code working on my machine. It is supposed to be sending random keystrokes to my Window Manager, but it isn't. I wonder if this has to do with udev not ...
user avatar
0 votes
1 answer
53 views

Keyboard and Mouse Don't work on USB 3.0 Dock

I purchased a USB Dock from Sabrent, and after installing the DisplayLink Driver with a addition of GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1" to grubs config. After ...
user avatar
0 votes
1 answer
37 views

What's all about the process of invoking a file with a mouse click in ubuntu (generally in Linux)?

First of all, I apologize for the beginner's question. I still can't think of what's going on in the system (Ubuntu 21.10) after, for example, I click on the "Files" icon and then on a file. ...
user avatar
0 votes
0 answers
154 views

Custom USB HID device keeps disconnecting and reconneting

I have a little home-made measurement device, which outputs it data by USB HID to a connected computer. It works fine under Windows, but under Linux (I tested it on two different computers, both a ...
user avatar
0 votes
0 answers
23 views

Can I trigger xmodmap on USB keyboard connection, as a user? [duplicate]

I remap my Right Alt to Compose with xmodmap in my .profile. But when I disconnect my USB keyboard and reconnect it I have to rerun xmodmap for it to take effect again. Is there a way, I suspect as a ...
user avatar
0 votes
0 answers
357 views

configfs for HID, empty /sys/class/udc

currently implementing a usb hid for mouse device. it is fully working as intended on the raspberry pi to emulate mouse movement on another pc. the implementation is similar to this. and this detailed ...
user avatar
0 votes
0 answers
62 views

Keyboard emulation using configfs usb gadget in boot and OS mode

I'm currently working on a keyboard emulation using raspberry py zero, I'm using the configfs code found in this repo https://github.com/c4software/pi-as-keyboard this code have been working properly ...
user avatar
0 votes
1 answer
849 views

How to passthrough USB mouse to VirtualBox VM

I want to pass through a USB mouse to virtual machine in VirtualBox. I'm aware that VirtualBox can emulate its own Mouse/Keyboard based on input events from the host system. But that is not what I ...
user avatar
  • 137
0 votes
0 answers
283 views

Keyboard couldn't find an input interrupt endpoint

I'm trying to understand why my keyboard's interface #2 is not showing up under linux but works fine under windows. Here is the output of usb-devices T: Bus=05 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#= 8 ...
user avatar
  • 1
0 votes
0 answers
210 views

How do I query an HID device as a non-superuser in Linux?

With superuser privileges, I send instructions to the device as follows: $ sudo hid-query /dev/hidraw1 0x01 0x80 0x33 0x01 0x00 0x00 0x00 0x00 Device /dev/hidraw1 : 413d:2107 interface 1 : (null) (...
user avatar
  • 1
2 votes
0 answers
321 views

Synaptics touchpad, i2c-hid and hid-rmi

I have a similar question as asked here: how should I interpret this line from syslog: psmouse serio1: synaptics: Your touchpad (PNP: SYN1ef3 SYN1e00 SYN0002 PNP0f13) says it can support a different ...
user avatar
  • 161
2 votes
2 answers
2k views

How to direct /dev/hidraw output to python application and not terminal

I have a USB barcode scanner and am running a python script that collects data from /dev/hidraw0 and inputs the data into a database. The issue is that every time the scanner collects a code it ...
user avatar
  • 55
3 votes
1 answer
2k views

Blacklisting specific hardware device in Linux

Hopeful someone can help me out. I have a laptop with a malfunctioning touch device. The device can't be disabled in the bios or by any other means (other than replacing the screen where the cost ...
user avatar
1 vote
1 answer
43 views

USB HID report error (intentional?) prevents joydev from correctly calculating axes values

Thrustmaster T.Flight 4 would only partially work with jstest (Z axis, throttle and an additional axis on the throttle handle) so I decided to try and fix it. I dumped hidraw data and learned that ...
user avatar
  • 113
1 vote
0 answers
170 views

Persistent name for USB HID (LED) gadget

I have a USB LED gadget that shows up as a USB HID device. When I plug it in to my server it shows up as /sys/class/leds/delcom2:{red,green,blue} and I can operate it by manipulating the files that ...
user avatar
  • 871
1 vote
1 answer
1k views

Force PS3 clone arcade gamepad to be hid generic

I have a NETWAY GAMING ARCADE FIGHTER PS3/PC. This device works fine under windows and also does on recalbox 4.1, but does not in any current linux that I have tried. I have tried to recompile hid-...
user avatar
  • 21
1 vote
1 answer
623 views

How to change poll rate of usb "gamepad" drum controller

I'm trying to increase the USB poll rate of my ION IED05 drum controller to decrease the latency when striking toms. This drum controller is actually behaving like a USB gamepad, instead of being a ...
user avatar
2 votes
1 answer
1k views

Udev does not always automatically bind the usbhid driver to my device

I have multiple sytems running Ubuntu 19.10. I have a USB HID device which can be detected by each of those systems and I am using the exact same udev rules file on all 3 of them (99-MyDevice.rules) : ...
user avatar
  • 121
0 votes
1 answer
84 views

Is there a way to 'tail -f' HID-Input of a buzz-controller?

I'm quite a linux-newb. I wanted to develop an application which communicates with Sony PS2-Buzzcontrollers via libusb but discovered that the linux-kernel already comes with out-of-the-box support ...
user avatar
  • 1
3 votes
1 answer
525 views

Is there a limit to the number of USB gadget can be created with configfs?

OS: Ubuntu 18.04.3 Kernel: 5.3.8 Hi guys :) I'm trying to create bunch of HID gadgets by using configfs. It was successful until setting up fourth gadget, but kernel emits error message during ...
user avatar
  • 35
5 votes
0 answers
728 views

wireless mouse, very strange behavior

After the most recent apt full-upgrade that included a kernel update, I have now twice encountered a rather strange problem, and more importantly I cannot for the life of me figure out how and why the ...
user avatar
  • 1,848
1 vote
1 answer
217 views

USB HID driver data sniffing

I need to communicate with a proprietary HID device. I don't have a driver for it, nor documentation on its communication. I did however obtain some compiled code that configures the HID device and ...
user avatar
  • 11
0 votes
1 answer
319 views

Playstation usb adapter missing buttons

I'm trying to use a PS2 Guitar Hero II controller on PC/Linux. After trying out multiple Playstation-to-usb adapters, I've finally found one that does not cause any input lag. However I've ...
user avatar
1 vote
1 answer
495 views

I2C_HID touchpad chip data reading

Recetly I tried to fix my touchpad lags with firmware update, but it crushed my whole touchpad. Now movement is inverted, and right click doesn’t work. My touchpad is ELAN1200 04F3:304E, one of the ...
user avatar
0 votes
1 answer
535 views

How to make a USB device register as HID?

I have a hardware device which I'd like to communicate with in C via the HID library. But this device does not show up as HID. Is there a way to make it so (with a udev rule maybe) ? $ dmesg usb 1-2: ...
user avatar
  • 585
3 votes
0 answers
7k views

How to get my device recognized as an HID device?

I'm trying to get a USB HID device to work in Ubuntu, but can't seem to get it to work at all. It is a USB HID device, and shows up as such in dmesg: [ 2236.277518] usb 1-1: new full-speed USB device ...
user avatar
1 vote
1 answer
4k views

How to write data to a HID USB device?

I have to develop an application to communicate with a C8051F340-TB board from Silicon Labs through USB (just to be clear, I am using the P3 connector from fig. 4 of previous link, not the USB Debug ...
user avatar
0 votes
1 answer
2k views

Bind/Unbind Linux Module Automatically

I'm currently trying to create my own USB HID mouse driver as an override of the standard generic USB, which always gets in the way. How can I unbind the generic driver and rebind it to my specific ...
user avatar
  • 111
1 vote
0 answers
765 views

Cannot load compressed Kernel module?

I tried to load "hid-a4tech," but I got error the messages below: [net_client@netarchwork ~]$ modprobe hid-a4tech modprobe: FATAL: Module hid-a4tech not found in directory /lib/modules/4.18....
user avatar
1 vote
1 answer
709 views

Mirroring USB HID signals on Open WRT through UART [closed]

The setup: a Linkit Board (Smart 7688 Duo) running OpenWRT and a generic keyboard connected on the USB host. The goal: dumping the signal we get from the /dev/input/event0 and send it through the ...
user avatar
11 votes
3 answers
36k views

Magic Mouse 2 driver touch scroll

I just recently picked up a Magic Mouse 2 after trying out my friends Magic Mouse 1. The MM has touch capabilities, and I wanted to make sure that those features worked on my Arch laptop, and they did!...
user avatar
2 votes
1 answer
655 views

Format of hiddev bytes?

I have a gamma spectrometer that connects as a USB HID. When it is inserted dmesg helpfully informs me that two device files were made for it, hiddev0 and hidraw2 (obviously, the numbering isn't ...
user avatar
0 votes
1 answer
1k views

Custom HID Keyboard Not Working In Ubuntu

I have implemented a test HID keyboard using an STM32 microcontroller. Nothing fanct, just sends continous stream of 'A' once connected at the speed of 10/sec. Works just fine in windows. But when ...
user avatar
  • 101
27 votes
3 answers
3k views

How to safely insert USB stick/device to Linux computer?

When inserting a USB stick or device to computer, there is always the risk that the device is malicious, will act as an HID and potentially do some damage on the computer. How can I prevent this ...
user avatar
3 votes
1 answer
2k views

Single clicks register as double-click - software click debounce in CentOS 7

I need a software click debouncer solution for RHEL/CentOS. I'm getting intermittent, but frequent, double-clicks registered on single mouse clicks. The issue doesn't happen on Windows 10 as it ...
user avatar
  • 2,010
3 votes
6 answers
5k views

Linux HID driver for Primax wireless keyboards

I bought a new keyboard similar to an old one. The old one works, the new one not. The new keyboard has an unusual HID Descriptor and sends one extra data byte. Is there a Linux driver which support ...
user avatar
2 votes
0 answers
620 views

Linux HID driver for keyboards sending 1 extra byte

I bought a new keyboard similar to an old one. The old one works, the new one not. There is a difference in one extra data byte sent by the new keyboard. Is there a Linux driver which support the new ...
user avatar
1 vote
2 answers
2k views

My keyboard identifies as a mouse

My Logitech Wave Cordless keyboard presents itself as two devices to the kernel. One is a regular keyboard which works fine, but all the additional keys appear as an event-mouse, such that cat /dev/...
user avatar
  • 113
-1 votes
1 answer
2k views

USB ports don't work in Gentoo Linux

I have a motherboard, Gigabyte Z170-D3H, with a fresh Gentoo Linux installed (self-compiled kernel 4.9.6-gentoo-r1) and two USB devices connected (Flashdrive and Mouse). But USB ports don't work. ...
user avatar
  • 1,471
0 votes
1 answer
602 views

Howto Edit the USB driver to identify as an HID device

I have a Linux based embedded system which I would like to behave as a USB HID keyboard when connected to a PC with a USB cable. I'm assuming that the USB driver will be operating in Host mode by ...
user avatar
12 votes
4 answers
7k views

Emulate a bluetooth mouse

Is it possible for my computer to pretend it is a bluetooth mouse, so another device can connect to it? An android device allow its mouse to be controlled by bluetooth without rooting it, and my ...
user avatar
  • 553
1 vote
1 answer
260 views

How is a mouse identified? Then how do I "implement a mouse"?

When a USB mouse is connected how does the system tell it's a mouse? Does it send some signal? I need to implement (something like) a little mouse using an fpga board. I can output x and y ...
user avatar
3 votes
0 answers
1k views

USB devices missing from /proc/acpi/wakeup

I'm currently running Ubuntu 14.04 (specifically the Kodibuntu port) on a Gibabyte NUC like mini pc. My kernel version is 3.13.0-55-generic. I'm having trouble enabling wake-up from suspend via my ...
user avatar
  • 131
2 votes
1 answer
3k views

How to disable a device (hardware) from using hid-multitouch driver?

I have a Kortek touch screen that is exposed to the system, as shown in /proc/bus/input/devices, via two drivers : hid-generic and hid-multitouch I do not want hid-multitouch driver to expose Kortek ...
user avatar
  • 267