Skip to content

Instantly share code, notes, and snippets.

View timrs2998's full-sized avatar

Tim Schoenheider timrs2998

View GitHub Profile
@timrs2998
timrs2998 / system-sleep-xhci.sh
Created March 1, 2018 16:25 — forked from ioggstream/system-sleep-xhci.sh
Disable broken xhci device before suspend and avoid freeze.
#!/bin/sh
#
# This script should prevent the following suspend errors
# which freezes the Dell Inspiron laptop.
#
# Put it in /usr/lib/systemd/system-sleep/xhci.sh
#
# The PCI 00:14.0 device is the usb xhci controller.
#
# kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16