You are not logged in.

#1 2023-03-27 19:40:44

S4more
Member
Registered: 2023-03-27
Posts: 1

Keyboard is not detected as USB/HID device but still works

I'm reverse engineering my laptop keyboard's software to add the RGB functionality in Linux.
The software that controls it on Windows is using HID, and I already got the VendorID and the ProductID from there, however, to my surprise, when I boot in Linux to access the Keyboard's using HID, I couldn't find it.
Also, when enumerating the HIDs using hidapi, I only found one other device (which I'm assuming is my mousepad)

HidDeviceInfo {
    vendor_id: xxxx,
    product_id: yyy,
}
path: "/dev/hidraw2"

I can see the keyboard on /proc/bus/input/devices

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input5
U: Uniq=
H: Handlers=sysrq kbd leds event5
B: PROP=0
B: EV=120013
B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

Is there a way of forcing Linux to load the keyboard in a way that I can send data with hidapi to it?

Some other data that may be relevant:
lsusb output:

Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 004: ID 04f2:b641 Chicony Electronics Co., Ltd HD Webcam
Bus 004 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 004 Device 002: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Last edited by S4more (2023-03-27 19:41:29)

Offline

#2 2023-03-27 20:39:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,718

Re: Keyboard is not detected as USB/HID device but still works

Linux isn't "loading" the keyboard, that thing shows up on i8042 (for all we can tell: "only")
https://en.wikipedia.org/wiki/Keyboard_ … computing)

If the keyboard shows up as USB device in windows, you may have to lie to the firmware, eg.

acpi_osi=! acpi_osi="Windows 2012"

https://wiki.archlinux.org/title/Kernel_parameters

Offline

Board footer

Powered by FluxBB