It seems that when the keyboard is connected and supplying power the USB C port on the phone should sink power but also act as USB host...
So I wonder:
Is there any way to switch the USB C between sink and source modes from user space?
Is there any way to switch between USB host and device mode from user space?
06-11-2022, 04:26 AM
(This post was last modified: 06-11-2022, 04:29 AM by theResonant.)
On postmarketOS, when the keyboard is not attached, the USB-C hub obviously works well with the phone (peripherals + HDMI), but only when external power is fed into the hub. This restriction is probably imposed by the OS.
When the keyboard is attached, I never tried the hub in the phone's USB connector (there's waaay too much ambiguity everyhwere I've read), but connecting the hub to the keyboard's USB connector does not work at all. Even if the keyboard is providing power (I pressed its button to start charging the phone).
I'm assuming the following should work, but I've never tried: to connect the hub to the phone's port, without feeding external power into the hub, but enabling power from the keyboard alone. That's because the keyboard battery is wired directly to the phone's USB power line, so the hub will act as if it is powered from the phone, and the phone will not send power to the port at all, relying on the keyboard only?
It's almost as if the OS is already smart enough to make this work, it looks like it, but I'm too worried to try. Would this make sense?
Thanks a lot for this precious information. I sounds a bit Voodoo. I suppose we need a scientist to investigate all the details. We are ready to sacrify us for such research project. If what comes out is a working usb-c to HDMI device with keyboard and mouse, it is worth to start an investigation.
In the store it says it works with PostmarkedOS. Does the desktop (posh, gnome) also matter?
Well good to know. Mayby the keyboard has an "identity crysis" and does not know who it really is, and causes trouble in that way and distrubs the HDMI connection. We have also read that it is worth to plug in and then to unplug the usb-c adapter several times. One user reported that he got the HDMI adapter to work in that way.