On Sat, 10 Jul 2010, Sarah Sharp wrote: > On Sat, Jul 10, 2010 at 09:56:21AM +0200, Oliver Neukum wrote: > > Hi, > > > > do we have a library function to enable autosuspend from userspace? If not, > > which would it belong into? > > There's the usb-pm tool I was working on. It includes a script to turn > a PID:VID into a udev rule to enable autosuspend when the device is > plugged in. The tool is supposed to dynamically allow users to test > whether their USB device supports autosuspend, but I haven't worked on > it for a while. > > It's all bash scripts, but I've been meaning to convert it to C so it > could be included in the usb-utils package. While you're at it, you should change "power/level" to "power/control" for kernels >= 2.6.35-rc1. The power/level attribute is deprecated and scheduled for removal sometime next year. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html