On Wed, Feb 25, 2009 at 12:22:37AM +0100, Stephen J. Gowdy wrote: > Hi Sarah, > I just tried two devices and the script said they failed. However, > there were lots of errors from the script so perhaps I need something > else turned on in my kernel? I've attached the broke-devices file anyway. > Here is the output from the script; > > These devices support auto-suspend and can be tested: > 1 Bus 003 Device 003: ID 03f0:171d Hewlett-Packard Wireless > (Bluetooth + WLAN) Interface [Integrated Module] > 2 Bus 005 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 > Fingerprint Sensor > > Which USB device would you like to test? (0 cancels test): 1 > > cat: /sys/bus/usb/devices/3-1/power/autosuspend: No such file or directory > cat: /sys/bus/usb/devices/3-1/power/level: No such file or directory > cat: /sys/bus/usb/devices/usb3/power/level: No such file or directory > Enabling auto-suspend. ./usb-pm-tool.sh: line 276: > /sys/bus/usb/devices/3-1/power/autosuspend: No such file or directory > ./usb-pm-tool.sh: line 278: /sys/bus/usb/devices/usb3/power/level: No > such file or directory > ./usb-pm-tool.sh: line 280: /sys/bus/usb/devices/3-1/power/level: No such > file or directory Do you have CONFIG_USB_PM enabled? From this output it looks like you don't have that option enabled. Or maybe you're running on a really old kernel that doesn't have the level or autosuspend files? Can you run uname -a? Sarah > On Tue, 24 Feb 2009, Sarah Sharp wrote: > >> A couple months ago, I started on a tool to automatically test and enable >> automatic power management for USB devices. The USB Power Management tool (USB >> PM tool) is now mostly complete, and is available for download: >> >> git clone git://git.moblin.org/usb-pm-tool.git >> >> I would love for people to start testing USB devices with this tool. I haven't >> yet found any devices that can't handle selective suspend, so I really need >> testers with broken USB devices. >> >> If you run the tool and test a couple devices, please send me these two files: >> >> /etc/usb-pm-tool/pm-enabled-devices.txt >> /etc/usb-pm-tool/pm-broken-devices.txt >> >> >> About the tool: >> ============== >> >> The script usb-pm-tool.sh will present the user with a list of devices on their >> system that are capable of auto-suspend. The user picks a device to test, >> follows the prompts on the screen, and reports whether the device works >> successfully after the auto-suspend test. >> >> If the device passes the test, the script will prompt the user if they always >> want to enable auto-suspend for this device. If so, the script will generate a >> udev rule to enable auto-suspend for the device whenever it is plugged in. >> Enabling auto-suspend will lower system power consumption, but only if *all* the >> USB devices on the system have auto-suspend enabled. >> >> Eventually I want the tool to ask the user if they want to send info about their >> device to a centralized server. Then people could download the latest list of >> devices that correctly auto-suspend. That's still work in progress. >> >> Thanks for testing! >> >> Sarah Sharp >> -- >> 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 >> > > -- > /------------------------------------+-------------------------\ > |Stephen J. Gowdy | CERN Office: 8-1-11| > |http://cern.ch/gowdy/ | CH-1211 Geneva 23 | > | | Switzerland | > |EMail: gowdy@xxxxxxx | Tel: +41 76 487 2215 | > \------------------------------------+-------------------------/ > 03f0:171d > Notes: Device disconnected during test. > 08ff:2580 > Notes: Device disconnected during test. -- 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