Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] USB is not working after suspend

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Elv13
Guru
Guru
User avatar
Posts: 388
Joined: Sun Nov 13, 2005 8:42 pm
Location: Socialist land of North America

[SOLVED] USB is not working after suspend

  • Quote

Post by Elv13 » Sun Nov 29, 2015 8:32 pm

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: Select all

#!/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.
Top
Elv13
Guru
Guru
User avatar
Posts: 388
Joined: Sun Nov 13, 2005 8:42 pm
Location: Socialist land of North America

  • Quote

Post by Elv13 » Sat Dec 19, 2015 7:13 am

BUMP
Top
Post Reply

2 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic