Gentoo Linux ALSA Guide

开发者福利!热门AI工具限时免费用 购周边即赠Coding Plan Lite,Claude Code、Cursor等20+工具畅享,效率翻倍! 阅读详情
Gentoo Logo

Gentoo Linux ALSA Guide

Content:

1.  Introduction

What is ALSA?

ALSA, which stands for Advanced Linux Sound Architecture, provides audio and MIDI (Musical Instrument Digital Interface) functionality to the Linux operating system. ALSA is the default sound subsystem in the 2.6 kernel thereby replacing OSS (Open Sound System), which was used in the 2.4 kernels.

ALSA's main features include efficient support for all types of audio interfaces ranging from consumer sound cards to professional sound equipment, fully modularized drivers, SMP and thread safety, backward compatibility with OSS and a user-space library alsa-lib to make application development a breeze.

ALSA on Gentoo

Historically, Gentoo offered two ways to get ALSA up and running: the in-kernel driver and the external alsa-driver package. The two solutions essentially do the same thing; this made supporting the external package extremely difficult and time-consuming. The Gentoo maintainers decided to discontinue support for the alsa-driver package, concentrating their resources on the ALSA drivers available within the Linux kernel. This guide will focus solely on configuring ALSA via the in-kernel driver.

If you still require the alsa-driver package, please email the Gentoo ALSA maintainers with why the in-kernel drivers don't work for you. Be sure to include detailed error logs.

2.  Installing ALSA

Before you proceed

First, you need to know what drivers your sound card uses. In most cases, sound cards (onboard and otherwise) are PCI based and lspci will help you in digging out the required information. Please emerge sys-apps/pciutils to get lspci, if you don't have it installed already. In case you have a USB sound card, lsusb from sys-apps/usbutils might be of help. For ISA cards, try using sys-apps/isapnptools. Also, the following pages may help users with ISA based sound cards:

Note: For ease of use/explanation, we assume the user has a PCI based sound card for the remainder of this guide.

We now proceed to find out details about the sound card.

Code Listing 2.1: Soundcard Details

# lspci -v | grep -i audio
0000:00:0a.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 06)

We now know that the sound card on the machine is a Sound Blaster Live! and the card manufacturer is Creative Labs. Head over to the ALSA Soundcard Matrix page and select Creative Labs from the list. You will be taken to the Creative Labs matrix page where you can see that the SB Live! uses the emu10k1 module. That is the information we need for now. If you are interested in detailed information, you can click on the link next to the "Details" and that will take you to the emu10k1 specific page.

If you intend to use MIDI, then you should add midi to your USE flags in /etc/make.conf before emerging any ALSA packages. Later in the guide, we will show you how to set up MIDI support.

Configuring the kernel

Note: Since the 2005.0 release, Gentoo Linux uses 2.6 as the default kernel. Please check that your kernel is a 2.6 series kernel. This method will not work on a 2.4 kernel.

Let us now configure the kernel to enable ALSA.

Important: genkernel users should now run genkernel --menuconfig all and then follow the instructions in Kernel Options for ALSA.

Code Listing 2.2: Heading over to the source

# cd /usr/src/linux
# make menuconfig

Note: The above example assumes that /usr/src/linux symlink points to the kernel sources you want to use. Please ensure the same before proceeding.

Now we will look at some of the options we will have to enable in the 2.6 kernel to ensure proper ALSA support for our sound card.

Please note that for ease of use, all examples show ALSA built as modules. It is advisable to follow the same as it then allows the use of alsaconf which is a boon when you want to configure your card. Please do not skip the Configuration section of this document. If you still like to have options built-in, ensure that you make changes to your config accordingly.

Code Listing 2.3: Kernel Options for ALSA

Device Drivers  --->
Sound --->

(This needs to be enabled)
<M> Sound card support

(Make sure OSS is disabled)
Open Sound System --->
< > Open Sound System (DEPRECATED)

(Move one step back and enter ALSA)
Advanced Linux Sound Architecture --->
<M> Advanced Linux Sound Architecture
(Select this if you want MIDI sequencing and routing)
<M> Sequencer support
(Old style /dev/mixer* and /dev/dsp* support. Recommended.)
<M> OSS Mixer API
<M> OSS PCM (digital audio) API

(You now have a choice of devices to enable support for. Generally,
you will have one type of device and not more. If you have more than one
sound card, please enable them all here.)


(Mostly for testing and development purposes, not needed for normal
users unless you know what you are doing.)

Generic devices --->

(For ISA Sound cards)
ISA devices --->
(IF you had the Gravis, you would select this option)
<M> Gravis UltraSound Extreme

(Move one level back and into PCI devices. Most sound cards today are
PCI devices)

PCI devices --->
(We now select the emu10k1 driver for our card)
<M> Emu10k1 (SB Live!, Audigy, E-mu APS)
(Or an Intel card would be)
<M> Intel/SiS/nVidia/AMD/ALi AC97 Controller
(Or if you have a VIA Card)
<M> VIA 82C686A/B, 8233/8235 AC97 Controller

(Move one level back and select in case you have an USB sound card)
USB Devices --->

Now that your options are set, you can (re)compile the kernel and ALSA support for your card should be functional once you reboot into the new kernel. Don't forget to update your GRUB configuration to use the newly built kernel. You can now proceed to ALSA Utilities and see if everything is working as it should.

3.  Configuring/Testing ALSA

ALSA Utilities

alsa-utils forms an integral part of ALSA as it has a truckload of programs that are highly useful, including the ALSA Initscripts. Hence we strongly recommend that you install alsa-utils

Code Listing 3.1: Install alsa-utils

# emerge alsa-utils

Note: If you did not compile ALSA as modules, please proceed to the ALSA Initscript section. The rest of you need to configure ALSA. This is made very easy by the existence of the alsaconf tool provided by alsa-utils.

Configuration

Recent versions of udev (>=udev-103) provide some degree of kernel-level autoconfiguration of your sound card. If possible, try to rely on just letting your kernel automatically setup your sound card for you. Otherwise, use alsaconf to configure your card, as shown below.

Note: Please shut down any programs that might access the sound card while running alsaconf.

To configure your sound card just type alsaconf in a shell as root.

Code Listing 3.2: Invoking alsaconf

# alsaconf

You will now see a neat menu guided interface that will automatically probe your devices and try to find out your sound card. You will be asked to pick your sound card from a list. Once that's done, it will ask you permission to automatically make required changes to /etc/modules.d/alsa. It will then adjust your volume settings to optimum levels, run update-modules and start the /etc/init.d/alsasound service. Once alsaconf exits, you can proceed with setting up the ALSA initscript.

ALSA Initscript

We're now almost all setup. Whichever method you chose to install ALSA, you'll need to have something load your modules or initialize ALSA and restore your volume settings when your system comes up. The ALSA Initscript handles all of this for you and is called alsasound. Add it to the boot runlevel.

Code Listing 3.3: Adding ALSA to the boot runlevel

# rc-update add alsasound boot
* alsasound added to runlevel boot
* rc-update complete.

Next, just check the /etc/conf.d/alsasound file and ensure that SAVE_ON_STOP variable is set to yes. This saves your sound settings when you shutdown your system.

Audio Group

Before we move on to testing, there's one last important thing that needs to be setup. Rule of thumb in a *nix OS: Do not run as root unless needed. This applies here as well ;) How? Well, most of the times you should be logged in as a user and would like to listen to music or access your soundcard. For that to happen, you need to be in the "audio" group. At this point, we'll add users to the audio group, so that they won't have any issues when they want to access sound devices. We'll use gpasswd here and you need to be logged in as root for this to work.

Code Listing 3.4: Adding users to the audio group

(Substitute <username> with your user)
# gpasswd -a <username> audio
Adding user <username> to group audio

Volume Check!

We've completed all the setups and prerequisites, so let's fire up ALSA. If you ran alsaconf, you can skip this step, since alsaconf already does this for you.

Code Listing 3.5: Start the service

# /etc/init.d/alsasound start

Now that the required things have been taken care of, we need to check up on the volume as in certain cases, it is muted. We use alsamixer for this purpose.

Code Listing 3.6: Starting alsamixer

(Opens up a console program. Only required settings are shown)
# alsamixer

Important: If you have issues starting up alsamixer and get errors such as alsamixer: function snd_ctl_open failed for default: No such file or directory, this is usually an issue with udev setting up the devices. Run killall udevd; udevstart to reload /dev entries and fire up alsamixer. It should solve the issue.

This is how the ALSA Mixer might look the first time you open it. Pay attention to the Master and PCM channels which both have an MM below them. That means they are muted. If you try to play anything with alsamixer in this state, you will not hear anything on your speakers.


Figure 3.1: The Alsa Mixer Main Window, Muted

Fig. 1: AlsaMixer Muted

Now, we shall unmute the channels, and set volume levels as needed.

Warning: Both Master and PCM need to be unmuted and set to audible volume levels if you want to hear some output on your speakers.

  • To move between channels, use your left and right arrow keys. (<- & ->)
  • To toggle mute, move to the specific channel, for example Master and press the m key on the keyboard.
  • To increase and decrease the volume levels, use the up and down arrow keys respectively.

Note: Be careful when setting your Bass and Treble values. 50 is usually a good number for both. Extremely high values of Bass may cause jarring on speakers that are not designed to handle them.

After you're all done, your ALSA Mixer should look similar to the one below. Note the 00 instead of the MM and also the volume levels for some optimum settings.


Figure 3.2: Alsa Mixer ready to roll

Fig. 2: AlsaMixer Unmuted

Sound Check!

Finally. Some music. If everything above is perfect, you should now be able to listen to some good music. A quick way to test is to use a command line tool like media-sound/madplay. You could also use something more well known like mpg123. If you are an ogg fan, you could use ogg123 provided by media-sound/vorbis-tools. Use any player you are comfortable with. As always, emerge what you need.

Code Listing 3.7: Getting the software

(Install the applications you want)
# emerge madplay mpg123
(To play .ogg files)
# emerge vorbis-tools

And then play your favorite sound track...

Code Listing 3.8: Playing Music

# madplay -v /mnt/shyam/Music/Paul/ Oakenfold/ -/ Dread/ Rock.mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
Title: Dread Rock
Artist: Paul Oakenfold
Album: Matrix Reloaded
Year: 2003
Genre: Soundtrack
Soundtrack
00:04:19 Layer III, 160 kbps, 44100 Hz, joint stereo (MS), no CRC

# ogg123 Paul/ Oakenfold/ -/ Dread/ Rock.ogg
Audio Device: Advanced Linux Sound Architecture (ALSA) output

Playing: Paul Oakenfold - Dread Rock.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Genre: Soundtrack
Transcoded: mp3;160
Title: Dread Rock
Artist: Paul Oakenfold
Date: 2003
Album: Matrix Reloaded
Time: 00:11.31 [04:28.75] of 04:40.06 (200.6 kbps) Output Buffer 96.9%

ALSA and USE

You can now add the alsa use flag to /etc/make.conf to ensure that your applications that support ALSA get built with it. Some architectures like x86 and amd64 have the flag enabled by default.

Issues?

If for some reason you're unable to hear sound, the first thing to do would be to check your alsamixer settings. 80% of the issues lie with muted channels or low volume. Also check your Window Manager's sound applet and verify that volumes are set to audible levels.

/proc is your friend. And in this case, /proc/asound is your best friend. We shall just take a short look at how much info is made available to us there.

Code Listing 3.9: Fun with /proc/asound

(First and foremost, if /proc/asound/cards shows your card, ALSA has
picked up your sound card fine.)

# cat /proc/asound/cards
0 [Live ]: EMU10K1 - Sound Blaster Live!
Sound Blaster Live! (rev.6, serial:0x80271102) at 0xb800, irq 11

(This displays the current running ALSA version)
# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC).

(ALSA OSS emulation details)
# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.8 emulation code)
Kernel: Linux airwolf.zion 2.6.11ac1 #2 Wed May 4 00:35:08 IST 2005 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
Sound Blaster Live! (rev.6, serial:0x80271102) at 0xb800, irq 11

Audio devices:
0: EMU10K1 (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices:
0: EMU10K1 MPU-401 (UART)

Timers:
7: system timer

Mixers:
0: SigmaTel STAC9721/23

The other most common issue users face is the dreaded "Unknown symbol in module" error. An example of the same is shown below.

Code Listing 3.10: Unknown Symbol in module error

# /etc/init.d/alsasound start
* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* Loading: snd-pcm-oss ...
WARNING: Error inserting snd_mixer_oss
(/lib/modules/2.6.12-gentoo-r6/kernel/sound/core/oss/snd-mixer-oss.ko): Unknown
symbol in module, or unknown parameter (see dmesg) FATAL: Error inserting
snd_pcm_oss
(/lib/modules/2.6.12-gentoo-r6/kernel/sound/core/oss/snd-pcm-oss.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
[ !! ]
* Loading: snd-mixer-oss ...
FATAL: Error inserting snd_mixer_oss
(/lib/modules/2.6.12-gentoo-r6/kernel/sound/core/oss/snd-mixer-oss.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
[ !! ]
* Loading: snd-seq ... [ ok ]
* Loading: snd-emu10k1-synth ... [ ok ]
* Loading: snd-seq-midi ... [ ok ]
* Restoring Mixer Levels ... [ ok ]

And when you take a look at dmesg as suggested, you're quite likely to see:

Code Listing 3.11: dmesg output

(Only relevant portions are shown below)
# dmesg | less
ACPI: PCI Interrupt 0000:02:06.0[A] -> Link [APC3] -> GSI 18 (level, low) -> IRQ 209
snd_mixer_oss: Unknown symbol snd_unregister_oss_device
snd_mixer_oss: Unknown symbol snd_register_oss_device
snd_mixer_oss: Unknown symbol snd_mixer_oss_notify_callback
snd_mixer_oss: Unknown symbol snd_oss_info_register
snd_pcm_oss: Unknown symbol snd_unregister_oss_device
snd_pcm_oss: Unknown symbol snd_register_oss_device
snd_pcm_oss: Unknown symbol snd_mixer_oss_ioctl_card
snd_pcm_oss: Unknown symbol snd_oss_info_register
snd_mixer_oss: Unknown symbol snd_unregister_oss_device
snd_mixer_oss: Unknown symbol snd_register_oss_device
snd_mixer_oss: Unknown symbol snd_mixer_oss_notify_callback
snd_mixer_oss: Unknown symbol snd_oss_info_register

The above issue is caused when you switch from the alsa-driver to in-kernel ALSA because when you unmerge alsa-driver the module files are config protected and hence get left behind. So, when you switch to in-kernel drivers, running modprobe gives you a mix of alsa-driver and in-kernel modules thus causing the above errors.

The solution is quite easy. We just need to manually remove the problem causing directory after you unmerge alsa-driver. Be sure to remove the correct kernel version and not the current one!

Code Listing 3.12: Removing the alsa-driver modules

# rm -rf /lib/modules/$(uname -r)/alsa-driver

Another reason for error messages similar to the ones above could be a file in /etc/modules.d supplying a device_mode parameter when it isn't required. Confirm that this is indeed the issue and find out which file is the culprit.

Code Listing 3.13: Confirming and searching for device_mode

(Check dmesg to confirm)
# dmesg | grep device_mode
snd: Unknown parameter `device_mode'
(Now, to get to the source of the issue)
# grep device_mode /etc/modules.d/*

Usually it is a file called alsa with the line options snd device_mode=0666. Remove this line and restart the alsasound service and that should take care of this issue.

4.  Other things ALSA

Setting up MIDI support

First, check to make sure that you enabled the midi USE flag in /etc/make.conf. If you didn't, go ahead and add it now. You will also need to re-emerge any ALSA packages that use the midi flag, such as alsa-lib and alsa-utils.

If your sound card is one of those that come with on-board MIDI synthesizers and you would like to listen to some .mid files, you have to install awesfx which is basically a set of utilities for controlling the AWE32 driver. We need to install it first. If you don't have a hardware synthesizer, you can use a virtual one. Please see the section on Virtual Synthesizers for more information.

Code Listing 4.1: Installing awesfx

# emerge awesfx

Note: You will need to copy over SoundFont (SF2) files from your sound card's driver CD or a Windows installation into /usr/share/sounds/sf2/. For example a sound font file for the Creative SBLive! card would be 8MBGMSFX.SF2.

After copying over the Soundfont files, we can then play a midi file as shown. You can also add the asfxload command to /etc/conf.d/local.start, so that the sound font is loaded every time the system starts up.

Note: /mnt paths mentioned in the code listing(s) below will not be the same in your machine. They are just an example. Please be careful to change the path to suit your machine.

Code Listing 4.2: Loading Soundfonts

(First, copy the Soundfont)
# cp /mnt/win2k/Program/ Files/CreativeSBLive2k/SFBank/8MBGMSFX.SF2 /usr/share/sounds/sf2/
(Or get it from your SoundBlaster CD)
# cp /mnt/cdrom/AUDIO/ENGLISH/SFBANK/8MBGMSFX.SF2 /usr/share/sounds/sf2/
(We load the specific Soundfont)
# asfxload /usr/share/sounds/sf2/8MBGMSFX.SF2

You can now play midi files using a program like aplaymidi. Run aplaymidi -l to get a list of available ports and then pick one to play the file on.

Code Listing 4.3: Playing MIDI

(Check open ports)
# aplaymidi -l
Port Client name Port name
64:0 EMU10K1 MPU-401 (UART) EMU10K1 MPU-401 (UART)
65:0 Emu10k1 WaveTable Emu10k1 Port 0
65:1 Emu10k1 WaveTable Emu10k1 Port 1
65:2 Emu10k1 WaveTable Emu10k1 Port 2
65:3 Emu10k1 WaveTable Emu10k1 Port 3
(Pick a port, and play a mid file)
# aplaymidi --port=65:0 /mnt/shyam/music/midi/mi2.mid

Virtual Synthesizers

If your sound card lacks a hardware synthesizer, you could use a virtual one like timidity++. Installation is a breeze.

Code Listing 4.4: Installing timidity++

# emerge timidity++

For timidity to play sounds, it needs a sound font. Fortunately, the ebuild will install some sound font packages for you. There are a few other font packages available in Portage, such as timidity-freepats and timidity-eawpatches. You can have multiple sound font configurations installed, and you can place your own in /usr/share/timidity/. To switch between different timidity configurations, you should use eselect.

Code Listing 4.5: Changing configurations

# eselect timidity list
# eselect timidity set eawpatches

Don't forget to add timidity to the default runlevel.

Code Listing 4.6: Adding timidity to the default runlevel

# rc-update add timidity default
# /etc/init.d/timidity start

You can now try out Playing MIDI files.

Tools and Firmware

Some specific sound cards can benefit from certain tools provided by the alsa-tools and alsa-firmware packages. You may install either with a simple emerge.

Code Listing 4.7: Installing ALSA Tools

# emerge alsa-tools

Multiple sound cards

You can have more than one sound card in your system simultaneously, provided that you have built ALSA as modules in your kernel. You just need to specify which should be started first in /etc/modules.d/alsa. Your cards are identified by their driver names inside this file. 0 is the first card, 1 is the second, and so on. Here's an example for a system with two sound cards.

Code Listing 4.8: Two sound cards in /etc/modules.d/alsa

options snd-emu10k1 index=0
options snd-via82xx index=1

Or, if you have two cards that use the same driver, you specify them on the same line, using comma-separated numbers. Here's an example for a system with three sound cards, two of which are the same Intel High Definition Audio card.

Code Listing 4.9: Multiple sound cards in /etc/modules.d/alsa

options snd-ymfpci index=0
options snd-hda-intel index=1,2

Plugins

You may want to install some plugins for extra functionality. alsa-plugins is a collection of useful plugins, which include: PulseAudio output, a sample rate converter, jack (a low-latency audio server), and an encoder that lets you output 6-channel audio through digital S/PDIF connections (both optical and coaxial). You can choose which of its plugins you want installed by adding their USE flags to /etc/portage/package.use.

Code Listing 4.10: Installing alsa-plugins

# emerge -avt alsa-plugins

A big thank you to...

Everyone who contributed to the earlier version of the Gentoo ALSA Guide: Vincent Verleye, Grant Goodyear, Arcady Genkin, Jeremy Huddleston, John P. Davis, Sven Vermeulen, Benny Chuang, Tiemo Kieft and Erwin.

References



Print

Updated March 5, 2008

Summary: This document helps a user setup ALSA on Gentoo Linux.

Shyam Mani
Author

Joshua Saddler
Author

Diego Pettenò
Contributor

Donate to support our development efforts.

Support OSL

Support OSL

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

Global Netoptex Inc.

Global Netoptex Inc.

Bytemark

Bytemark


Copyright 2001-2008 Gentoo Foundation, Inc. Questions, Comments? Contact us.
Dmesg输出程序错误信息 dmesg命令输出segfault at * rip * rsp * error 4 立即下载

相关推荐

保姆级教程:用Unity为麒麟系统打包Linux应用(含路径权限全攻略)

本文提供了一份详细的Unity跨平台开发指南,重点介绍如何在麒麟系统上打包和部署Linux应用。从开发环境配置、路径权限处理到性能优化和常见问题解决,全面解析了Unity项目在国产操作系统上的适配流程,帮助开发者高效完成跨平台应用开发。

weixin_28692867的博客 475

ALSA 驱动框架和驱动开发 (一)

音频设备接口包括PCM IIS AC97三大类 两种音频驱动框架: ALSA 和 OSS OSS包含DSP和MIXER字符设备接口,完全使用文件操作 ALSA以CARD和组件(PCM,mixer等)为主线,在用户空间的变成中不适用文件接口,而是使用alsalib,而下文要介绍的没有使用ALSAlib,而是使用了OSS lib       接口芯片为PCM系列 Linux 2.6.

jgdu1981的专栏 1660

EMC基础知识总结

电磁干扰(Electromagnetic Interference),简称EMI,有和两种。传导干扰主要是电子设备产生的干扰信号通过导电介质或公共电源线互相产生干扰;辐射干扰是指电子设备产生的干扰信号通过空间耦合把干扰信号传给另一个电网络或电子设备。

学海无涯的专栏 1298

linux /dev/dsp 编程,浅析打开/dev/dsp设备节点代码流程

浅析打开/dev/dsp设备节点代码流程浅析uda134x声卡驱动probe的精简步骤 设备节点/dev/dsp的主节点号为SOUND_MAJOR即14,该节点方法集为soundcore_fops,对应的open方法实现为:soundcore_open==> __look_for_unit查找在alsa_pcm_oss_init()中使用snd_pcm_notify(&snd_pc...

weixin_39685024的博客 671

Gentoo Linux ALSA指南

源网址: http://www.gentoo.org/doc/zh_cn/alsa-guide.xml 1.  简介 什么是ALSA? ALSA是Advanced Linux Sound Architecture,高级Linux声音架构的简称,它在Linux操作系统上提供了音频和MIDI(Musical Instrument Digital Interface,音乐设备数字化接口

sevedk的专栏 2085

Linux 音频设备驱动

第十七章 Linux 音频设备驱动 本章导读 在Linux 中,先后出现了音频设备的两种框架OSS 和ALSA,本节将在介绍数字音频设备及音频设备硬件接 口的基础上,展现OSS 和ALSA 驱动的结构。 17.1~17.2 节讲解了音频设备及PCM、IIS 和AC97 硬件接口。 17.3 节阐述了Linux OSS 音频设备驱动的组成、mixer 接口、dsp 接口及用户空间编程方法。

b02330224的专栏 2922

Android Logcat不能正常打印日志或显示No debuggable processes(Android Studio没有可调试应用)问题解决方案(打印,Log,2021)

1 问题背景 博主在使用多次Android Studio后,总会出现一个问题:不管在Android Studio中重新点击运行APP按钮多少次,Logcat中始终没法发现可调试的APP,而这会导致在开发APP时无法实时查看Logcat,从而定位APP开发过程中的问题,其中No debuggable processes的问题体现截图如下: 2 解决方案 博主通过Google查询到了多种解决方案,不过部分解决方案因为时效性的问题,比如2015年的解决方案是:Tools-> Android -> E

快乐李同学的博客 1万+

解决gentoo系统无声音,Alsamixer默认静音导致的

ALSA设置的问题,默认是静音的,所以没有声音。解决办法如下: #emerge alse-utils #alsamixer 把所有Master和PCM项的值调大就可以了。 下面是一些关于ALSA的基础知识。 什么是ALSA        ALSA,高级L

leeagle的专栏 6770

gentoo on t60

t60上安装gentoo

Enjoying ... 1006

alsa

http://www.gentoo.org/doc/zh_cn/alsa-guide.xml http://www.xxlinux.com/linux/article/accidence/technique/20051230/818.html http://www.alsa-project.org/main/index.php/Main_Page http://blog.c

236

HOWTO Install Gentoo on VMware in Windows NT/2K/XP

Contents[hide] 1 Introduction 2 Preparing Virtual Machine 3 Installing Gentoo Linux 3.1 Booting LiveCD Image 3.2 Kernel Configuration 4 Ad

Bekars涡轮增压的Blog ^_^ 7519

Linux内核配置指南

1. 简介 Gentoo提供了两种处理内核安装和升级的方法:自动方法(genkernel)和手动方法。尽管,对用户来说自动方法更加简便,但是下面这些理由仍然支撑很大一部分Gentoo用户手动得配置内核:很大的灵活性、比较小的内核、较短的编译时间、可以学到东西或者只因为实在太无聊了。 本文并不打算介绍自动方法(genkernel)。如果你想要用genkernel编译和安装你的内核,请看Genker...

weixin_34293246的博客 357

Android System Property讲解前言

我们在开发过程中经常会使用到系统属性,例如获取系统软件版本,获取设备名名称,boardid等;有时也需要内置自己的属性,系统属性简单来说是用来存储系统中某些键值对数据,具有全局性、存取灵活方便的特点。ro即read only属性通常是系统默认属性 在系统编译或初始化时设置的ro属性一旦设置,属性值不能改变。重启不会失效,是永恒的固定值,不能修改值,只能刷机改变1。

qq_28852011的博客 5258

Gentoo Linux ALSA 指南(转)

Gentoo Linux ALSA 指南(转)[@more@]   内容简介:本指南将会指导你如何在Gentoo Linux上设置ALSA(Advanced Linux Sound Architecture,高级Linux声音...

ciya3282的博客 271

alsa声卡框架的简单分析

很久之前就看了老师的声卡驱动的视频,但是老师写声卡驱动,用到的是oss框架,我用2.6.31版本的声卡,里面没发现和老师的类似的声卡驱动 拿老师那个声卡驱动移植过来自然能用,现在为了了解alsa框架,特地花了一天的时间去分析这个框架,贴出自己的分析过程,由于alsa框架比较复杂 所以分析的时候,有点乱,下面贴出分析过程(可能贴出来,函数的调用关系不是那么明显,具体的缩进体现不了,我附上自己的分

b02330224的专栏 1234

Gentoo安装后没有声音

去年6月全新安装了一遍Gentoo以后,发现系统没有声音,任务栏左下角喇叭打了个x,安装了声音设置的包以后,检查发现没有output设备。

FlappyTux的博客 709

Linux服务器远程崩溃查看dmesg实践及踩坑

Linux服务器远程崩溃查看dmesg实践及踩坑1. 基本方法2. Cent OS 8 Kdump配置实践与踩坑2.1 错误定位2.2 解决方案 在进行内核开发的时候,性能测试必须将内核模块部署到远程服务器上,一旦崩溃,难以定位错误。本文介绍配置kdump工具进行崩溃记录的方法。话不多说,直接开始 1. 基本方法 一般来说我们利用kdump工具进行崩溃后记录,kdump的主要原理就是在内核崩溃后,启动一个小内核来转储内存dmesg的信息。其基本配置方法已经有多篇文章进行介绍,我们这里不再赘述,仅给出链接

不定期更新系统使用、编程小技巧,哔哩哔哩账号:https://space.bilibili.com/399455629,欢迎关注 4075

linux dmesg error的意思

dmesg的error表示执行阶段错误码(error code),它由三个位组成,从高到底分别为bit2 bit1 bit0,所以它的取值范围是0~7。bit0:值为1表示没有足够的权限访问非法地址的内容,值为0表示访问的非法地址根本没有对应的页面,也就是无效地址。bit2:值为1表示是用户态程序内存访问越界,值为0表示是内核态程序内存访问越界。bit1:值为1表示是写操作导致内存访问越界,值为0表示是读操作导致内存访问越界。

qwe690595336的博客 812

Gentoo下KDE桌面的一个奇怪问题

问题描述我的系统是Gentoo Linux,装的是KDE的桌面,由于一直用耳机,所以没发现什么异常,后来我把耳机拔掉了,竟然发现系统没有声音了,一下子慌了神。故障排查耳机有声音,说明声卡驱动是好的,而且我也是在KDE桌面下听的音乐,因该说KDE的音频输出也没有问题,但是问题就出在这了,内核默认的是ALSA的输出,上次Archlinux也出现同样的问题,我装了PulseAudio解决了问题,但是这次我

Wallance's Home Online 1305

linux 进程崩溃log,linux调试:dmesg 查看程序崩溃原因分析方法之一

Linux下写C/C++程序的程序员,时常与CoreDump相见。在内存越界访问,收到不能处理的信号,除零等错误出现时,我们精心或不精心写就的程序就直接一命呜呼了,CoreDump是Linux仁慈地留下的程序的尸体,帮助程序员们解决了一个又一个问题。有时配置不给力,Linux直接毁尸灭迹,没有了Core文件;又有时,刚好磁盘空间不足,Core文件写不下了。没有Core文件的时候,如何知道程序...

weixin_42502545的博客 1417
上一篇: Gentoo环境,SCIM中安装五笔方法
下一篇: The GNOME Configuration HOWTO
Crob
博客等级 码龄27年 54粉丝 22原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值