tpkb icon indicating copy to clipboard operation
tpkb copied to clipboard

How to read info?

Open young40 opened this issue 9 years ago • 2 comments

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!

young40 avatar Jul 21 '16 17:07 young40

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.

fd1012cd avatar Jul 22 '16 03:07 fd1012cd

Got it, thank you. @unknownzerx

young40 avatar Jul 22 '16 05:07 young40