mirror of
https://github.com/jetkvm/kvm.git
synced 2026-03-02 22:58:00 -05:00
JetKVM doesn't wake PC from sleep #89
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#89
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 @cuter-doc0 on GitHub (Jan 30, 2025).
I'm using JetKVM to setup a new Dell OptiPlex Micro 7020
I already know about the issue where keyboard and mouse are not detected by bios/firmware (of the pre-boot environment)
New issue I wasn't able to find a issue raise on is that JetKVM will not wake my sleeping PC.
Symptom are that JetKVM will show USB connected but no HDMI input.
Troubleshooting on a sleeping PC:
What has worked to wake the PC:
App: 0.3.5-dev202501291218
System: 0.2.0
What I'd like to see is that keyboard and mouse inputs from JetKVM continue to be sent to the PC regardless of HDMI input status. Although I'm not sure if it is or isn't at this stage...
@Nevexo commented on GitHub (Jan 30, 2025):
USB input is sent regardless of HDMI state, the computer is just ignoring it.
This might be fixed by #113? I'm not 100% sure what's responsible for waking the machine out of sleep, I assume the firmware is.
In which case, I think it's fairly likely that PR would resolve it.
There's a test build that has the fix and jetkvm-next-7 also includes it.
@FloobyFlaps commented on GitHub (Jan 24, 2026):
Hi, I'm seeing the same behavior.
My Setup:
What I found (Windows Device Manager → Power Data / Capabilities)
A USB mouse that can wake the laptop reports these capabilities:
JetKVM reports:
System mapping shown by Windows:
Observations:
PDCAP_WAKE_FROM_D0_SUPPORTED, so Windows may not treat it as a wake-capable device in sleep states.PDCAP_WAKE_FROM_D3_SUPPORTED, but it still wakes the system - so Windows might be using different wake paths (USB remote wake / selective suspend / HID rules), or it may not expose all wake details in that view.I hope this information helps.
If you need more information, just ping me.
Thank you
@FloobyFlaps commented on GitHub (Jan 24, 2026):
Probably related to #674
@FloobyFlaps commented on GitHub (Jan 24, 2026):
I think this issue is related to the USB gadget configuration.
Looking at the code here:
https://github.com/jetkvm/kvm/blob/dev/internal/usbgadget/config.go#L37
I noticed that only
MaxPoweris configured for the USB configuration descriptor.However, the USB specification also defines a
bmAttributesfield, which is currently missing.Relevant documentation: Source 1 Source 2 Source 3
bmAttributesis a bitmap:I don't know what the best default value is, but typical candidates would be:
0xA0-> bus-powered + remote wakeup0xE0-> self-powered + remote wakeupBased on #674,
0xE0is probably the correct default.In my personal setup the device is bus-powered, so
0xA0would apply.I’m not sure whether setting bmAttributes alone is sufficient for wake to work in all cases, or if additional handling is required in the gadget/UDC layer.
If I have time, I will try to test this change myself and report back.
Thanks!
@jlian commented on GitHub (Feb 1, 2026):
I don't have a JetKVM (yet) but I've fixed this on my TinyPilot.
I had to do a patch and recompile the RPi 5.15 Linux kernel. The most important part is below that fixes the
dwc2.I also had to fix the USB gadget configuration to add
wakeup_on_writeandbmAttributes=0xa0so the USB descriptor advertises suspend + wake support:If interested, you can read my long write up about this.
Once I get my hands on a JetKVM I plan on trying this more, but I hope this helps in the meantime. I don't know if the kernel JetKVM uses needs the same patch or not, but at the minimum it seems the USB gadget configuration is missing
wakeup_on_write.@JeremiahGillis commented on GitHub (Feb 16, 2026):
I also have the same issue on my Windows 11 machine.