4 ms·
Linux has a very nice and super informative way to do this too: https://github.com/Rajaram-Regupathy/libtypec/wiki/lstypec-:-Know-your-USB-C-Ports https://githu
by chx 3y ago
Linux has a very nice and super informative way to do this too: https://github.com/Rajaram-Regupathy/libtypec/wiki/lstypec-:-Know-your-USB-C-Ports https://github.com/Rajaram-Regupathy/libtypec/wiki/lstypec-:...
It relies /sys/class/typec: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-typec https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-c... which does not always exist https://bbs.archlinux.org/viewtopic.php?id=274618 https://bbs.archlinux.org/viewtopic.php?id=274618 https://community.frame.work/t/tracking-controlling-power-direction-for-usb-c/19259/10 https://community.frame.work/t/tracking-controlling-power-di... https://www.reddit.com/r/UsbCHardware/comments/z92jgf/when_does_sysclasstypec_exist/ https://www.reddit.com/r/UsbCHardware/comments/z92jgf/when_d... etc.
- Feathercrown 3y ago> Linux has a very nice way to do this [...] which does not always exist Some things never change haha