Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
110.94k stars 10.63k forks source link

ERROR: REGISTER_HID: libusb error: Pipe error WARN: Register HID keyboard failed on MacOS #4901

Open dragonballa opened 5 months ago

dragonballa commented 5 months ago

Environment

Describe the bug Screen is smashed so I can't access to enable debugging and tried scrcpy --otg

INFO: USB device found
INFO:     -->       Generic Mass Storage Device

On errors, please provide the output of the console (and adb logcat if relevant).

ERROR: REGISTER_HID: libusb error: Pipe error
WARN: Register HID keyboard failed
scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
INFO: USB device found:
INFO:     -->     Generic Mass Storage Device
ERROR: REGISTER_HID: libusb error: Pipe error
WARN: Register HID keyboard failed
rom1v commented 5 months ago

For some reason, libusb does not detect your Android device:

INFO: USB device found:
INFO:     -->     Generic Mass Storage Device

Or maybe it's your device but in mass storage mode (to access the content of the device)? Try disabling this mode on your devife (switch to "charge only").