How to read info?
I have a different keyboard.
ThinkPad 4X30K12182
Vendor ID: 0x17EF Product ID: 0x6083
so I want to read the value of the keyboard, in case something is wrong, I can write the right value back?
I'm try to read info with hid_read, it seems to be lock by some thread locks.
unsigned char buf[4];
hid_read(dev, buf, 3);
Thank u!
You won't read anything until the device send something to computer (character device versus block device).
Here we just send a magic code to the device. 4X30K12182 is the descendant of 0B47189. The code might not work.
See lentinj's work for how to figure out the code. However the Windows driver of 4X30K12182 seems not available yet.
Got it, thank you. @unknownzerx