NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Uhubctl – control USB power per-port on smart USB hubs (github.com)
redpinelabs 1 hours ago [-]
Super useful, just wish it was easier to find supported devices. I ended up ordering 3 from Amazon that looked like they should work from the list, but ended up not completely cutting power, or having other issues. I think especially the cheap hubs will changes the parts used overtime and not update the revision.

Using on a CI pipeline to dfu flash and devices and run some tests. If anyone has some know to work that I order today let me know!

msbroadf 27 minutes ago [-]
I created these which I guarantee to work https://modularkvmip.com/product/usb-hub
zephen 17 minutes ago [-]
These are what I use: https://www.amazon.com/dp/B096YKDYX5

However, to your point:

> I think especially the cheap hubs will changes the parts used overtime and not update the revision.

Yeah, the last time I purchased them was December 2022, so I definitely don't know for sure that they still work. But they aren't the cheapest hub, so maybe?

But at that time, I purchased hubs from several manufacturers, and most of them didn't work. The first thing I had working was actually an eval kit from an IC vendor.

Also, many hubs that can theoretically be used powered or unpowered are terrible about backfeeding power, either to the host, or (more commonly) to the wall wart.

It's best to either always use the hub unpowered, or to buy a hub that always requires power, unless you've checked and made sure that it's not going to screw you over.

ValdikSS 1 hours ago [-]
My display has USB hub with several USB ports in it.

I've taped a LED strip on the back of the display and powered it from one of the USB ports.

By running `uhubctl --vendor 0451 --action toggle --port 4` from the desktop shortcut, I can toggle LED strip on and off, Philips Ambilight-style.

_def 28 minutes ago [-]
I use this to toggle power to a 3d printer. It gets it actual power from a switched socket but usb still powers the board.
EvanAnderson 2 hours ago [-]
Turning things on and off with a computer is always fun to me (think X10 modules, blinking LEDs with an Arduino, etc). That in itself makes this neat to me.

There's probably a way this could be used to floating batteries at around 80% on devices that support throttling their own charging.

fhn 32 minutes ago [-]
nice. I was actually looking for something to control the power on the computer's ports. I have a lidar connected to Orin(running Ubuntu) and the lidar constantly turns. Being able to control power to that would be nice. I think powertop would work, haven't tried it yet.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 19:48:46 GMT+0000 (Coordinated Universal Time) with Vercel.