aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2015-03-25 22:28:14 -0500
committerDavid Barksdale <amatus@amatus.name>2015-03-25 22:28:14 -0500
commitf51f37118bdfa3b85d7bba53ac38441098fb0fbb (patch)
tree64fba9481db417875ccfabe6be5f36ee30fa6dcf
parent410d5e6b670308590c9b00573307a772262c6e4e (diff)
Fix an issue I ran into with the latest kernel
For some reason I started getting kernel panics on boot which I attributed to a kernel update. Disabling the gobook-xr1-sound init script fixed the issue and sound kept working. I experimented with the blacklist file also and found that only the realtek driver needs to be blacklisted for sound to work.
-rw-r--r--blacklist-gobook-xr1-sound.conf2
-rwxr-xr-xgobook-xr1-sound34
-rwxr-xr-xgobook-xr1.sh2
3 files changed, 0 insertions, 38 deletions
diff --git a/blacklist-gobook-xr1-sound.conf b/blacklist-gobook-xr1-sound.conf
index 172fab9..3cca97f 100644
--- a/blacklist-gobook-xr1-sound.conf
+++ b/blacklist-gobook-xr1-sound.conf
@@ -1,3 +1 @@
-blacklist snd_hda_codec
-blacklist snd_hda_codec_si3054
blacklist snd_hda_codec_realtek
diff --git a/gobook-xr1-sound b/gobook-xr1-sound
deleted file mode 100755
index df8e63d..0000000
--- a/gobook-xr1-sound
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /bin/sh
-### BEGIN INIT INFO
-# Provides: gobook-xr1-sound
-# Required-Start: $syslog $remote_fs
-# Required-Stop: $syslog $remote_fs
-# Should-Start:
-# Should-Stop:
-# X-Start-Before:
-# X-Stop-After:
-# Default-Start: 2 3 4 5
-# Default-Stop: 1
-# Short-Description: GoBook XR-1 Sound
-# Description: Does a little dance with sound modules
-### END INIT INFO
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-SCRIPTNAME=gobook-xr1-touchscreen
-
-case "$1" in
- start)
- modprobe snd_hda_codec_realtek
- rmmod snd_hda_intel
- modprobe snd_hda_intel
- rmmod snd_hda_intel
- rmmod snd_hda_codec_realtek
- modprobe snd_hda_intel
- ;;
- *)
- echo "Usage: $SCRIPTNAME {start}" >&2
- exit 3
- ;;
-esac
-
-exit 0
diff --git a/gobook-xr1.sh b/gobook-xr1.sh
index 738d7f7..4720922 100755
--- a/gobook-xr1.sh
+++ b/gobook-xr1.sh
@@ -16,5 +16,3 @@ fi
# Fix sound
sudo install -m 644 blacklist-gobook-xr1-sound.conf /etc/modprobe.d/
-sudo install -m 755 gobook-xr1-sound /etc/init.d/
-sudo update-rc.d gobook-xr1-sound defaults