On Fri, 21 Sep 2007, Jiri Kosina wrote:The correct answer is that HAL should top polling while the device is suspended. In kernels starting with 2.6.23-rc6, the correct way to enable autosuspend for a USB device is basically like this: echo D >/sys/bus/usb/devices/.../power/autosuspend echo auto >/sys/bus/usb/devices/.../power/level where D is the time (in seconds) the device should remain idle before it is autosuspended. An autosuspended device will be woken up to respond to polls. (Note however that in this kernel, autosuspend support for USB mass-storage devices was removed because it can cause problems related to spinning down disk drives.) If instead you do echo suspend >/sys/bus/usb/devices/.../power/level it will simply suspend the device immediately. The device will not be woken up automatically and attempts to poll it (or do anything else) will fail. Alan Stern -
| Linus Torvalds | Re: LSM conversion to static interface |
| Ingo Molnar | [patch 03/13] syslets: generic kernel bits |
| Ingo Molnar | Re: [PATCH 6/6] sched: disabled rt-bandwidth by default |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| David Miller | [GIT]: Networking |
| Gregory Haskins | [RFC PATCH 00/17] virtual-bus |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
