Questions tagged [hid]

Human Interface Device

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Mouse multimedia buttons are not emitting events in `/dev/input/eventX`

I have a mouse (Canyon CND-SGM14RGB) with multiple programmable buttons, half of them are set to be multimedia buttons. Software for configuration is Windows-only, and those buttons work in Windows -- ...
0 votes
1 answer
37 views

Binding a mouse to a custom Character Device driver instead of the generic HID one

I am trying to write a simple Linux USB mouse driver, and I've run into a problem with actually getting the information from the mouse to the module. Right now I have a kernel module that can be ...
0 votes
0 answers
17 views

How can I prevent the bluetooth joystick to move both axis and mouse?

I just bought a gamepad so I can use it to play games in Geforcenow. It works fine except it also moves the mouse and the axis. Now there are a lot of solutions regarding X11 and xinput but the issue ...
0 votes
1 answer
111 views

Linux evdev subsystem vs libusb

What are the advantages and disadvantages to using the evdev subsystem versus accessing input devices using libusb? The kernel docs for evdev state: This is the preferred interface for userspace to ...
  • 105
2 votes
0 answers
113 views

/dev/input/event doesn't report keys being pressed

I have an usb keyboard connected to a linux box. I need to capture all keys that have been pressed and released. My keyboard n-key rollover meaning that it doesn't have limits on number of ...
2 votes
0 answers
57 views

What driver to use with a keyboard that has the wrong vendor/product ID?

So, I recently bought a new mechanical keyboard, and I've been having trouble with the F1-F12 keys. After some investigation, I discovered that this is happening because the keyboard, for some ungodly ...
  • 21
2 votes
1 answer
574 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, ...
2 votes
1 answer
680 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, ...
4 votes
1 answer
1k 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. ...
  • 61
2 votes
3 answers
205 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 ...
1 vote
1 answer
309 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 ...
0 votes
1 answer
80 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. ...
0 votes
0 answers
378 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 ...
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 ...
0 votes
0 answers
1k 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 ...
0 votes
1 answer
2k 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 ...
  • 157
0 votes
0 answers
393 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) (...
  • 1
3 votes
0 answers
484 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 ...
  • 171
2 votes
2 answers
3k 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 ...
  • 55
4 votes
1 answer
3k 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 ...
1 vote
1 answer
78 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 ...
  • 113
1 vote
0 answers
228 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 ...
  • 929
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-...
  • 21
1 vote
1 answer
806 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 ...
2 votes
1 answer
2k 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) : ...
  • 121
0 votes
1 answer
196 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 ...
  • 1
3 votes
1 answer
720 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 ...
  • 35
5 votes
0 answers
812 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 ...
  • 2,144
1 vote
1 answer
387 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 ...
  • 11
0 votes
1 answer
345 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 ...
1 vote
1 answer
581 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 ...
0 votes
1 answer
975 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: ...
  • 557
3 votes
0 answers
9k 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 ...
1 vote
1 answer
5k 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 ...
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 ...
  • 131
1 vote
0 answers
894 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....
1 vote
1 answer
783 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 ...
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!...
2 votes
1 answer
749 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 ...
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 ...
  • 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 ...
5 votes
1 answer
3k 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 ...
  • 2,140
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 ...
2 votes
0 answers
709 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 ...
1 vote
2 answers
3k 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/...
  • 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. ...
  • 1,643
0 votes
1 answer
764 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 ...
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 ...
  • 573
1 vote
1 answer
281 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 ...
  • 113
3 votes
0 answers
2k 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 ...
  • 131