ec icon indicating copy to clipboard operation
ec copied to clipboard

lemp9 > USB-C DP and Charging Not Working from Cold Boot

Open WatchMkr opened this issue 4 years ago • 2 comments

While testing a display, I found that charging and DP did not work after cold booting with the monitor plugged in. After unplugging and plugging in the display, both work. I haven't tested other laptop models and only had the lemp9 for a short period so I couldn't confirm on other displays.

https://www.dropbox.com/s/auf4jags0snswld/lemp9-usbc.mp4?dl=0

WatchMkr avatar Sep 28 '20 20:09 WatchMkr

Hmm, I've not seen that on the lemp9 I've been using, and I've been using my external 4K display with a USB-C cable with it for a long time. My display does not charge over USB-C though, so I bet it's unique to that scenario.

leviport avatar Sep 28 '20 21:09 leviport

I think this might be a problem with this specific ANX7411 USB-C port controller. From reading their documentation it seems as if the port can detect cable attach and detach and that is when the role direction setting takes place (as input, output, or both). It seems, with the way they do, when the port initializes it is given one of these two directional states, this being DFP(downstream facing port) or DRP(dual role port). Now, all the stuff I just said works fine when something is plugged in after the USB-C controller is initialized, but when something is already plugged in, the port does not set a transfer direction and instead sits in a floating state until the reattachment of the cable invokes the directional state to finally be set.

As far as @leviport situation would go, my best guess would be that the USB-C controller, because it was in a monodirectional state, initializes normally as it should.

This almost appears to be an unaccounted-for edge-case that the firmware on the USB-C controller does not know how the handle. Seems to me to be a massive oversight by Analogix.

Of course, this is only a best guess but (with the information I have albeit this being a limited knowledge on USB-C controlers) seems to fit what is happening.

RemingtonHolder avatar Dec 31 '20 00:12 RemingtonHolder