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.
  • Posts

    • If you have a TV in your living room, chances are you can probably just use the Steam Link app and play your huge PC in big picture mode, effectively giving you the Steam Machine experience to see if you'd actually like it. The good news is the Steam Machine can have it's drives upgraded. It has a USB-C 10Gbs port as well, so the 512GB drive could be quickly moved to an external enclosure and repurposed.
    • This machine could very well be a second gaming PC for their living room as a console experience. So we would have to assume their main PC exists as well; With that said, I have 10gb home network with a 2.5gigabit internet connection here so we tend to have more than enough speed to download games. However, we can't make use of the 10gb LAN using Steam's built in transfer tool because it always compresses transfers and that slows the transfer down to well below a standard gigabit port speeds, sometimes as slow as 200-300Mb/s transfers. While that's probably still faster than most internet connections anyway, if they'd fix the LAN transfer issue it'd be upto x5 faster even on a gigabit LAN, than simply dropping a 2.5gbe port on there with hopes of a few people having fast internet connections. There are solutions, work arounds, like using LANCache if you run a NAS... or simply copying the files over manually using a network share.
    • Samsung announces ultra-fast UFS 5.0 storage to supercharge mobile AI by Paul Hill Local AI models tend to run a lot more slowly than cloud services like Claude and Gemini; however, Samsung has just announced that it has developed its UFS 5.0 solution, which increases data transfer to speeds of 10.8GB/s, enabling faster storage and processing in mobile memory that has the potential to provide more optimal local AI experiences. Commenting on this development, Jangseok Choi, head of Memory Product Planning at Samsung Electronics, said: If you’ve tried local AI, you’ll know it can be quite slow, especially if using the larger parameter models. By developing this new solution, Samsung says that storage is evolving from just storing data to a core piece of infrastructure that supports AI computation, too. The Korean company said that UFS 5.0 integrates the latest embedded memory interface standard from JEDEC and achieves up to 10.8 gigabytes per second (GB/s) transfer speeds. Regarding write speeds, Samsung UFS 5.0 can reach 9.5 GB/s. Both the read and write speeds are twice as fast as those of the previous UFS 4.1 standard. Aside from being ideal for local AI, Samsung’s UFS 5.0 is more power efficient by 40% compared to UFS 4.1. Samsung achieved this by implementing innovations such as clock gating and multi-voltage technologies. UFS 5.0 is also ultra-compact at just 7.5mm x 13mm x 0.9mm; that is 16.7% smaller than UFS 4.1. The company said it will be bringing it to multiple devices in the future, including mobile, wearable, and extended reality.
    • A bit like the steamdeck, this probably isn't for you.
    • Gamers Nexus already did their review, and building your own will be faster and cheaper, so not very convincing.
  • Recent Achievements

    • Week One Done
      Almohandis earned a badge
      Week One Done
    • Rookie
      dorf went up a rank
      Rookie
    • First Post
      mike_rumble earned a badge
      First Post
    • Dedicated
      tuben earned a badge
      Dedicated
    • Week One Done
      mnsgroup earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      496
    2. 2
      +Edouard
      209
    3. 3
      PsYcHoKiLLa
      99
    4. 4
      Michael Scrip
      86
    5. 5
      neufuse
      69
  • Tell a friend

    Love Neowin? Tell a friend!