From f51f37118bdfa3b85d7bba53ac38441098fb0fbb Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Wed, 25 Mar 2015 22:28:14 -0500 Subject: 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. --- blacklist-gobook-xr1-sound.conf | 2 -- gobook-xr1-sound | 34 ---------------------------------- gobook-xr1.sh | 2 -- 3 files changed, 38 deletions(-) delete mode 100755 gobook-xr1-sound 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 -- cgit v1.2.3-18-g5258