Advertisement
Guest User

Untitled

a guest
May 3rd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #####################
  2. #!/bin/sh
  3. # File: "/etc/pm/sleep.d/05_sound".
  4. case "${1}" in
  5. hibernate|suspend)
  6. # Unbind ehci for preventing error
  7. echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind
  8. # Unbind snd_hda_intel for sound
  9. echo -n "0000:00:1b.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
  10. echo -n "0000:00:03.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
  11. ;;
  12. resume|thaw)
  13. # Bind ehci for preventing error
  14. echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/bind
  15. # Bind snd_hda_intel for sound
  16. echo -n "0000:00:1b.0" | tee /sys/bus/pci/drivers/snd_hda_intel/bind
  17. echo -n "0000:00:03.0" | tee /sys/bus/pci/drivers/snd_hda_intel/bind
  18. ;;
  19. esac
  20. #################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement