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
Windows: UHK prevents sleep #85
Comments
I can reproduce this issue. I think chances are good it's related to #84. |
DIsabling the mouse in Device Manager doesn't seem to fix the issue for me. |
Same here, I can also reproduce this issue, but unlike #84, disabling the mouse the does not fix it. |
I noticed today that my computer went to sleep while my UHK was plugged in. Wondering why this was the case, I then noticed that the left half of the keyboard was not responding ( see #74 ). Unplugging the bridge cable and replugging it woke up my computer... |
@Hurricaaane Thanks for the info! #74 apparently affects the USB interrupt, too. Fixing #74 will make this always an active issue, so this will have to be separately fixed regardless. |
Tested this but alas no luck on my machine. I set Windows display sleep to 1 min and computer sleep to 2 min but my UHK has to be disconnected for either to happen. I tried disconnecting left side, disconnecting cable entirely and connecting the halves together without cable. So I think for this issue you can at least partially rule out the left side causing this. I also can't wake the computer by pressing a key on the keyboard. |
Disconnecting the left half doesn't eliminate this issue. It gets only temporarily eliminated if the communication between the halves halt due to #74. I think I don't have any more information for this to resolve it. |
To me this seems like there is some unsolicited communication from the UHK to windows. Once I had an Arduino Leonardo, which also could act as mouse. To cheat a bit, I created a program to move the mouse a little bit every now and then, to show my colleagues that I'm still behind my desk and hard at work 😆. My system didn't lock itself or did go to sleep. I'm also curious if this happens on other OS'es too. IMO it should behave the same. I will check on my system with Fedora 27 |
I tested Fedora 27 and Windows 8 on my dual boot system.
Also,
On both systems I didn't have installed the Agent. Do I need extra drivers for the keyboard? |
The UHK is a composite USB device which implements 5 USB interfaces, so this is normal. OpenMoko allocated us several PIDs (instead of buying a VID from usb.org for $5K), so this is normal too. We know about the problematic interface on Windows. No extra drivers should be needed. |
I can confirm I also see the one device with a warning. Removing it has no effect on this issue. I tried connecting my UHK to my 2016 Macbook Pro and display sleep at least works as normal. So this seems to be an issue with UHK and Windows. I tried checking |
Thanks for clearing this up. I think that first #76 should be fixed before we can say anything more about this issue. edit I see, you have already referenced the issues |
No malformed messages should be going around. Windows just doesn't seem to be happy with the USB desciptor of an interface. I'll look into #76. |
I can confirm that the UHK sends data continuously via USB even though no buttons are pressed. Btw you can easily capture the packets in real time using Wireshark: https://www.wireshark.org/. |
I just checked another keyboard and it does exactly the same thing. |
A third keyboard did the right thing and works with Windows. PR #120 should fix this issue. Please test and report back. |
Can confirm, works now. I tested only the monitor sleep but since that works, so should the full sleep. Great work! |
Thanks, I also confirm it works ✔️ |
Add ifLayer and ifKeymap commands.
With the UHK connected, my computer running Windows 10 64-bit won't go to sleep at all. Display won't sleep either so I assume that UHK keeps doing something over the USB as disconnecting it fixes the issue.
The text was updated successfully, but these errors were encountered: