On 06/11/14(Thu) 14:38, lm wrote: > Hello there, > > I'm trying to reduce power consumption on my OpenBSD laptop, > and I can't find the way to suspend some USB devices I never > use (like the webcam and the DVD drive). > > Does anybody know a way to do this from userland? If not, > is it possible to do it with some coding?
There's currently no support for reducing power consumption of USB devices on OpenBSD. But if you want to do some coding, I'll suggest you to start looking at a way to suspend USB ports when there is no device attached, then you'll to find a way to check if a device is idle in order to adapt this mechanism to unused devices. This will require some change to uhub(4) and the various *hci(4). You can read chapter 4.3.1 of EHCI specification as a starting point :)

