Solution to exclusive audio channels for applications in Ubuntu

Source: Internet
Author: User

Solution to the Problem of exclusive audio channels in Ubuntu applications [method 1] (for silent or audio exclusive) Eliminate Pulseaudio and only use Alsa to execute the following command: sudo apt-get install alsa-oss libasound2 libasound2-pluginssudo mv/etc/X11/Xsession. d/70 pulseaudio ~ /Gconftool-2-s-t bool/apps/gnome_settings_daemon/plugins/sound/active false # Note: gconftool-2... False indicates a command. Enter the same line. Asoundconf unset-pulseaudiosudo update-rc.d-f pulseaudio remove and then execute asoundconf list output should be like this situation: Names of available sound cards: Intel (write down your sound card name, such as Intel here) then run asoundconf set-default-card Intel (replace Intel with your sound card name) (Supplement: The real Sound card Name and HDMI options may appear for some users, do not select HDMI (unless you output it to an LCD TV). If you want to retain the system prompt during login, edit ~ /. Bashrc file: gedit ~ /. Add "export SDL_audiodriver = alsa" to the end of the bashrc file, choose "system"> "preference"> "sound effect", and select "ALSA-Advanced…" from the top to bottom... Felix Note: after testing, it seems that it is okay not to do so. At this point, we have completely blocked pulseaudio and set alsa. [Method 2] (exclusive to audio) We will continue to use PulseAudio, which has been successfully run in PulseAudio. Only ALSA software is supported. Continue to use ALSA. Solution: gksu gedit/etc/pulse/default. pa: # load-module-alsa-sink... Change to load-module-alsa-sink device = dmix to find: change load-module-suspend-on-idle to # load-module-suspend-on-idle (re-logout and then login). In addition, locate: (solves the recording problem, for example, skype and audacity) load-module-hal-detect is changed to: # load-module-hal-detect. By using dmix, PulseAudio will not occupy the entire audio system. PulseAudio will be one of alsa's Mix channels. Then, ALSA and PulseAudio can coexist well. Libflashsupport for pulseaudio is no longer needed in the future. Also, install the PulseAudio controller to enjoy the advantages of PulseAudio. Sudo apt-get install padevchooser [method 3] (for silent) (Note: If you click the small speaker icon on the right of the screen and an error message appears, you can directly use this method) if the above settings are still invalid, you can download and install the new version of alsa (Note: before installation, make sure that your kernel is the latest version in the source) first to http://www.alsa-project.org/download the latest alsa-driver,alsa-and libsa-utils. Assume that the downloaded file is stored in ~ /Alsa (/home/user name/alsa ). First decompress: tar jxvf alsa-driver-xxx.tar.bz2tar jxvf alsa-lib-xxx.tar.bz2tar jxvf alsa-utils-xxx.tar.bz2 and then compile and install cd respectively. /alsa-driver-xxx. /configure & makesudo make installcd .. /alsa-lib-xxx. /configure & makesudo make installcd .. /alsa-utils-xxx. /configure & makesudo make install restart the computer (note not to restart X)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.