zmk icon indicating copy to clipboard operation
zmk copied to clipboard

BUG: USB Power detected as a host

Open hahuang65 opened this issue 3 years ago • 2 comments

Having a USB-power cable drive the keyboard (not attached to a laptop, cable without data) still has the firmware thinking it's attached to a host, which sends data over USB, instead of BLE.

If the power source isn't detected to be an actual host, it would be nice to automatically switch over to BLE transmission.

hahuang65 avatar Jun 15 '21 04:06 hahuang65

Temporary solution: use &out OUT_BLE binding (https://zmk.dev/docs/behaviors/outputs)

i7d3v3l0p3r avatar Jun 21 '21 08:06 i7d3v3l0p3r

Oh, I just got caught out by this issue. I see it's been going on for a while...

Is it realistically possible to get it fixed? QMK uses USB activity for sidedness detection, would it be possible to somehow monitor USB activity to decide if there's a host connected to USB?

piit79 avatar Apr 11 '24 15:04 piit79