Re: USB hot-plug not working (ASUS TP301UA-C4028T)

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

 



Hi Mathias,

FYI, turned out to be pretty easy. I got the tip from deano_ferrari without 
even asking:
https://forums.opensuse.org/showthread.php/519926-No-USB-device-detected?
p=2794434#post2794434

Simply adding this to GRUB options while launching kernel:
usbcore.autosuspend=-1
disables USB suspends and fixes the problem (well, "workarounds" it).

Weirdly enough, I still get "auto" on battery with:
cat /sys/bus/pci/devices/0000\:00\:14.0/power/control

Though I get "-1" from this:
cat /sys/module/usbcore/parameters/autosuspend

Not sure any of this is relevant, but I guess sharing information can't hurt.

Cheers,
Pierre.

Le vendredi 30 septembre 2016, 11:32:46 NZDT Mathias Nyman a écrit :
> On 29.09.2016 23:36, Pierre de Villemereuil wrote:
> > Hi Mathias,
> > 
> > It seems you are right: entering
> > echo on > /sys/bus/pci/devices/0000\:00\:14.0/power/control
> > does tame USB to behave properly.
> > 
> > However, every time the AC is plugged/unplugged, this value gets
> > overridden. Any way to make this permanent? (I realise this would harm a
> > tiny bit of my battery life, but I guess not enough for me to realise
> > it).
> There's probably something like laptop-mode-tools that sets these, I'm not
> really familiar, or using it myself but I'd start looking in
> 
> /etc/laptop-mode/laptop-mode.conf
> /etc/laptop-mode/conf.d/*
> 
> and try to find the configuration that enables runtime power management for
> usb host while on battery.
> 
> -Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

  Powered by Linux