An unofficial, read-only Hacker News reader.

Splitting USB-C: USB 3 and USB 2 on one port (opens external site)

158 points by fcjr 5 days ago | www.frankchiarulli.com | 112 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. It gets even weirder with some USBC ports, rather than implement the flipping connector support they wire a different USB port to each side of the plug, meaning the device tree is literally different depending on connector orientation. Lots of motherboards with 2 USBA and one USB C do that with a 4 port hub.
    Replies (2)
    1. That's wild. Does the spec allow this? And why do they do that - is that cheaper or something?
      Replies (1)
      1. I believe it means you can skip a bunch of silicon to handle the logic by just duplicating the port on both sides and pretending they're independent.
        Replies (1)
        1. You can skip one dirt cheap, tiny multiplexer.
    2. What the fuck. Thanks, I think you just solved a bug that's been on my TODO list for like 6 months.

      I wrote a library [1] that lets you use CSS selectorish syntax to select USB devices (e.g. "any device that's on port 3 of a hub that also has a Logitech device connected on port 4" -> "(!hub > device[vid=046d, port=4]) > device[port=3]") so I could do automations for things like plugging in my laptop at one desk vs another, but one of my selectors I use on my desktop for a USB-C cable would rarely fail to trigger despite the device definitely being connected and working. I'll have to check this when I get home...

      1: https://github.com/jmgao/usbselector