You are not logged in.
Hi I moved to Devuan as the more I learned about:
PulseAudio and the other rubbish software created by the same author, snap packaging I needed to find 'freedom, my way'!
I have to acknowledge that this is not my 'hack':
How to blacklist a sound card in Linux
Sometimes it may happen that you have a sound device that you do not use or then you are one of those people who dislike Pulseaudio and use Alsa instead. Especially with Alsa it gets very useful if you have only the sound device enabled which you actually use. Here are some notes about using Alsa instead of Pulseaudio in Linux.
Start with the minimal installation. When you start with the bare minimum installation (installing only the basic system components during installation) you get the power to decide what comes into the system as it gets tweaked. Remember that in order to use Alsa you should only need the basic system package libasound2.
2. Do not install Gdm or Lightdm. They usually have some Pulseaudio dependencies in them. If you want to use a display manager use Slim instead (see here: https://www.techtimejourney.net/?p=561) or use startx: (https://www.techtimejourney.net/?p=622). Generally I would recommend towards the usage of startx.
3. Ubuntu users. Currently it seems that Ubuntu has some problems with Pulseaudio and startx combination. If you decide to go with Alsa I certainly recommend remembering this. If you are using Ubuntu I would recommend using the LTS edition since there is less strange bugs that might come to your way while trying to get rid of Pulseaudio.
If you however do not want to remove Pulseaudio and you just want to blacklist a no good sound device then keep on reading as well. The blacklisting is still useful even if you use Pulseaudio. If you are an Alsa user then the following is more or less a must.
Blacklisting a sound device
Type as a root or a sudo inside a terminal:
nano /proc/asound/modules
Note: I prefer to use a text editor here but you can of course list the entries inside the file by just using a program called less or any other you prefer.
The command will open a text file with entries which might look like this:
0 snd_hda_intel
1 snd_ca106
2 snd_usb_audio
What we have here is a list of available sound devices
0 snd_hda_intel
being the default one. Also do note that if you have a webcam it will show up on this file (in the above example: 2 snd_usb_audio ). You do not need to worry about the webcam since it does not have speaker qualities which in turn makes sure that it plays nicely with other devices.
In the above example we see two sound devices ca106 and hda_intel. As we want to use ca106 as a default sound provider we will blacklist the hda_intel out of the way. In a terminal as a root or a sudo:
nano /etc/modprobe.d/sound.blacklist.conf
Add the following entry to the file and then save and close it:
blacklist snd_hda_intel
The above entry tells your system to ignore snd_hda_intel module and thus prevent the loading of the Intel sound card which in turn makes the ca106 the default device.
Note: you can by all means choose a different name for you blacklist file than sound.blacklist.conf as long as it is formatted as something.blacklist.conf . When you remove the blacklist file or erase entries from it the system will return to its previous state. Remember to always reboot your computer after the blacklisting or erasing something from the blacklists in order to see the actual results.
Why would you want to use Alsa?
Alsa has (based on my experience) proven to be far less resource hungry than Pulseaudio when it is running. One reason of course is also the fact that Pulseaudio dependencies take a lot more hard drive space than Alsa’s. The previously mentioned might be significant if you are using an older computer and you need caution against resource over usage.
One thing that I have found to be very useful when using Alsa is that with Alsa you can actually get more control out from your sound devices. If you happen to use Skype, for example, you will get a standard device label without any adjustment chances on Skype sound setup when using Pulseaudio. With Alsa you can however adjust your devices, for example, in a way that your speaker system will give you the phone ringing sound when at the same time your headset might be working as a microphone.
This entry was posted in Tips and tricks and tagged blacklist a sound card linux, blacklist sound device linux, blacklist.conf example linux, how to use modprobe.d to blacklist a sound device linux, howto blacklist a sound device on linux, Linux: alsa vs pulseaudio, ubuntu and alsa, use alsa instead of pulseaudio linux, why choose alsa instead of pulseaudio, why choose alsa rather than pulseaudio linux on July 28, 2013.
https://www.techtimejourney.net/tag/bla … ard-linux/
[My QasMixer on Devuan (Plasma DE in use at time of screenshot):
[UPDATED 01.11.2020 (or 11.01.2020 if you prefer)]
Some of the packages shown were already present - I made sure I installed all the libasound packages and ALSA tools of my choice in the screenshot below - PLEASE NOTE you need to have the packages shown present before attempting to remove Pulse Audio - if you try to remove Pulse Audio first it takes the system down with it. Aaaaaaarrrrrrrrrggggggghhhhh!) One of the crucial packages is the SB Awe FX emulation package.
Last edited by swarfendor437 (2020-11-03 22:27:18)
Offline