Questions tagged [hid]

Human Interface Device

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

Linux USB gadget configured through configfs

I have successfully configured USB On-The-Go (OTG) on an STM32 MPU (Linux) to support both Abstract Control Model (ACM) and Human Interface Device (HID) protocols. I utilized the ...
Barak1's user avatar
  • 1
0 votes
1 answer
65 views

Unable to locate package USBHID

Since this morning my mouse is not working anymore on my Debian 11 google cloud VM, so I restarted the machine but the mouse is still not responding to clicking (my keyboard somehow is). I checked and ...
diegobc11's user avatar
0 votes
0 answers
69 views

How can I get user's idle time of whole day?

How can we get the user's idle time, defined as the time during which the user hasn't struck the keyboard or even made a mouse movement in Ubuntu 22.04. It should display with the username, the user's ...
Mahesh Garole's user avatar
0 votes
1 answer
98 views

how to make mouse and keyboard work again after disabled all input devices

I want to disable internal keyboard of my laptap, then I followed this answer and this doc (because it's Ubuntu and Wayland) so I created a .rules includes: KERNELS=="input2", ATTRS{name}==&...
ask's user avatar
  • 1
0 votes
0 answers
22 views

How can I bind media controls to my mouse?

I recently began dual booting Kali Linux alongside Windows, and I'd like to set up media controls with my Logitech g502 Hero. Using G Hub on windows I had the scroll wheel left/right set to previous/...
Finsey Conry-Murray's user avatar
0 votes
0 answers
145 views

HID events are received, but mouse input still not working

I'd like to understand what I'm missing between HID events and libinput. I have a device that is sending correct mouse events, recorded from hid-recorder: e.g. For a left-click: # ReportID: 11 / ...
Sam Bull's user avatar
  • 155
0 votes
0 answers
81 views

What is wrong with the recognition of this HID device?

I have a Panasonic CF-31RECAXDR Toughbook with 6.3.0-kali1-amd64. (https://linux-hardware.org/?probe=2c021f93de) Kali does not recognize the HID device Fujitsu Component Limited USB Touch Panel, no ...
angel meneses's user avatar
0 votes
0 answers
49 views

"rmmod g_hid" causes kernel crash: "Device 'hidg.0' does not have a release() function, it is broken and must be fixed"

I am getting the below kernel crash when I try to rmmod the g_hid module. Can someone provide me with a lead? [ 261.125986] ------------[ cut here ]------------ [ 261.130656] Device 'hidg.0' does ...
Ajita's user avatar
  • 1
1 vote
0 answers
3k views

Keyboad and mouse pad are not working in Ubuntu-22.04 LTS linux for Lenovo V15 Gen4, 7520U

The keyboard and Mouse/touchpad are not working in Ubuntu-22.04 LTS OS on Lenovo V14 Gen4 7520U CPU. The external keyboard and mouse work perfectly. Is there any solution?
Nirmal Bisai's user avatar
0 votes
0 answers
121 views

Psmouse serio2: Failed to disable mouse on synaptics-pt/serio0

I am currently using Linux Mint 21.1 Cinnamon and I keep getting the error: psmouse serio2: failed to disable mouse on synaptics-pt/serio0 I only ever get it after shutting down my computer if I've ...
bascott's user avatar
0 votes
1 answer
163 views

Hidraw doesn't find device without device-specific kernel driver being loaded

I'm trying to make a userspace Linux program that talks to a Bluetooth HID device, specifically the Wii remote. When the hid-wiimote kernel module is loaded, I can use the hidapi library (with the ...
Honbra's user avatar
  • 1
0 votes
0 answers
53 views

Virtual keyboard using UHID

I am trying to achieve what the QMK firmware does for keyboards but using software. So, I would like to turn off keys, substitute some keys for others, layers and etc. The first thing that appeared ...
Henrique Hott's user avatar
1 vote
2 answers
183 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 -- ...
Rijenkii's user avatar
0 votes
1 answer
299 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 ...
TheOwlk's user avatar
0 votes
1 answer
233 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 ...
Jared's user avatar
  • 105
2 votes
0 answers
473 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 ...
Misha Mikhail's user avatar
3 votes
0 answers
100 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 ...
Maveth's user avatar
  • 31
3 votes
1 answer
1k 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, ...
Heinrich supports Monica's user avatar
2 votes
1 answer
1k 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, ...
pazdinho_'s user avatar
5 votes
1 answer
2k 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. ...
Sdig's user avatar
  • 71
2 votes
3 answers
348 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 ...
Steve Easley's user avatar
1 vote
1 answer
594 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 ...
Steven Venham's user avatar
0 votes
1 answer
108 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. ...
Marcel Borna's user avatar
0 votes
0 answers
546 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 ...
zvavybir's user avatar
  • 101
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 ...
Chris Wesseling's user avatar
0 votes
0 answers
2k 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 ...
Jin Yicheng's user avatar
0 votes
1 answer
3k 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 ...
Scindix's user avatar
  • 177
0 votes
0 answers
676 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) (...
stp's user avatar
  • 1
4 votes
0 answers
733 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 ...
RJVB's user avatar
  • 254
2 votes
2 answers
4k 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 ...
DD-Nerd's user avatar
  • 55
4 votes
1 answer
4k 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 ...
michaelkrieger's user avatar
1 vote
1 answer
99 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 ...
John Z.'s user avatar
  • 123
1 vote
0 answers
276 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 ...
pipe's user avatar
  • 920
1 vote
1 answer
2k 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-...
Eugenio's user avatar
  • 21
1 vote
1 answer
986 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 ...
Johan Schuijt's user avatar
2 votes
1 answer
3k 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) : ...
TimothyP's user avatar
  • 121
0 votes
1 answer
295 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 ...
Sven's user avatar
  • 1
3 votes
1 answer
1k 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 ...
jmiry's user avatar
  • 35
5 votes
0 answers
910 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 ...
NetIceCat's user avatar
  • 2,274
1 vote
1 answer
563 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 ...
Nick's user avatar
  • 11
0 votes
1 answer
389 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 ...
Eero Vilpponen's user avatar
1 vote
1 answer
634 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 ...
V. Dalechyn's user avatar
0 votes
1 answer
1k 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: ...
dargaud's user avatar
  • 565
5 votes
0 answers
12k 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 ...
Hamaluik's user avatar
1 vote
1 answer
6k 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 ...
user171780's 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 ...
Vladius's user avatar
  • 141
1 vote
0 answers
1k 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....
MoonRaiser's user avatar
1 vote
1 answer
854 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 ...
Diego Dyan's user avatar
11 votes
3 answers
37k 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!...
Robin Weymans's user avatar
2 votes
1 answer
838 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 ...
OmnipotentEntity's user avatar