Skip to main content
1 of 5

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.

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.