linux_lenovo_ultraslim_plus icon indicating copy to clipboard operation
linux_lenovo_ultraslim_plus copied to clipboard

expected input for kdbusb

Open avidality opened this issue 7 years ago • 9 comments

Hi, I'm trying to use your driver but the regex is not picking anything. I think I might have a newer version of the keyboard. Pressing key A gives me

ffff94c88e98aa28 3180473731 C Ii:1:016:1 0:8 8 = 00000400 00000000 ffff94c88e98aa28 3180473863 S Ii:1:016:1 -115:8 8 < ffff94c88e98aa28 3180529489 C Ii:1:016:1 0:8 8 = 00000000 00000000 ffff94c88e98aa28 3180529584 S Ii:1:016:1 -115:8 8 <

can you give an example of how the input for kbdusb should look like?

avidality avatar Dec 04 '17 11:12 avidality

I'm facing the same problem right now. I know that it's a very old comment. Anyway, I will post the solution if I solve it.

felipeespic avatar Jan 09 '19 00:01 felipeespic

Sample correct input:

ffff91a503331c00 945328163 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945332403 C Ii:011:01 0 9 = 00000b00 00000000 71
ffff91a503331c00 945433167 S Zo:010:04 -115 1056 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945436414 C Ii:011:01 0 9 = 00000000 00000000 71
ffff91a503331400 945457169 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945460404 C Ii:011:01 0 9 = 00000c00 00000000 71
ffff91a503330c00 945499164 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945500393 C Ii:011:01 0 9 = 00000000 00000000 71
ffff91a503330c00 945535135 S Zo:010:04 -115 880 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945540376 C Ii:011:01 0 9 = 00000b00 00000000 71
ffff91a503330c00 945660172 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b4000000 00000000
ffff91a5031289c0 945660405 C Ii:011:01 0 9 = 00000000 00000000 71
ffff91a503331400 945690166 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b4000000 00000000
ffff91a5031289c0 945692405 C Ii:011:01 0 9 = 00001800 00000000 71
ffff91a503331c00 945737172 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945740402 C Ii:011:01 0 9 = 00001811 00000000 71
ffff91a503331400 945779161 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945780414 C Ii:011:01 0 9 = 00001100 00000000 71
ffff91a503331400 945922177 S Zo:010:04 -115 1056 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 945924412 C Ii:011:01 0 9 = 0000110e 00000000 71
ffff91a503331400 946012161 S Zo:010:04 -115 1056 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 946012402 C Ii:011:01 0 9 = 00001100 00000000 71
ffff91a503331c00 946131172 S Zo:010:04 -115 1060 = eeffffff 00000000 b4000000 00000000 eeffffff b4000000 b0000000 00000000
ffff91a5031289c0 946132402 C Ii:011:01 0 9 = 00000000 00000000 71
ffff91a503331400 946155173 S Zo:010:04 -115 1056 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 946156366 C Ii:011:01 0 9 = 00001800 00000000 71
ffff91a503330c00 946268171 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 946268402 C Ii:011:01 0 9 = 00001811 00000000 71
ffff91a503331c00 946328162 S Zo:010:04 -115 1060 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 946332402 C Ii:011:01 0 9 = 00001100 00000000 71
ffff91a503331400 946352170 S Zo:010:04 -115 1056 = eeffffff 00000000 b0000000 00000000 eeffffff b0000000 b0000000 00000000
ffff91a5031289c0 946356395 C Ii:011:01 0 9 = 00000000 00000000 71

PatTheSilent avatar Jan 28 '19 08:01 PatTheSilent

I am trying to address the same issue on my HP wireless keyboard + mouse combo (HP Pavilion 800). Could someone ( @avidality @felipeespic @PatTheSilent ) describe how you generated the input you have posted in this thread?

JohnJohanssonChalmers avatar Feb 19 '19 16:02 JohnJohanssonChalmers

Ok, now I figured it out. Here is what my HP keyboard gives when pressing the a key:

ffff980fbd2b6540 369826003 C Ii:1:002:1 0:8 8 = 00000400 00000000
ffff980fbd2b6540 369826052 S Ii:1:002:1 -115:8 8 <
ffff980fbd2b6540 369881997 C Ii:1:002:1 0:8 8 = 00000000 00000000
ffff980fbd2b6540 369882035 S Ii:1:002:1 -115:8 8 <

And here is what a wired USB keyboard gives when pressing the a key:

ffff980fc5bf2600 630511392 C Ii:1:005:1 0:16 8 = 00000400 00000000
ffff980fc5bf2600 630511443 S Ii:1:005:1 -115:16 8 <
ffff980fc5bf2600 630607390 C Ii:1:005:1 0:16 8 = 00000000 00000000
ffff980fc5bf2600 630607432 S Ii:1:005:1 -115:16 8 <

And here is what my HP keyboard gives when pressing some function buttons that actually work (volume buttons, windows button, etc):

ffff980fbd2b6900 1232298250 C Ii:1:002:2 0:8 3 = 01ea00
ffff980fbd2b6900 1232298300 S Ii:1:002:2 -115:8 3 <
ffff980fbd2b6900 1232394303 C Ii:1:002:2 0:8 3 = 010000
ffff980fbd2b6900 1232394319 S Ii:1:002:2 -115:8 3 <
ffff980fbd2b6900 1234218186 C Ii:1:002:2 0:8 3 = 01e200
ffff980fbd2b6900 1234218241 S Ii:1:002:2 -115:8 3 <
ffff980fbd2b6900 1234298196 C Ii:1:002:2 0:8 3 = 010000
ffff980fbd2b6900 1234298257 S Ii:1:002:2 -115:8 3 <

The only possibly relevant difference seems to be 16 vs 8 after the last colon. Does that make any sense?

JohnJohanssonChalmers avatar Feb 19 '19 21:02 JohnJohanssonChalmers

Ok, I made some small modifications to the code and got it to work with my keyboard. I will post my modified code as a new fork later this week.

JohnJohanssonChalmers avatar Feb 19 '19 23:02 JohnJohanssonChalmers

I have now posted the fork with my modifications at: https://github.com/JohnJohanssonChalmers/hp_wireless_keyboard

@avidality and @felipeespic feel free to test if my fix works for you.

JohnJohanssonChalmers avatar Feb 20 '19 21:02 JohnJohanssonChalmers

@JohnJohanssonChalmers Thanks a lot, works fine for my Lenovo 510 Wireless Combo. Num keys also are ok

BorisKoval avatar Mar 07 '19 21:03 BorisKoval

@BorisKoval Great to hear! I added your model under the compatibility section of the readme file in my repo with you as a reference. I hope you don't mind.

JohnJohanssonChalmers avatar Mar 08 '19 15:03 JohnJohanssonChalmers

@JohnJohanssonChalmers Sure, my os Ubuntu 16.04 LTS, if it's needed.

BorisKoval avatar Mar 08 '19 18:03 BorisKoval