Author Topic: Blacklisting sound cards,if there are more in a system  (Read 1177 times)

Offline linux9

  • Jr. Member
  • **
  • Posts: 15
Blacklisting sound cards,if there are more in a system
« on: May 05, 2010, 01:19:37 PM »
 Got another problem to say so, I have my pc constructed in a way that I'm stuck with 3 types of sound cards; because I use only the creative sb audigy 2 sound card in windows 7, I just install the driver and I have sound working, but in pclos I have all sorts of problems like, for example the browsers have no sound, glitches in Amarok when playing flac and all sorts of other problems.I tried to set the creative soundcard in Kde system settings as preferred but I'm still having the same issues.I think if only I could just make the other two cards to disappear from the system I could be home free, I mean just to not be recognized by Pclos never again. The other two sound cards are:the onboard one from Gigabyte, and the other one is from my Acer monitor! Hope I made some sense! Thanks in advance for any ideas (by the way pulseaudio sucks, I was happy with alsa before now only issues with pulse, that's why I like Pclos not having that broken software and staying clean with xine)! ???
« Last Edit: May 06, 2010, 05:53:49 AM by old-polack »

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Blacklisting sound cards,if there are more in a system
« Reply #1 on: May 05, 2010, 01:58:38 PM »

Hardware access can be prevented by blocking kernel's modules that control them. can you open the terminal and type "lsmod", what do you get? thats the list of all modules loaded.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Blacklisting sound cards,if there are more in a system
« Reply #2 on: May 05, 2010, 02:39:31 PM »
by the way pulseaudio sucks,I was happy with alsa before now only issues with pulse,that's why I like Pclos not having that broken software and staying clean with xine

 ;D ;D  I have pulse installed on both my 2010 installs and would not go back to the way it was.
Pulse is an absolute marvel ...........  provided you install all the Pulse packages and not leave it only partially installed.

In addition it handles multiple sound sources and outputs in a really convenient and practical manner.

But I better not suggest you try it   ;D ;D ;D

Offline linux9

  • Jr. Member
  • **
  • Posts: 15
Re: Blacklisting sound cards,if there are more in a system
« Reply #3 on: May 05, 2010, 02:47:47 PM »
 ok I typed lsmod and I got a bunch of modules like:
Module                  Size  Used by
snd_usb_audio          64549  0
snd_usb_lib            13230  1 snd_usb_audio
fglrx                2082542  29
af_packet              13931  2
ipv6                  225125  14
binfmt_misc             5463  1
loop                   10804  0
dm_mod                 53819  0
sbp2                   15906  0
raw1394                16891  0
fuse                   49070  2
snd_hda_codec_atihdmi     2059  1
wacom                  16414  0
usbhid                 30231  0
snd_hda_codec_realtek   186007  1
hid                    55684  1 usbhid
snd_emu10k1           112151  1
snd_rawmidi            16051  2 snd_usb_lib,snd_emu10k1
gspca_zc3xx            41883  0
snd_ac97_codec         89641  1 snd_emu10k1
gspca_main             18207  1 gspca_zc3xx
snd_hda_intel          18231  3
ac97_bus                 946  1 snd_ac97_codec
snd_util_mem            2940  1 snd_emu10k1
videodev               29617  1 gspca_main
v4l1_compat            11233  1 videodev
snd_hda_codec          62514  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4798  3 snd_usb_audio,snd_emu10k1,snd_hda_codec
snd_seq_dummy           1266  0
snd_seq_oss            22632  0
snd_seq_midi_event      5421  1 snd_seq_oss
snd_seq                40566  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          5214  5 snd_emu10k1,snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            29075  0
snd_pcm                58499  6 snd_usb_audio,snd_emu10k1,snd_ac97_codec,snd_hda_intel,snd_hda_codec,snd_pcm_oss
r8169                  29291  0
snd_timer              15571  3 snd_emu10k1,snd_seq,snd_pcm
snd_mixer_oss          11087  1 snd_pcm_oss
snd                    46023  23 snd_usb_audio,snd_hda_codec_realtek,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
mii                     3885  1 r8169
ppdev                   4427  0
firewire_ohci          17237  0
i2c_piix4               7540  0
pcspkr                  1382  0
i2c_core               18387  2 videodev,i2c_piix4
floppy                 44787  0
parport_pc             26649  0
sr_mod                 11608  0
parport                29235  2 ppdev,parport_pc
emu10k1_gp              1546  0
cdrom                  28817  1 sr_mod
soundcore               5525  1 snd
ohci1394               22706  0
gameport                8157  2 emu10k1_gp
rtc_cmos                6829  0
ieee1394               69560  3 sbp2,raw1394,ohci1394
snd_page_alloc          6494  3 snd_emu10k1,snd_hda_intel,snd_pcm
evdev                   6325  8
thermal                10712  0
ohci_hcd               17412  0
ehci_hcd               27409  0
processor              30110  0
button                  4713  0
sg                     21318  0
usbcore               121266  9 snd_usb_audio,snd_usb_lib,wacom,usbhid,gspca_zc3xx,gspca_main,ohci_hcd,ehci_hcd
ide_generic             1035  0 [permanent]
ide_core               85164  1 ide_generic
pata_atiixp             2808  0
ata_piix               18324  0
ahci                   28746  3
libata                143965  3 pata_atiixp,ata_piix,ahci
sd_mod                 26807  4
scsi_mod              130669  5 sbp2,sr_mod,sg,libata,sd_mod
crc_t10dif              1195  1 sd_mod
ext3                   98324  2
jbd                    37520  1 ext3
How do I blacklist the other sound modules so that only sb audigy's modules remain(sorry if I'm persistent and I want all your advices to be just a copy paste for me)! ;)

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Blacklisting sound cards,if there are more in a system
« Reply #4 on: May 05, 2010, 03:01:21 PM »
try

lsmod | grep snd

to get a listing of the sound modules

Then as root in a terminal you can remove the modules you wish (temporarily)

rmmod snd-usb-audio      (an example only)

To make permanent the removal of modules you add them to

/etc/modprobe.d/blacklist


Hope that helps.

The idea is that you can temporarily remove some modules and ensure nothing breaks before making the removal permanent.

regards.

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Blacklisting sound cards,if there are more in a system
« Reply #5 on: May 05, 2010, 03:05:11 PM »
go to pcc -> hardware -> browse and configure hardware -> soundcards

do u see 3 entries? scroll down to driver entry, what driver name do they use?

if you can find a way to disable them from here, try it. Blocking kernel from loading drivers should be a last resort
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline macuira

  • Full Member
  • ***
  • Posts: 130
  • every bullet is lost
Re: Blacklisting sound cards,if there are more in a system
« Reply #6 on: May 05, 2010, 03:42:31 PM »
+1 on pulseaudio :D
Getting sound to work has never been so easy, everything works great here, I can have amarok on my main speakers and a skype conversation on my Bluetooh headset at the same time

Offline linux9

  • Jr. Member
  • **
  • Posts: 15
Re: Blacklisting sound cards,if there are more in a system
« Reply #7 on: May 06, 2010, 04:58:13 AM »
 ,,muungwana-go to pcc -> hardware -> browse and configure hardware -> soundcards

do u see 3 entries? scroll down to driver entry, what driver name do they use?

if you can find a way to disable them from here, try it. Blocking kernel from loading drivers should be a last resort''
 Done that first time,no option to disable them manually,thanks anyway!
 Should try JonnBoy's idea,to see if it works hope I don't break my sound!Thanks a million to you all! ;)

Offline linux9

  • Jr. Member
  • **
  • Posts: 15
Re: Blacklisting sound cards,if there are more in a system
« Reply #8 on: May 06, 2010, 05:08:08 AM »
 Woops ,tryed blaclisting like JohnBoy said,but i've got something like ,,Module snd_hda_intel is in use'',how to make it not to be used!

Offline linux9

  • Jr. Member
  • **
  • Posts: 15
Re: Blacklisting sound cards,if there are more in a system
« Reply #9 on: May 06, 2010, 05:09:23 AM »
 By the way I'm not using any program that uses sound!

Offline macuira

  • Full Member
  • ***
  • Posts: 130
  • every bullet is lost
Re: Blacklisting sound cards,if there are more in a system
« Reply #10 on: May 06, 2010, 09:40:18 AM »
searching in google I found this, hope it helps
Quote
If the 'rmmod' command does not succeed, the 'modprobe' command will have no effect. You can test to see if the 'rmmod' command will succeed by doing "lsmod | grep snd_hda_intel", which will report two numbers at the end of the line. The second number shows how many users the module has, and must be 0 in order for the 'rmmod' command to succeed.

(Note: the 'kmix' program will be counted as a user of the snd_hda_intel module if it is in your system tray)

As JohnBoy said the rmmod command is temporary, if you want it to be permanent, you need to add "snd_hda_intel" to the end of the blacklist file in /etc/modprobe.d/blacklist