You are not logged in.

#1 2008-11-08 01:15:13

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Unloading ALSA

So my laptop's speakers make some fairly loud crackly sounds when it shuts down. Other than sounding kinda scary, it seems pretty harmless.

Anyway, right now I've told it to mute my alsa in my local shutdown script. However, this doesn't work, and the sound is still there.

Anyone know a way to completely unload alsa to possibly prevent this. I'd just unload it before it shuts down in the shutdown script.


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#2 2008-11-08 03:38:47

ogronom
Member
From: Toronto, Canada
Registered: 2008-05-06
Posts: 123

Re: Unloading ALSA

Probably it's a pcspeaker, not alsa
see wiki page how to disable it

Last edited by ogronom (2008-11-08 03:39:54)

Offline

#3 2008-11-08 12:18:22

Cilyan
Member
From: Toulouse (FR)
Registered: 2006-08-27
Posts: 97
Website

Re: Unloading ALSA

The module pcspeaker has been replaced by snd_pcsp not that long ago. So you should have a look to check the right module to unactivate.

Offline

#4 2008-11-08 21:53:36

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: Unloading ALSA

I already have both of those blacklisted and it still does it. I also rmmod'ed my main sound card at shutdown and it still does it. (I know it rmmod's properly because alsa reports no sound cards before it makes the crackle.)

It has to be either hardware related then or something else. I wish windows had a boot disk with sound so I could try it there. (Or any other OS with sound, hmm.) And I suppose I should try OSS.

Last edited by Statix (2008-11-08 21:55:04)


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#5 2008-11-09 00:33:17

Cilyan
Member
From: Toulouse (FR)
Registered: 2006-08-27
Posts: 97
Website

Re: Unloading ALSA

You can try geexbox. It has of course good support for sound (but it is still Linux). Maybe BSD has liveCDs (never seen, but I'm a noob in it). Finally, you can give a try to http://www.nu2.nu/pebuilder/ ?
You can also try to solve by forcing mute and volumes to zero during the shutdown (I know you did mute but did you try to lower the volume ?). Do that after alsa levels are stored. Modify /etc/rc.d/alsa in the case stop, add amixer set Master 0 (or replace Master by any of PCM, Front, ...)

Offline

#6 2008-11-09 13:40:09

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Unloading ALSA

Edit your /etc/rc.d/alsa so it contains:

  stop)
    /usr/bin/amixer -q set Master 0 mute

Also see bug & patch.

Offline

Board footer

Powered by FluxBB