-
Notifications
You must be signed in to change notification settings - Fork 5k
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
On Pi4, a Microsoft Wireless mouse and keyboard USB receiver does not work after reboot #3334
Comments
What power supply are you using? Do you get any low power warnings? (Yellow lightning bolt, error in dmesg?) |
my power supply is 5V 3A, https://www.zmiusa.com/products/zmi-usb-c-pd-power-adapter |
Reproducible with a On a reboot with the device plugged directly into the Pi 4, the device will respond to Setup packets and correctly processes the SET_ADDRESS command, but never responds to the data stage of the GET_DESCRIPTOR(DEVICE) request. A workaround is to use a hub between the Pi and the device. It doesn't matter if the hub is bus- or self-powered. |
I don't have usb-hub right now, Is there any way to modify some configuration to solve the problem. |
It's unlikely that there is one. The wireless dongle that I have will even get stuck in the bad state without a reboot - if the dongle is plugged in while the Pi's USB port power is switched off (i.e. for the first 5-6 seconds during boot) then the same device hang occurs. |
Is there any solution? I'm having the same issue with Ubuntu 19.10 Sever (Raspberry Pi 4 4Gb) and MS Surface mouse/keyboard. The boot time is also something like 3-5 min |
Same issue here with this Non-microsoft USB keyboard: It's completly dead on boot up, just needs replugging. I don't see anything unusual in the dmesg output. Power supply is: Canakit 3A (https://www.canakit.com/raspberry-pi-4-power-supply.html) |
same here |
Same issue here with Rapoo 1800 wireless USB KB&Mouse on Pi4B with latest Raspbian buster image. Is it possible to simulate USB dongle re-connecting by commands or scripts? |
same here microsoft comfort keybord mouse with Raspberry Pi 4B |
You can try this (see my last post): |
Thank you 59iosl30 |
This is a very strange issue. I needed hours to identify this problem (which does not occur on RPi3) but my last post/workaround works for me in combination with a mechanical keyboard from a different vendor. The keyboard was perfectly recognized at every boot on RPi4. |
I also stumbled upon this issue with pi4 and two different Logitech mice and keyboards. They don't work after powerup, start working after removing/inserting the dongle and stop working again in several minutes. In the same time, another combined mouse+keyboard by Logitech works perfectly. |
Add me to the list of users with this issue. Just purchase the MS 900 Desktop combo for my Pi4B and i have to reinsert the USB receiver after each boot. |
Please could you try temporarily adding sdhci.debug_quirks2=4 to cmdline.txt so see if the behaviour changes? This prevents the voltage switch for UHS on the SD-CARD (which reduces performance) but has the effect of not requiring the PMIC to be reset during a reboot. |
I added sdhci.debug_quirks2=4 to cmdline.txt as instructed. Edit: Adding usbcore.old_scheme_first=1 to cmdline.txt as suggested by @59iosl30 appears to have corrected the issue, after the first reboot atleast. Alpine Linux 3.12 |
Thanks @el1-x If you are comfortable trying the beta version of the bootlaoder then the latest release (2020-06-12) toggles the USBB port power during reboot. N.B. This is a beta release so you should only install this if you are already familiar with installing and reverting beta versions of the bootloader. Use the Raspberry Pi Imager to install version 2020-06-12 |
I will keep the beta bootloader in mind. I have not used a beta release, but happy to familiarise myself. I seems that usbcore.old_scheme_first=1 may have worked, but i must say, i have no idea what it has done. |
In my case this only works in 64-bit mode: /boot/config.txt: Since I added these two parameters I haven't any issues with the RPi4. |
I now have a Microsoft Wireless mouse and keyboard 900 and was able to reproduce the problem on a Pi 4 4GB. It seems that this USB device fails if there is a small glitch during the reset/reboot. This resolves the issue for me and will be released via APT next week but if you are familiar with bootloader updates you can grab the binaries from Git |
Same problem with DAS keyboard. This keyboard works fine on a Pi3. OS: retropie and ubuntu MATE (latest version) |
Please try with Raspberry Pi OS the latest beta bootloader. It works for me now |
Thanks! I am happy to confirm that installing the beta bootloader in retropie (it's based on raspberrypi os, after all) works! The usb keyboard is working fine in both Retropie and ubuntu MATE now. |
Thanks @pelupessy for confirming the fix. That helps to justify promoting this to stable as hopefully the last candidate for the next production bootloader. |
Updating to latest stable worked for me. Thanks everyone who worked on the fix |
Describe the bug
On Pi4, the USB mouse and keyboard cannot work after the system is newly started, but it works normally after re-plugging the usb receiver
Same keyboard works fine on Pi3B.
To reproduce
Insert the USB receiver, restart the system, after restarting, the USB keyboard and mouse do not work, re-plugging the USB receiver, the keyboard works fine.
System
Pi4
cat /etc/rpi-issue
)?Raspberry Pi reference 2019-09-26
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 80d486687ea77d31fc3fc13cf3a2f8b464e129be, stage5
vcgencmd version
)?Sep 24 2019 17:34:30
Copyright (c) 2012 Broadcom
version cd3add54955f8fa065b414d8fc07c525e7ddffc8 (clean) (release) (start
uname -a
)?Linux raspberrypi 4.19.75-v7l+ solved issue of mirroring screen after rotation. #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
Logs
dmesg.log
after restart system:
re-plugging usb receiver, usb keyboard works fine
Additional context
change another logitech usb mouse, there no problem, the microsoft keyboard have this issue.
I googled error code -110, found this
https://stackoverflow.com/questions/13653692/device-descriptor-read-64-error-110
I checked the power supply, the issue remains even only the usb receiver is re-plugging.
The text was updated successfully, but these errors were encountered: