Re: [linux-pm] [RESEND patch 2.6.25] ACPI uses device_may_wakeup() policy inputs

Pavel Machek
2008-05-14T14:56:36Z

Hi!

> > > Indeed, it's easy to imagine a situation where somebody suspends their
> > > laptop and then unplugs a USB mouse, thereby causing a wakeup event.
> >
> > It's also easy to imagine getting used to unplugging
> > such devices *first* ... :)
>
> Maybe. But people aren't likely to unplug the mouse first if
> suspending the laptop is done by clicking on a "Suspend" button. :-)
>
> Or consider the case of a flash drive with a mounted filesystem. You
> can't safely unplug it before suspending, but you can safely unplug it
> after suspending (provided you remember to plug it back in before
> resuming).
>
> Besides, people will complain that the [insert your choice] operating
> system doesn't make them remember to unplug USB devices before
> suspending, so why should Linux?

Besides, its a regression.

So we really should just default to the current behaviour on ACPI
systems: lid and power button wake up the system, other devices don't.
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html