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

05AC:024F Apple Magic Keyboard with Numeric Keypad (model A1243) #4

Open
delan opened this issue Nov 11, 2023 · 1 comment
Open

05AC:024F Apple Magic Keyboard with Numeric Keypad (model A1243) #4

delan opened this issue Nov 11, 2023 · 1 comment

Comments

@delan
Copy link
Owner

delan commented Nov 11, 2023

reported by Anthony Sorace in http://a.9srv.net/reports/usb3sun.html

The behavior for the Apple keyboard is odd. The usb3sun makes no beep on connect, but makes the standard beep on disconnect. If a different (working) keyboard is attached, it behaves normally. If the Apple keyboard is re-attached, though, the usb3sun seems hung: no connections from any keyboard are recognized, and no beep is emited on disconnecting the Apple keyboard. A reset using the on-board button restores normal function. This keyboard is known to function normally with other non-Apple hardware (it was used to type this report while connected to a Raspberry Pi running Plan 9).

Notably, the Keyboardio Atreus does not exhibit this behavior; the usb3sun beeps on connect/disconnect as for the working keyboards.

plan 9 /dev/usb/ctl:

ep9.0 enabled control rw speed high maxpkt 64 pollival 0 samplesz 0 hz 0 hub 4 port 3 rootport 1 addr 7 busy
hub csp 0x010009 ports 3 ’Apple, Inc.’ ’Keyboard Hub’ xhci
ep10.0 enabled control rw speed low maxpkt 8 pollival 0 samplesz 0 hz 0 hub 7 port 2 rootport 1 addr 8 busy
hid csp 0x010103 csp 0x000003 vid 0x05ac did 0x024f ’Apple Inc.’ ’Apple Keyboard’ xhci
ep10.1 enabled interrupt r speed low maxpkt 8 pollival 10 samplesz 0 hz 0 hub 7 port 2 rootport 1 addr 8 busy
@delan
Copy link
Owner Author

delan commented Nov 11, 2023

The usb3sun makes no beep on connect, but makes the standard beep on disconnect.

this suggests we are getting our tuh_umount_cb (note: not tuh_hid_umount_cb) on disconnect, but not our tuh_hid_mount_cb (note: not tuh_mount_cb) on connect.

If a different (working) keyboard is attached, it behaves normally. If the Apple keyboard is re-attached, though, the usb3sun seems hung: no connections from any keyboard are recognized, and no beep is emited on disconnecting the Apple keyboard.

this suggests the usb stack may be hitting an assertion failure or one of its device limits.

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

No branches or pull requests

1 participant