Step 1
If you are using Ubuntu 11.04 (Natty), then execute this command and reboot:
sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-`uname -r` linux-alsa-driver-modules-$(uname -r) libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-`uname -r` linux-alsa-driver-modules-$(uname -r) libasound2; killall pulseaudio; rm -r ~/.pulse*
If you are using Ubuntu 10.10 (Maverick), then execute this command and reboot:
sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo add-apt-repository ppa:ricotz/unstable; sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-`uname -r` linux-alsa-driver-modules-$(uname -r) libasound2; sudo apt-get --reinstall install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-`uname -r` linux-alsa-driver-modules-$(uname -r) libasound2; killall pulseaudio; rm -r ~/.pulse*
If you are using Ubuntu 10.04 (Lucid), then execute this command and reboot:
sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo add-apt-repository ppa:team-iquik/alsa; sudo apt-get update; sudo apt-get dist-upgrade; sudo apt-get install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-`uname -r` linux-alsa-driver-modules-$(uname -r) libasound2; sudo apt-get --reinstall install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-`uname -r` linux-alsa-driver-modules-$(uname -r) libasound2; killall pulseaudio; rm -r ~/.pulse*
If you are using Ubuntu 9.10 (Karmic), then you should upgrade to Ubuntu 10.04.2 LTS or newer versions. End of life date for Ubuntu 9.10 was April 2011.
If you upgraded ALSA using the command above and still do not have working sound after rebooting your PC again, then execute this command, reboot and retest sound using headphones and speakers:
cd; sudo apt-get update; sudo apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev linux-headers-`uname -r` libncursesw5-dev; wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.24.tar.bz2; tar jxvf ./alsa-driver-1.0.24.tar.bz2; rm ./alsa-driver-1.0.24.tar.bz2; cd ./alsa-driver-1.0.24; sudo ./configure; sudo make; sudo make install; killall pulseaudio; cd; rm -r ~/.pulse*; rm ./alsa-driver-1.0.24
Step 2
In gnome-terminal, make sure that unlimited scrolling is enabled:
- click on Edit > Profiles > "Default" profile > Scrolling. Choose "Unlimited" as scrolling option. Click Close and Close again.
If you are using the Gnome interface, open the Terminal console via "Applications->Accessories->Terminal"
If you are using the Unity interface, the easiest way to open the Terminal is to use the 'search' function on the dash. Or you can click on the 'More Apps' button, click on the 'See more results' by the installed section, and find it in that list of applications. A third way, available after you click on the 'More Apps' button, is to go to the search bar, and see that the far right end of it says 'All Applications'. You then click on that, and you'll see the full list. Then you can go to Accessories > Terminal after that.
So the methods in Unity are:
Dash > Search for Terminal
Dash > More Apps > 'See More Results' > Terminal
Dash > More Apps > Accessories > Terminal
Step 3
Reboot your computer. Then run the following 2 diagnostic commands.
Tip: If you have a wheel mouse or 3-button mouse, you do not need to type the commands into the Terminal. Instead, copy the commands from this web page and paste them into the terminal. To do this, move your mouse cursor over the start of the command written on the Web page. Then press the left mouse button and drag the mouse till the end of the command to highlight the whole command; then release the mouse button. Then press the middle mouse button or mouse wheel anywhere inside the Terminal. The command should now be printed in the Terminal without errors. Now press <Enter> to execute the command.
wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh; chmod +x ./alsa-info.sh; ./alsa-info.sh
Post the full Terminal output after the script has actually run by creating a new question in launchpad then copy&paste the terminal output into your newly created question. Carefully inspect the Terminal output of the ALSA Information script that was generated by the previous diagnostic command
bash alsa-info.sh --stdout
After upgrading ALSA and rebooting the computer make sure that the ALSA driver version, library version and utilities version are all exactly the same version number.
The Terminal output after running the ALSA information script should contain something like this:
# ALSA Version
# Driver version: 1.0.24
# Library version: 1.0.24.1
# Utilities version: 1.0.24.2
If the Driver, Library and Utilities version numbers are not equal, this probably due to one of the following issues:
1. One of the ALSA components was not successfully upgraded during step 1 in this procedure
2. ALSA was correctly installed or upgraded, but a wrong / old kernel was booted instead of the most recent kernel version. In that case, boot the newest kernel version (that is available in the standard/default Ubuntu repositories) and then retest sound.
For example: if you installed or upgraded to Ubuntu 10.10 (Maverick Meerkat edition), make sure the running kernel version is 2.6.35-22-generic or higher. Or else sound will not work!
For example: if you installed or upgraded to Ubuntu 10.04 (Lucid Lynx edition), make sure the running kernel version is 2.6.32-21-generic or higher. Or else sound will not work!
Step 4
Copy & paste the following diagnostic command into the Linux Terminal, then press <Enter>. The command starts with the command cat and ends with the word sound. (Do not copy & paste this diagnostic command from an email message into the Terminal, as that will only copy part of the command.) When asked for your password, type your normal user password (no stars are given as you type); then press <Enter> again.
Tip: If you have a wheel mouse or 3-button mouse, you do not need to type the commands into the Terminal. Instead, copy the commands from this web page and paste them into the terminal. To do this, move your mouse cursor over the start of the command written on the Web page. Then press the left mouse button and drag the mouse till the end of the command to highlight the whole command; then release the mouse button. Then press the middle mouse button or mouse wheel anywhere inside the Terminal. The command should now be printed in the Terminal without errors. Now press <Enter> to execute the command.
cat /proc/asound/{version,cards,devices,hwdep,pcm,seq/clients}; sudo rm /etc/asound.conf; sudo rm -r ~/.pulse ~/.asound* ;sudo rm ~/.pulse-cookie; sudo apt-get update; sudo apt-get install aptitude; sudo aptitude install paman gnome-alsamixer libasound2-plugins padevchooser libsdl1.2debian-pulseaudio; sudo lshw -short;ls -lart /dev/snd; cat /dev/sndstat; lspci -nn; sudo which alsactl; sudo fuser -v /dev/dsp /dev/snd/* ; dpkg -S bin/slmodemd; dmesg | egrep 'EMU|probe|emu|ALSA|alsa|ac97|udi|snd|ound|irmware'; sudo /etc/init.d/sl-modem-daemon status; sudo grep model /etc/modprobe.d/* ; sudo dmidecode|egrep 'anufact|roduct|erial|elease'; lsmod | egrep 'snd|usb|midi|udio'; aplay -l; sudo lshw -C sound
Your ALSA output shows several issues:
Step A)
WARNING: All config files need .conf: /etc/modprobe. d/alsa- base, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe. d/options, it will be ignored in a future release.
Please run the following commands to delete those invalid ALSA configuration files:
sudo rm /etc/modprobe. d/alsa- base
sudo rm /etc/modprobe. d/options
Only the following configuration file is the right one to use in Ubuntu 10.04 and should NOT be deleted:
/etc/modprobe. d/alsa- base.conf
Step B)
!!ALSA Version
!!------------
Driver version: 1.0.21
Library version: 1.0.22
Utilities version: 1.0.22
Your ALSA driver, library and utilities versions are not equal and not fully up-to-date.
Please execute the following procedure to upgrade ALSA to version 1.0.23:
http:// monespaceperso. org/blog- en/2010/ 05/02/upgrade- alsa-1- 0-23-on- ubuntu- lucid-lynx- 10-04/
Step C)
!!Modprobe options (Sound related)
!!----- ------- ------- ------- ------
snd-pcsp: index=-2
snd-hda-intel: model=m51va
!!HDA-Intel Codec information
!!----- ------- ------- ------- -
--startcollapse--
Codec: Realtek ID 270
The model option you selected to use in /etc/modprobe. d/alsa- base.conf does not correspond with the Codec version that the ALSA driver detected. Codec: Realtek ID 270 means that your ALSA driver is unable to identify precisely which Codec and mixer type is linked to your soundcard. This is another reason to upgrade ALSA to a newer version. Hopefully, the newer ALSA driver can correctly identify the Codec.
So there is no good reason YET to set a model option in the /etc/modprobe. d/alsa- base.conf file.
Run the following command:
gksudo gedit /etc/modprobe. d/alsa- base.conf
In the /etc/modprobe. d/alsa- base.conf file, REMOVE the following line, if it exists:
options snd-hda-intel model=m51va
Then save the change to the file.
After executing steps A, B and C, please reboot and retest sound.
Step A)
WARNING: All config files need .conf: /etc/modprobe.
WARNING: All config files need .conf: /etc/modprobe.
Please run the following commands to delete those invalid ALSA configuration files:
sudo rm /etc/modprobe.
sudo rm /etc/modprobe.
Only the following configuration file is the right one to use in Ubuntu 10.04 and should NOT be deleted:
/etc/modprobe.
Step B)
!!ALSA Version
!!------------
Driver version: 1.0.21
Library version: 1.0.22
Utilities version: 1.0.22
Your ALSA driver, library and utilities versions are not equal and not fully up-to-date.
Please execute the following procedure to upgrade ALSA to version 1.0.23:
http://
Step C)
!!Modprobe options (Sound related)
!!-----
snd-pcsp: index=-2
snd-hda-intel: model=m51va
!!HDA-Intel Codec information
!!-----
--startcollapse--
Codec: Realtek ID 270
The model option you selected to use in /etc/modprobe.
So there is no good reason YET to set a model option in the /etc/modprobe.
Run the following command:
gksudo gedit /etc/modprobe.
In the /etc/modprobe.
options snd-hda-intel model=m51va
Then save the change to the file.
After executing steps A, B and C, please reboot and retest sound.
没有评论:
发表评论