-
Notifications
You must be signed in to change notification settings - Fork 287
Fix Usb Gadget when attached after power-up #1062
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 42 out of 42 changed files in this pull request and generated 17 comments.
Comments suppressed due to low confidence (2)
internal/usbgadget/usbgadget.go:185
- File handle may be writable as a result of data flow from a call to OpenFile and closing it may result in data loss upon failure, which is not handled explicitly.
u.absMouseHidFile.Close()
internal/usbgadget/usbgadget.go:189
- File handle may be writable as a result of data flow from a call to OpenFile and closing it may result in data loss upon failure, which is not handled explicitly.
u.relMouseHidFile.Close()
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6bdbca4 to
96d7189
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LED state synchronization stops working after 1-2 runs of make test_e2e. The keyboard and mouse movement both work, it's just the LED state that stops updating. A restart fixes the issue.
Also, worth mentioning is that I can also reproduce this issue latest dev without this PR.
|
I will look into the LED state issue. When you say it "stops working" do you mean that the client doesn't track the server state, or do you mean the UI doesn't track the RPC pushes? |
|
The remote host receives all keys and mouse events, it's just that the UI doesn't properly reflect the LED State. This makes the |
I'll dig in this weekend... what LED state are we tracking, and what is the test JetKVM physically attached to on the USB port? I notice that MacOS doesn't light the CapsLock LED as I would expect (never really has...) Do you know what kind of machine the Jet is driving? |
|
The remote host i'm testing on is on Ubuntu 24.04. |
960e70b to
624408f
Compare
|
So I did a few things:
|
fe1b02e to
0627885
Compare
This feels like something is broken. Any special reason for this? |
Honestly, this was to address your observation that we were failing occasionally to track the LED state in E2E. I didn't really ever see that, but put this in as a backup plan. We could not do it at all, or change the poll rate. |
0627885 to
1c6ebef
Compare
|
This does not resolve issue #128 for me on an Ubuntu 24 remote host. Steps to reproduce:
Result: |
|
I'm powering from the USB splitter (power side going to a dumb USB charger) plugging the USB data-side of the splitter into a MacBook after it and the JetKVM are fully booted. Shows the USB connected and the mouse and keyboard work without power any settings/reboots. So strange. |
|
That's so odd. Do you have an DC or ATX extension available to test my setup? Also, I'm getting a null pointer when disabling all the USB Devices. |
|
I just got around to testing my JetKVM. I've tested on 2 Windows 11 machines (latest updates). I cannot get the USB to register as connected on any USB ports on either machine. I made sure to update the JetKVM software first. Tried power cycling both PCs and JetKVM in different order, and still nothing. So, as of now can't use the KM rendering device unusable. |
|
Use the front panel to reset the JetKVM
…On Fri, Jan 16, 2026 at 1:26 PM MadYeti1984 ***@***.***> wrote:
*MadYeti1984* left a comment (jetkvm/kvm#1062)
<#1062 (comment)>
I just got around to testing my JetKVM. I've tested on 2 Windows 11
machines (latest updates). I cannot get the USB to register as connected on
any USB ports on either machine. I made sure to update the JetKVM software
first. Tried power cycling both PCs and JetKVM in different order, and
still nothing. So, as of now can't use the KM rendering device unusable.
—
Reply to this email directly, view it on GitHub
<#1062 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGVMS42JJARQLEZZNFAKMT4HE3NXAVCNFSM6AAAAACOX6O6WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTONRRGQ3TKMRYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Marc Brooks
http://about.me/IDisposable
http://twitter.com/IDisposable
|
|
Hey, I was able to get this to work finally- the solution was to use a
different USB-C to USB-A cable. Neither of the cables provided (USBC-USBC
or USBC-USBA) worked.
On Fri, Jan 16, 2026 at 5:53 PM Marc Brooks ***@***.***>
wrote:
… *IDisposable* left a comment (jetkvm/kvm#1062)
<#1062 (comment)>
Use the front panel to reset the JetKVM
On Fri, Jan 16, 2026 at 1:26 PM MadYeti1984 ***@***.***>
wrote:
> *MadYeti1984* left a comment (jetkvm/kvm#1062)
> <#1062 (comment)>
>
> I just got around to testing my JetKVM. I've tested on 2 Windows 11
> machines (latest updates). I cannot get the USB to register as connected
on
> any USB ports on either machine. I made sure to update the JetKVM
software
> first. Tried power cycling both PCs and JetKVM in different order, and
> still nothing. So, as of now can't use the KM rendering device unusable.
>
> —
> Reply to this email directly, view it on GitHub
> <#1062 (comment)>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAGVMS42JJARQLEZZNFAKMT4HE3NXAVCNFSM6AAAAACOX6O6WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTONRRGQ3TKMRYGU>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
--
Marc Brooks
http://about.me/IDisposable
http://twitter.com/IDisposable
—
Reply to this email directly, view it on GitHub
<#1062 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6KFICHSBYCR5RYS5KJG3234HF2YTAVCNFSM6AAAAACOX6O6WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTONRSGI2DMMBTHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Fixes #128
Summary