Re: Disabling per-device autosuspend

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

 



On Wed, Jan 04, 2023 at 09:14:53PM +0100, Petr Tesařík wrote:
> On Wed, 4 Jan 2023 14:39:51 -0500
> Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> 
> > Another option would be to create a short udev script that would write 
> > "on" to the power/control attribute file (thereby turning autosuspend 
> > off) whenever it sees a new USB device with the vendor and product IDs 
> > of your phone.  That seems like a very practical solution.
> 
> Yes, that sounds good, because autosuspend is usually not set to zero.
> Thank you! FWIW it works for me, and I have also proposed this solution
> in the heimdall GitHub issue. They install their own udev rules file
> already, so the patch is a one-liner.
> 
> BTW manufacturing broken USB devices in large quantities should become
> a crime and a federal felony... ;-)

Alas, a large fraction of the perpetrators are outside the US's 
jurisdiction.

Anyway, congratulations on fixing your problem.  And in just a few 
hours!

Alan Stern



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

  Powered by Linux