×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: Bash
Posted by: Musab Hussain
Added: Mar 15, 2016 3:39 PM
Views: 12
  1. ls /sys/bus/pci/drivers/xhci_hcd/
  2.  
  3. gksudo mousepad /etc/pm/sleep.d/20_custom-xhci_hcd
  4.  
  5. #!/bin/sh
  6. # File: "/etc/pm/sleep.d/20_custom-xhci_hcd".
  7.  
  8. case "${1}" in
  9.   hibernate|suspend)
  10.     # Unbind xhci_hcd devices
  11.     echo -n "0000:00:14.0" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
  12.   ;;
  13.   resume|thaw)
  14.     # Bind xhci_hcd devices
  15.     echo -n "0000:00:14.0" | tee /sys/bus/pci/drivers/xhci_hcd/bind
  16.   ;;
  17. esac
  18.  
  19.  
  20. sudo chmod a+x /etc/pm/sleep.d/20_custom-xhci_hcd