Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] USB is not working after suspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Elv13
Guru
Guru


Joined: 13 Nov 2005
Posts: 388
Location: Socialist land of North America

PostPosted: Sun Nov 29, 2015 8:32 pm    Post subject: [SOLVED] USB is not working after suspend Reply with quote

Hello,

After I resume from suspend, no USB devices are working. Plugging and unplugging them from the port produce no dmesg or lsusb entries. I tried

* recompiling the kernel with the usb host subsystem as a module (and rmmod+modprobe them)
* some iommu kernel command line tricks
* disabling ACPI and APM
* playing in UEFI settings

Those did not work. I know there is real kernel bugs regarding this, but I still hope I missed something. Any idea?

Lenovo W540, kernel 3.10 to 4.3, SSD, pm-suspend

Edit:

Apparently I did not try hard enough. Adding some sleeps in the pm-util script solved the problem
Code:

#!/bin/bash
#/etc/pm/sleep.d/suspend                                                             

#!/bin/bash

case "$1" in
    suspend|suspend_hybrid|hibernate)
        modprobe -r ehci_pci ehci_hcd
        sleep 0.5
        modprobe -r xhci_hcd
        sleep 0.5
        modprobe -r xhci_pci
        ;;
    resume|thaw)
        # modprobe nvidiabl
        modprobe xhci_hcd ehci_pci ehci_hcd
        sleep 1.5
        modprobe xhci_pci
        echo bob > /tmp/bob
        ;;
esac


Last edited by Elv13 on Tue Jan 05, 2016 10:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
Elv13
Guru
Guru


Joined: 13 Nov 2005
Posts: 388
Location: Socialist land of North America

PostPosted: Sat Dec 19, 2015 7:13 am    Post subject: Reply with quote

BUMP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum