public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Wakeup settings for USB hubs?
@ 2007-07-04 18:43 Alan Stern
  2007-07-05  7:20 ` Oliver Neukum
  2007-07-05 10:28 ` Zhang Rui
  0 siblings, 2 replies; 11+ messages in thread
From: Alan Stern @ 2007-07-04 18:43 UTC (permalink / raw)
  To: Linux-pm mailing list

Here's a question that has been bothering me for a while.  Should we 
enable remote wakeup on USB hubs?

On the face of it the answer is obviously Yes.  And certainly we want
remote wakeup enabled during a runtime suspend; otherwise the system
would never know when the user unplugged a device from the hub or
plugged in a new one.

But consider STR, say in the case of a laptop with a USB mouse
attached.  The user suspends the laptop.  Then he prepares to pack it
away and in the process unplugs the mouse.  Pow! -- the laptop
springs back to life.  That's not what we want.

On the other hand, the user might indeed want to awaken the laptop by
clicking the USB mouse.  So what should we do?  The question is made
even more difficult by the fact that, if the hub is already
runtime-suspended when the system suspend occurs, we would have to
resume the hub just in order to turn off remote wakeup!

Right now we more or less ignore all these issues by relying on the 
wakeup settings in sysfs.  Is that a reasonable approach?  Is there 
anything else we can do?

Alan Stern

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-07-18 10:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 18:43 Wakeup settings for USB hubs? Alan Stern
2007-07-05  7:20 ` Oliver Neukum
2007-07-05 10:28 ` Zhang Rui
2007-07-05 15:01   ` Alan Stern
2007-07-05 15:33     ` Rafael J. Wysocki
2007-07-05 19:18     ` Oliver Neukum
2007-07-05 19:51       ` Alan Stern
2007-07-05 20:40         ` Oliver Neukum
2007-07-05 21:03           ` Alan Stern
2007-07-05 21:30         ` David Brownell
2007-07-18 10:58           ` Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox