Advertisement
Guest User

Untitled

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