Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADB-USB: Adjustable keyboard media buttons doesn't work #130

Closed
tmk opened this issue Jul 20, 2014 · 4 comments
Closed

ADB-USB: Adjustable keyboard media buttons doesn't work #130

tmk opened this issue Jul 20, 2014 · 4 comments
Labels

Comments

@tmk
Copy link
Owner

tmk commented Jul 20, 2014

http://geekhack.org/index.php?topic=14290.msg1408316#msg1408316
"
I confirmed the issue you mentioned on Adjustable Keyboard, the keyboard stops working and only replys with error code 'FFEF' instead of keycode after those media keys are pressed.

Hmm, those media keys don't yield a keycode unlike other keys, it may need some special initialization or procedure to get keycode of the keys. we'll need to look for the information among old apple documentations.
"

@tmk
Copy link
Owner Author

tmk commented Jul 20, 2014

DEBUG: matrix enabled.
adb_host_kbd_recv: 87FF
r/c 01234567
00: 00000000
01: 00000000
02: 00000000
03: 00000000
04: 00000000
05: 00000000
06: 00000000
07: 00000000
08: 00000000
09: 00000000
0A: 00000000
0B: 00000000
0C: 00000000
0D: 00000000
0E: 00000000
0F: 00000001
adb_host_kbd_recv: FFFF
r/c 01234567
00: 00000000
01: 00000000
02: 00000000
03: 00000000
04: 00000000
05: 00000000
06: 00000000
07: 00000000
08: 00000000
09: 00000000
0A: 00000000
0B: 00000000
0C: 00000000
0D: 00000000
0E: 00000000
0F: 00000000
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)
adb_host_kbd_recv: FFEF
adb_host_kbd_recv: ERROR(-17)

@tmk
Copy link
Owner Author

tmk commented Jul 21, 2014

After pressing media key on Adjustable keyboad it starts 'Service Request' to send the scan code.
tmk adb converter supports just one keyboard and doesn't handle 'Service Request' so it fails to receive a code after that.

To receive from Adjustable keyboard adb.c is fixed to ignore 'Service Request' adhoc.(79840c6) Note that the mediakeys are not supported, just ignored.

Adjustable keyboard seems to be a composite device comprised of main-part keyboard and meidia key-part device. To read its meidakey-part scan code tmk will need to support multiple devices with handling 'Service Request' proplerly.

@tmk tmk added the NOTE label Jan 19, 2015
@tmk tmk closed this as completed Jan 19, 2015
seancaffery pushed a commit to seancaffery/tmk_keyboard that referenced this issue Feb 21, 2016
@tmk
Copy link
Owner Author

tmk commented Jun 4, 2016

Adjustable keyboard's media keys are supported now.
1bce71f

The keyboard has two address; 0x02 for main keyboard part and 0x07 for media keys. So converter has to poll the two address.

'Service Request'(Srq) will contribute to polling efficiency when you have to poll multiple addresses but it is not supported now.

@tjweir
Copy link

tjweir commented Jun 8, 2016

This is awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants