Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Smile How to blacklist (audio) modules


    Hello everyone. Could anyone advise how to blacklist modules that are (at the moment) loaded at startup?

    I've managed to get my install in a pickle, and the following modules load up at boot:

    noname:/home/toby# lsmod | grep "snd"
    snd_rtctimer 3660 0
    snd_seq_dummy 4292 0
    snd_seq_oss 30464 0
    snd_seq_midi 8544 0
    snd_rawmidi 23072 1 snd_seq_midi
    snd_seq_midi_event 7488 2 snd_seq_oss,snd_seq_midi
    snd_seq 46736 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_mid i_event
    snd_seq_device 8140 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi ,snd_seq
    snd_atiixp 18508 1
    snd_ac97_codec 88036 1 snd_atiixp
    snd_ac97_bus 2688 1 snd_ac97_codec
    snd_pcm_oss 39712 1
    snd_mixer_oss 16000 1 snd_pcm_oss
    snd_pcm 69444 3 snd_atiixp,snd_ac97_codec,snd_pcm_oss
    snd_timer 20996 3 snd_rtctimer,snd_seq,snd_pcm
    snd 49124 12 snd_rtctimer,snd_seq_dummy,snd_seq_oss,snd_rawmidi ,snd_seq,snd_seq_device,snd_atiixp,snd_ac97_codec, snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
    soundcore 9568 2 snd
    snd_page_alloc 9992 2 snd_atiixp,snd_pcm
    rtc 12788 1 snd_rtctimer

    Far too many, and one or more of them block the sound and stop it from working. My solution at the moment is to /etc/init.d stop then rmmod each and every one of them, then only load the ones I need:

    modprobe snd-atiixp ; modprobe snd-pcm-oss ; modprobe snd-mixer-oss ; modprobe snd-seq-oss

    Then the sound works fine. Its quite a hassle though, and I'd rather just stop all those other snd modules from working in the first place. Debian doesn't seem to use modules.conf anymore, and changing the entries files in /etc/modutils/alsa... doesn't seem to have any effect.

    Any advice much appriciated.

  2. #2
    Have a look at /etc/modprobe.d/alsa-base-blacklist.

  3. #3
    Linux Engineer valemon's Avatar
    Join Date
    Oct 2006
    Location
    Volos
    Posts
    934
    open /etc/modeprobe.d/blacklist and at the end of the file write something like
    #blacklist alsa modules
    blacklist snd_seq_oss 30464 0
    blacklist snd_seq_midi 8544 0
    blacklist ....
    This should do the trick
    Linux is like a Teepee, No Windows, No Gates, Only Apache Inside!
    Arch Linux
    Linux user #442041

  4. $spacer_open
    $spacer_close
  5. #4

    Arrow thanks for advice! Unfortunately had no effect :(

    Thanks for the advice guys, much appreciated.

    I tried adding the unwanted modules to blacklist and to alsa-base-blacklist, but it had no effect as far as I can tell. LSMOD still lists all modules I posted above.

    Any other solutions would be much appreciated, perhaps there is a way to permanently remove these daemons, or I'm missing something crucial!

    I added:
    blacklist snd_seq_dummy
    blacklist snd_seq_midi
    blacklist snd_rawmidi
    blacklist snd_seq_midi_event
    blacklist snd_seq
    blacklist snd_seq_device
    blacklist snd_ac97_codec
    blacklist snd_ac97_bus
    blacklist snd_pcm
    blacklist snd_timer
    blacklist snd
    blacklist soundcore
    blacklist snd_page_alloc

  6. #5

    Lightbulb

    Oh, and have found out that /etc/init.d/alsasound restart (run as root) also works to restore sound (do this then unmute in volume mixer). Once this is done the following results from a lsmod | grep "snd"

    snd_atiixp 18508 1
    snd_ac97_codec 88036 1 snd_atiixp
    snd_ac97_bus 2688 1 snd_ac97_codec
    snd_pcm_oss 39712 1
    snd_mixer_oss 16000 1 snd_pcm_oss
    snd_pcm 69444 3 snd_atiixp,snd_ac97_codec,snd_pcm_oss
    snd_timer 20996 1 snd_pcm
    snd 49124 6 snd_atiixp,snd_ac97_codec,snd_pcm_oss,snd_mixer_os s,snd_pcm,snd_timer
    soundcore 9568 2 snd
    snd_page_alloc 9992 2 snd_atiixp,snd_pcm

    Very odd.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •