View difference between Paste ID: d5Sx0QxA and G3wBRqGb
SHOW: | | - or go back to the newest paste.
1
#####################
2
#!/bin/sh
3
# File: "/etc/pm/sleep.d/05_sound".
4
case "${1}" in
5-
hibernate|suspend)
5+
	hibernate|suspend)
6-
# Unbind ehci for preventing error 
6+
		/sbin/rmmod cyapa
7-
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind
7+
		#sleep 1
8-
# Unbind snd_hda_intel for sound
8+
		# Unbind ehci for preventing error 
9-
echo -n "0000:00:1b.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
9+
		echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/unbind
10-
echo -n "0000:00:03.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
10+
		# Unbind snd_hda_intel for sound
11-
;;
11+
		#echo -n "0000:00:1b.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
12-
resume|thaw)
12+
		#echo -n "0000:00:03.0" | tee /sys/bus/pci/drivers/snd_hda_intel/unbind
13-
# Bind ehci for preventing error 
13+
		;;
14-
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/bind
14+
	resume|thaw)
15-
# Bind snd_hda_intel for sound
15+
		# Bind ehci for preventing error 
16-
echo -n "0000:00:1b.0" | tee /sys/bus/pci/drivers/snd_hda_intel/bind
16+
		echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci-pci/bind
17-
echo -n "0000:00:03.0" | tee /sys/bus/pci/drivers/snd_hda_intel/bind
17+
		# Bind snd_hda_intel for sound
18-
;;
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
#################