On Sat, 3 Apr 2010, William Lovaton wrote: > Hello there, > > I'd like to know what is the status of the suspend support in usbaudio. I'm using this driver but it doesn't seem to auto suspend. uvcvideo is now working fine: > https://bugzilla.kernel.org/show_bug.cgi?id=11948 > > Hardware: Bus 001 Device 003: ID 046d:08c6 Logitech, Inc. QuickCam for DELL Notebooks As far as I can tell, usbaudio does not currently support autosuspend, with the single exception of the (experimental) us122l driver. > But the microphone device does not suspend and I have to suspend it manually for it to save power (about 1 watt): > echo suspend > /sys/bus/usb/devices/1-5/power/level > > This command used to work for me but now that I am testing the latest Fedora Rawhide (fc13) it is throwing the following error: > -bash: echo: write error: Invalid argument > > Why is this? Would it be a good idea to report this problem in kernel bugzilla? if so, under which component/module?? how can I test if userspace is keeping the device open (maybe pulseaudio)? Starting in 2.6.33, the kernel no longer accepts "suspend" as an input to the power/level attribute. If you want to suspend a device manually, the easiest way is to unconfigure it: echo 0 >/sys/bus/usb/devices/1-5/bConfigurationValue Remember first to make a note of what value was originally in that file, so that you can reconfigure the device later on (by writing the old value back). Usually the old value will be 1, but not always. > It would be great if the device just suspend automatically out of the box when not in use. I agree. You'll just have to convince somebody to add autosuspend support to the usbaudio driver. It shouldn't be very hard to do if all you want is for autosuspend to kick in when the device file is closed. 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