Change sound card linux

How do I change my default sound card in Linux?

You can set the default by ordering the sound cards in ALSA with slots= . Find the driver module names for the sound cards you want to use by inspecting lsmod ‘s output with: lsmod | grep -P ‘^snd[_]?[A-z]*’ or just lsmod .

How do I set my audio device as default?

  1. In the search box on the taskbar, type control panel, then select it from the results.
  2. Select Hardware and Sound from the Control Panel, and then select Sound.
  3. On the Playback tab, right-click the listing for your audio device, select Set as Default Device, and then select OK.

How do I change my ALSA default sound card?

Set default sound card… Open alsa mixer with sudo press F6 or S select your card then type sudo alsactl store. sudo alsamixer sudo alsactl store and OR Setting the default sound device Find your desired card with: cat /proc/asound/cards You will need to be root for this and then create or edit your /etc/asound.

How do I get sound to work on Arch Linux?

4 Answers. Go to ‘Master’ then press M and then keep hitting the up key to bring the sound levels up.

How do I choose a sound device in Linux?

Select a default audio output device

  1. Open the Activities overview and start typing Sound.
  2. Click on Sound to open the panel.
  3. In the Output section, select the device that you want to use.

How do you use Alsamixer?

  1. Open a terminal. (The quickest way is the Ctrl-Alt-T shortcut.)
  2. Enter “alsamixer” and press the Enter key.
  3. You will now see a user interface. In this user interface, you can do the following: Select your correct sound card using F6 and select F5 to see recording controls as well.

What is default device and default communication device?

A communication device is used primarily for placing or receiving telephone calls on the computer. For a computer that has only one rendering device (speaker) and one capture device (microphone), these audio devices also act as the default communication devices.

How do I set my headphones as default communication device?

Click Start, and then click Control Panel. Click Hardware and Sound in Windows Vista or Sound in Windows 7. Under the Sound tab, click Manage Audio Devices. On the Playback tab, click your headset, and then click the Set Default button.

What is CTL card?

A ctl device (“control-device”) on a soundcard is used to help the user control several aspects of the soundcard’s behaviour. The main use is to control the mixer. A ctl device has several controls which can be controlled using alsamixer or other similar programs.

Читайте также:  Aladdin knowledge systems etoken pro 64k linux

How do I manage my audio devices in Ubuntu?

Control output devices (speakers) To manage them, open up the Pavucontrol app and find “Output devices.” In “Output devices,” you’ll see a list of all sound playback devices on your Linux PC. Scan through the list of playback devices and find the one you want to modify. Then, use the slider to adjust its volume.

What is the advanced Linux sound architecture?

How to enable OSS emulation with PulseAudio dmix?

Which channels should be unmuted for SoundBlaster Audigy LS?

Источник

Arch Linux

Yes I’ve tried what the wiki has to offer. I have an older via pci sound card. alsa sees it as ICEnsemble ICE1724. I use E17 as my DE and ALSA for sound. I need to know how to make my pci card default so I can use it.

#2 2012-11-25 09:16:21

Re: Change default sound card..

When I type «alsamixer» in my terminal I press F6 to set a default sound card.Is it in your case same?

#3 2012-11-25 17:47:32

Re: Change default sound card..

That changes which sound card your changing the volume on. Unless I’m missing something there’s no way to select it as default. It never sticks for me after I change it.

#4 2012-11-25 20:29:56

Re: Change default sound card..

Changing it in asound.conf should work, But I found the most reliable way is to simply just remove the sound card you don’t want to use — tried other ways, but something always went wrong (because some applications just mess it up no matter how well or in how many places you configure it as default).

# lspci | grep Audio
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
# find /sys -wholename *00:14.2*remove
/sys/devices/pci0000:00/0000:00:14.2/remove
# echo 1 > /sys/devices/pci0000:00/0000:00:14.2/remove

( I guess /etc/tmp-files/remove-soundcard.conf would be the right place to put the «echo 1 >. » if it works, now that rc.local isn’t any more )

Last edited by whoops (2012-11-25 20:33:48)

#5 2012-11-25 20:50:38

Re: Change default sound card..

I’ve changed the default sound output on many systems by just changing (creating) the ~/.asoundrc.

«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman

#6 2012-11-26 00:08:57

Re: Change default sound card..

Well this is embarrassing. These solutions all seem awesome but changing up the /etc/modprob.d/alsa-base.conf probably did work from the beginning but I didn’t have any CODECS INSTALLED. oops lol I thought maybe youtube would play without them..

thank you for your help. I’ll keep em around incase of future issues.

Last edited by darkreaper476 (2012-11-26 21:09:18)

#7 2012-11-26 21:22:54

Re: Change default sound card..

Changing it in asound.conf should work, But I found the most reliable way is to simply just remove the sound card you don’t want to use — tried other ways, but something always went wrong (because some applications just mess it up no matter how well or in how many places you configure it as default).

# lspci | grep Audio
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
# find /sys -wholename *00:14.2*remove
/sys/devices/pci0000:00/0000:00:14.2/remove
# echo 1 > /sys/devices/pci0000:00/0000:00:14.2/remove

( I guess /etc/tmp-files/remove-soundcard.conf would be the right place to put the «echo 1 >. » if it works, now that rc.local isn’t any more )

Well I thought it worked. after a reboot no more sound, the onboard sound card took precedence again, so I tried this method because it seems legit. It didnt do anything. the onboard is still there and still taking precedence.

Читайте также:  Http www backtrack linux org downloads

I dont fully understand what to put in the asound.conf, any clarification would be great.

#8 2012-11-26 21:30:38

Re: Change default sound card..

Do you have pulseaudio installed with alsa?It says in wiki under alsa section that it could couse problems in some situations and it should be better removed.

#9 2012-11-26 23:15:16

Re: Change default sound card..

Actually, No I don’t, I installed it to see if it would work and nope. Still nothing. It actually made my mixer show stereo rather than surround. Removing pulse now.

#10 2012-11-27 00:13:41

Re: Change default sound card..

defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

in ~/.asound worked, for now. 2 reboots and I still have sound. Even though «0» is the onboard card according to «aplay -l». Like I said I dont fully understand how this workaround works. lol

#11 2012-12-01 02:45:12

Re: Change default sound card..

So its completely random. Sometimes my external card takes control and I have sound and sometime the onboard takes control and I don’t have sound.. Any insite to a permanent fix would be awesome.

#12 2012-12-01 03:04:37

Re: Change default sound card..

There are two solutions in the relevant wiki pages. One here though I prefer the suggestion on the actual alsa wiki which describes how to set the default pcm by name rather than by index number.

«UNIX is simple and coherent. » — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman

Источник

How can I change the default audio device from command line?

Ubuntu’s desktop gui is great for changing audio settings (System->Preferences->Sound), like the default input/output device and setting the volume. However, I would like to be able to do these things from the command-line. What tool is the gui using behind the scenes?

4 Answers 4

You can control PulseAudio thoroughly through the command line using pacmd and pactl commands. For options see pacmd —help or the wiki at PulseAudio:

pacmd list-sinks for name or index number of possible sinks

pacmd list-sources for name or index number of possible sources

pacmd set-default-sink «SINKNAME» | index to set the default output sink

pacmd set-default-source «SOURCENAME» | index to set the default input

pacmd set-sink-volume index volume

pacmd set-source-volume index volume for volume control ( 65536 = 100 %, 0 = mute; or a bit more intuitive 0x10000 = 100 %, 0x7500 = 75 %, 0x0 = 0 %)

and many many more CLI options.

Note: Changing the output sink through the command line interface can only take effect if stream target device reading is disabled. This can be done by editing the corresponding line in /etc/pulse/default.pa to:

load-module module-stream-restore restore_device=false 

Restart PulseAudio for changes to take effect:

For a more elaborate tutorial on how to do this, and for instructions on how to change the sink during playback see this answer.

Источник

Change default sound device

After upgrading to Ubuntu 13.10 my sound stopped working. I eventually figured out that Ubuntu had selected the HDMI sound device instead of my analogue speakers. I switched to the correct device and everything worked fine until I rebooted. I now have to select the correct device every time I boot Ubuntu. How do I set my speakers as the default device? Edit: Since i upgraded to Ubuntu 14.04 Ubuntu now selects the onboard sound device by default so I no longer have this problem.

Читайте также:  Установка принтера hp laserjet p1102 линукс

This question is not a duplication of that post. Maybe it would be more appropriate for the title to be «Change default default sound device» (the word default is intentionally used twice). Hope that clears things up a bit.

7 Answers 7

To display the index of your cards. For example, my pci sound card is at index 2. The sound profile for analogue output (again as an example) is called «output:analog-stereo».

$ pacmd set-card-profile 2 output:analog-stereo 

To set this as the output (give it a try). To make it permanent, edit /etc/pulse/default.pa and add:

set-card-profile 2 output:analog-stereo set-default-sink 2 

Restart pulseaudio or reboot to check persistence.

If you want to also set mic(input) defaults

set-card-profile 2 output:analog-stereo+input:analog-stereo set-default-sink 2 

Thanks! That was the only way to solve my problem, having every sound muted after ALSA & JACKD installation.

Still works on Ubuntu 17.10. I was first confused because pacmd list-cards only listed one card so I thought I could not switch. I want to switch from my laptop speakers to hdmi. This is the same card for me, just another output ( analog-stereo vs. hdmi-stereo ).

On the Dash, search for Multimedia Systems Selector.

Open it and in its Audio tab you can select the default audio Input and Output devices.

enter image description here

This application is installed by default in Ubuntu Installation. But if you haven`t this somehow can install by

sudo apt-get install gnome-media 

If it is not shown in the Dash, run:

gksudo gedit /usr/share/applications/gstreamer-properties.desktop 

In the resulting text file, go to the line starts with NoDisplay= . Change the NoDisplay=true to NoDisplay=false

Thanks for the thourough response, unfortunately this didn’t work. It would seem like this is the perfect solution but Ubuntu seems to ignore these preferences and continues to select the HDMI sound device on startup.

The easiest solution for Ubuntu 16.04 was to create a script that listens when screen unlocks instead of script that listens to when system wakeups because it seems not all services are available at the instant that system wakes up. I couldn’t get pulseaudio to switch to HDMI sound with a wakeup script but have successfully fixed it using the unlock listening script:

dbus-monitor --session "type='signal',interface='com.ubuntu.Upstart0_6'" | \ ( while true; do read X if echo $X | grep "desktop-lock" &> /dev/null; then echo "screen locked" elif echo $X | grep "desktop-unlock" &> /dev/null; then /usr/bin/pacmd set-card-profile 0 output:hdmi-surround+input:analog-stereo fi done ) 

If you’re using a newer 3.x gnome, show your launcher (default windows key) type settings -> sound. Select a different default, close the window.

Picture of the select sound window

There’s also an Audio Output Switcher GNOME extension, which provides quick access:

enter image description here

You can set the default by ordering the sound cards in ALSA with slots= .

Find the driver module names for the sound cards you want to use by inspecting lsmod ‘s output with: lsmod | grep -P ‘^snd[_]?[A-z]*’ or just lsmod . For e.g. my Creative X-FI Xtreme Gamer is snd_ctxfi , my on-board is snd_hda_intel and my USB webcam is snd_usb_audio .

Now open up in a text editor or nano your corresponding ALSA config file e.g. sudo nano /etc/modprobe.d/alsa-base.conf and at the bottom add something of the following in order of precedence (the first declaration becomes default):

options snd slots=snd_ctxfi,snd_hda_audio,snd_usb_audio then to save just CTRL+o+enter & CTRL+x . Restart and you may be sorted.

Источник

Оцените статью
Adblock
detector