openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks » Howto: Fix Sound On Resume From Suspend For Ibm Thinkpad X22 (maybe Ot

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Tips, Tricks & Tweaks Tips and Solutions for SUSE Linux
(Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-May-2008, 04:48
trippinnik
Guest
 
Posts: n/a
Default

I have an older Thinkpad (X22) that uses the intel_8x0 module for sound. After resuming from suspend sound doesn't work. With the help of the pm-utils OpenSuse page (http://en.opensuse.org/Pm-utils) and some fellow Suse Forum members in this thread I've fixed while running the KDE4 variant of OpenSuse 11 beta 3. This should work for 10.3 and other version of OpenSuse that use pm-utils for suspend and resume.
We need to run a custom script to close some apps that lock up the sound card and prevent it from unloading. Then we need to reload the sound module and then the kmix volume settings.
substitute kwrite with another text editor if you choose.
Code:
kdesu kwrite /etc/pm/sleep.d/99sound
insert the follow script into the open file:
Code:
#!/bin/bash
 
case "$1" in
** resume|thaw)
******modprobe -l snd_intel8x0
******/etc/init.d/alsasound start
******kmixctrl -r
****;;
** suspend|hibernate)
******kmixctrl -s
******killall kmix
******/etc/init.d/alsasound unload
******modprobe -r snd_intel8x0
****;;
esac
 
exit $?
Then save and close. Next make it executable:
Code:
sudo chmod +x /etc/pm/sleep.d/99sound
you should be all set! Please post other models that you get this to work for.
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2