Re: Autosuspend is not automatically enabled for plugged-in usb devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Saturday 09 May 2009, Alan Stern wrote:
[...]
> > Of course I can enable autosuspend manually:
> 
> > But this should be done every single time after device plug-in. 
Currently I use
> > udev for this task, but it looks like an ugly hack. Is there any 
better way to
> > handle this?
> 
> I don't know.  In theory programs like hal should take care of this for
> you, but I'm not aware of how much progress has been made in this
> direction.

Well, currently I'm rather happy with udev and whitelist.

> > IMO if kernel is configured with USB power saving enabled, it
> > *should* be enabled by default. Is there any reason to avoid this?
> 
> Yes indeed.  A large percentage -- hard to estimate, but more than
> large enough to cause widespread problems -- of USB devices can't
> handle being suspended.  They just die.
> 
> If the kernel automatically suspended every USB device when it wasn't
> in use, there would be loud and voluminous complaints.  I know, because
> the kernel used to work that way -- and there were!  That was back
> around 2.6.22 or earlier; see
> 
> 
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=7d2c592609a7da950b458403f1936d382f38ff9c

Ok, thanks for explanation. Previously I thought it will be good idea to 
use a blacklist, now I see why it isn't ;).

-- 
Best regards,
Andrew

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux