-
-
Notifications
You must be signed in to change notification settings - Fork 726
Keyboard and Mouse not working from 1.8.0 release on #423
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
Comments
I think the problems on Windows could be due to CDC Serial becoming pluggable, so the descriptor could be "reversed". About the keyboard bug I'll investigate later today. Same for Windows of course |
I found the culprit as commit a8d208a. Reverting looks safe but I want to investigate a bit more. |
The problems in windows are 2 (related):
|
any update on this? |
@pedroslopez are you still experiencing the issue? The main bug should be fixed on latest samd core, but the driver installation is still flawed (on win7) |
Yeah, it doesn't seem to be working for me. I'm running a test with the following code: #include <Keyboard.h>
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Keyboard.begin();
}
void loop() {
delay(5000);
Keyboard.print("hello");
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
} I just took the code from the first post of this issue and removed the button. The keyboard is not writing anything. I'm using Arduino 1.8.12, Windows 10 64 bit, keyboard library 1.0.2 with an MKR1000. |
Ok, so your problem is likely related with drivers installation; a solution is to open Device Manager and uninstall the MKR1000 drivers; after reset, both serial and HID (keyboard) drivers should be automatically installed (thanks to windows 10). The same procedure unfortunately doesn't work on WIn7 because the serial drivers are not included in the operating system. |
Hi @Workshopshed, |
So to clarify, there's no upgrade path from 1.6 to 1.8 that would correctly configure the drivers on Windows 10 and we need to work out which drivers uninstall and use a 3rd party tool to remove those? Or am I missing something? |
No 3rd party software should be needed (just Win device manager) but if you write an howto it would surely be useful. @per1234 @SimonePDA do we already have an howto somewhere in the website? The problem with our windows drivers is that they need the CDC descriptor to be the first and they replace the OS driver every time you install an 1.6.x version of the core. So, the first time you recompile on 1.8.x the cached driver will be loaded instead than the HID one. So yes, no clean upgrade path is possible unfortunately 🙁 |
This reverts commit a8d208a. Fixes arduino#423 on Linux/Mac (and Windows when Arduino standard drivers are uninstalled) Fix for normal behaviour on Windows is ongoing
You know what you don't require the keyboard.h or 32u4 based Arduino now, I got a solution to use the keyboard and mouse through any Arduino yes you read it right any! All you have to do is something like this:-
And now head to a python script and do this:-
BOOM YOU ARE DONE |
I made an IMU mouse using an older arduino studio 2.x.x, that version worked on win11 about 1 year ago (september 7 2023), but that version stopped working in the newer win11 versions. I think its about the windows/os HID drivers, not about the code or the arduino itself. I had the mouse.h working properly in a 2.x.x version, on win11, so its not strictly 1.8.0 onwards. |
Describe the problem
When using version 1.8.0 or higher of the platform, there are problems with HID functionality of the boards:
To reproduce
Equipment
Steps
Keyboard
🐛 If connected to a Windows machine, no text is typed.
🐛 If connected to a Linux machine, incorrect text is typed. For example:
Mouse
🐛 The mouse pointer does not move.
Has no effect on Windows, but seems to work correctly on Linux.
Arduino SAMD Boards (32-bits ARM Cortex-M0+) version
Operating system
Operating system version
Additional context
When compiled with version 1.6.28 or 1.6.21 of the platform, both sketches work as expected on Windows and Linux.
Reproduced using library versions:
Reproduced with the following boards:
Mouse emulation seems to work correctly on a Linux machine.
Additional reports
Related
The text was updated successfully, but these errors were encountered: