Skip to main content
2 of 5
added 146 characters in body

PIKVM: OTG via USB-C port but powering via GPIO pins

For my PIKVM I want to use the OTG functionality of the USB-C port of my Raspberry Pi 4 to control mouse and keyboard, however, I want to power the Raspberry via the GPIO pins instead, because I don't really like the Y-cable solution so much - and as far as I know, the RPI 4 doesn't have a polyfuse for the USB-C port anyway, so there is no benefit from exclusively using the USB-C port.

However, is it enough to connect the host (mainboard) using a USB 2.0 <-> USB-C cable to the Raspberry and disconnecting VBUS? In this tutorial where they show how such a Y-cable is made they only disconnect VBUS:

enter image description here

On the other hand, in this answer a user explained that only connecting D+, D- and GND is not really that safe because the voltage level of D+/D- could be higher than VBUS. What I understood is, that one would have to make sure that the cable from host to RPI is not plugged in before the PSU for the RPI is. Why is that?

Both server and PIKVM will run 24/7, so they are not regularly disconnected, but I don't want to risk anything.