mirror of
https://github.com/jetkvm/kvm.git
synced 2026-03-02 22:58:00 -05:00
LED State Synchronization Host Only Setting Does Not Work When Keyboard in Boot Mode #305
Labels
No labels
component/keyboard-layout
component: cloud
component: device screen
component: extensions
component: hid/keyboard
component: hid/mouse
component: network
component: timesync
component: ui
component: updater
component: usb
component: usb/hid
component: usb/storage
component: video
component: webrtc
component: webserver
need-more-details
status: working-in-progress
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/kvm#305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rmschooley on GitHub (Jun 1, 2025).
When JetKVM's keyboard is operating in HID Mode, JetKVM's LED State Synchronization Host Only Setting works just fine. This is because these led states are changed in this keyboard report mode (i.e. HID) using the keyboard's out endpoint and the current code monitors this endpoint to track the states of these leds (i.e. CapsLock, NumLock, and ScrollLock) so they can be displayed in the application at the bottom of the browser.
When JetKVM's keyboard is operating in BOOT Mode, JetKVM's LED State Synchronization Host Only Setting does not work. This is because the led states are changed in this keyboard report mode (i.e. BOOT) using the keyboard's default control endpoint and the current code does not monitor this endpoint to trace the states of these leds. In other words, the current code always monitors the keyboard's out endpoint and never monitors the keyboard's default control endpoint. As such, this setting cannot work when the keyboard is in this mode (which is often if not always used in BIOS).
Obviously, it is certainly possible the current code could be modified to monitor both the out endpoint as well as the default control endpoint to check for led state changes so that this code would properly work regardless of whether the keyboard was in BOOT Mode or HID Mode. Although there are probably multiple ways this could be done, one way would be to modify the linux usbgadget hid driver to capture these led state changes and provide a mechanism to alert and make these values available to the user-mode code.
There are more details about this issue in the notes for PR #530.