Ubuntu 5.10 sound problems on my Thinkpad T22


Recommended Posts

To fix the ACPI problems I was having with my hardware I had to switch to using APM.

Then suspend and hibernate would work, but when I resumed everything responded very slowly and I loss my sound. It turned out that the sound daemon (esd) was waisting a lot of cycles everytime gnome tried to play a noise. I then came across this:

Modem untested. Needs APM: add acpi=off nolapic to kernel options in /boot/grub/menu.lst, add apm to /etc/modules, and add shpchp and pciehp to /etc/hotplug/blacklist. Changing cs46xx to snd-cs46xx in /etc/hotplug/blacklist.d/alsa-base caused sound to work across sleep cycles.

On the Thinkpad T22 row on the wiki page found here.

Following those directions both suspend and hibernate function great! However, now the sound doesn't work because of the blacklist.d/alsa-base entry. I think that is because I do not have the non ALSA cs46xx driver installed. I will have to investigate that further.

One other solution I have found while googling around is to have the APM service run a script run on suspend and hibernate that would disable the snd-cs46xx driver and kill the esd daemon, and then reload them after resuming the OS.

Hi guys!

I use apm on my T22 and had the same problem when I tried to suspend it.

I just figured out, that the problem is the sound! So I wrote a small script to unload the sound module and put it in

/etc/apm/event.d/

to run it automatically:

#####################################

#!/bin/sh

case "$1" in

resume)

/sbin/modprobe snd-cs46xx

sleep 5

/etc/init.d/alsa start

esd &

;;

suspend)

/usr/bin/killall /usr/lib/gnome-applets/mixer_applet2

/usr/bin/killall esd

/etc/init.d/alsa stop

/bin/sleep 5

/sbin/rmmod snd-cs46xx

;;

esac

#####################################

Don't forget to "chmod +x" the file! Finally my TP works perfectly

Good luck!

Seb

source.

Following these recomendations, I can have sound at boot up but after a suspend my sound goes out. Also, resuming from hibernate causes no sound and slow downs like before. I have tried increasing the sleep duration in the script with no luck. I have also tried relaying the command outputs to a log file, but nothing is ever put in it. I have tried manually entering those commands, but they never return any failure messages and my sound never comes back on.

I think my hibernate would return to normal if i just copy the suspend function with the label 'hibernate.' I need to try that.

If anyone has any ideas on that resume script or any other input I would really appreciate it.

Sorry I posted this when I still haven't tried a few things. I didn't realize I had not tried them until writing this post.

Thanks!

-Shadrack

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.