Ubuntu scheda audio ICH5, AC'97 non funzionante

Asked by Gio

Salve, sono nuovo a linux, chiedo un pò di pazienza.
Ho installato Ubuntu su un HP Pavillion a420.it e nonostante vada benissimo, non sono riuscito a far funzionare l'audio in modo corretto: non sento niente.

Premetto che cercando qui e là, forum ufficiali e non, non ho ancora trovato soluzione al mio problema.

~$ lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
02:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A IEEE-1394a-2000 Controller (PHY/Link)
02:0f.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

questo è quanto....Dimenticavo, i cavetti che dalla scheda madre arrivavano alle porte/jack audio frontali sono stati scollegati (penso non c'entri nulla con il mio fastidio ma sarò ben contento d'esser smentito...)

Question information

Language:
Italian Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gio
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Gio, sembra una domanda scontata... ma hai provato a "doppio-cliccare" sull'altoparlante in alto a destra (dall'ora del pc) e a regolare gli slider dei controlli audio...?
Nota che nella finestra che ti si apre c'e' anche un voce nel menu principale di detta finestra:
File->Cambia Device che ti consente di cambiare device e di settarne le conseguenti impostazioni. (se puoi imponi preferibilmente Intel ICH.... (Alsa mixer)

Ciao

Revision history for this message
Gio (giovanni-zilli) said :
#2

Certo, già fatto, anzi, è stata la prima cosa...
A proposito, perchè mi dice che ho 2 'device'? Ossia :
         0: Intel ICH5 (Alsa Mixer)
         1: Realtek ALC650F (OSS Mixer)

Ho trovato indicazioni che dicevano di aggiungere :"options snd-intel8x0 ac97_quirk=3" in fondo a :/etc/modprobe.d/alsa-base....

Ma non ha funzionato.

Revision history for this message
Gio (giovanni-zilli) said :
#3
Revision history for this message
Antonio Piccinno (acquarica) said :
#4

vedi se questo può esserti d'aiuto... non è il tuo stesso modello ma potrebbe funzionare... http://www.intilinux.com/howto/394/audio-intel-82801h-ich8-driver-per-linux/

Revision history for this message
Gio (giovanni-zilli) said :
#5

No, avevo letto la stessa procedura su una pagina dell'intel, il mio problema è che il comando ./configure non mi viene preso dal terminale di ubuntu

Revision history for this message
Antonio Piccinno (acquarica) said :
#6

in che senso non viene preso? posta l'output...

Revision history for this message
Gio (giovanni-zilli) said :
#7

Perdonami ma conosco da poco linux...
Ecco:

./configure --with-cards=hda-intel,usb-audio --with-oss=yes --with-sequencer=yes
bash: ./configure: Nessun file o directory

Revision history for this message
Gio (giovanni-zilli) said :
#8

===================================================================
      Linux* Driver Release Notes For Intel(R) Desktop Boards
===================================================================
============================= PRODUCT =============================
Intel AC'97 Audio Drivers ALSA* Open Source Audio Driver Rev 1.0.1
===================================================================
DATE: May 21, 2004
=======
Purpose
=======
This readme provides installation information for the Intel AC'97* ALSA* Open Source Audio Driver on Intel desktop boards.
==============================================
Text and Command Conventions for this Document
==============================================
 -- Commands are listed either as stand-alone indented lines such as:
       make install
    or surrounded by => ____ <= delimiters in sentences such as:
       Enter the => make install <= command.
 -- Special callouts, buttons, and paths are placed within quote
    marks. For example:
       Go to the "/root/test" directory and click on the "test.bin" file.
       Always press the "Enter" key after each command entry.
 -- Bullet items are called out with a double dash "--" prefix at
    the left side of the page.
===================
Before Installation
===================
1. Ensure that the motherboard you are attempting to load this audio driver on is an Intel(R) Desktop Board with a ADI1985 AC'97 audio CODEC. This
audio driver is intended for these products only.
2. Verify that the specific kernel version installed in the system meets the minimum required kernel version listed below for your distribution. (If needed,
use the => uname -r <= command to check the current kernel version that the system is running.)
 -- RedFlag* (Hong Qi*) 4.0,(2.4.20-3)
 -- Red Hat* 9.0,(2.4.20-6)
 -- Red Hat* 8.0,(2.4.18-14)
 -- SuSE* 8.2,(2.4.20)
3. The driver installation requires kernel source and development tools. The kernel source is usually located at the "/usr/src/linux" or "/usr/src/linux-2.4"
paths. Choose "Custom" or "Complete" Linux installation to ensure that all required libraries and tools are installed.
=========================
Installation Instructions
=========================
Use one of the following instruction methods to install the driver:
 -- Method 1 provides a simple script-controlled driver installation.
 -- Method 2 lets the user install the driver with manually entered commands.
Method 1 (script controlled installation)
-----------------------------------------
1. Log into the system as the "root" user to ensure all necessary rights needed to compile and configure the audio driver.
2. If you boot into the X-Windows GUI, open either a terminal or shell window.
3. Go to the directory where you downloaded the driver package file.
4. Decompress the downloaded file with the following command:
      gunzip intel8x0-alsa-1.0.1.sh.gz
5. Run the downloaded package using the following command:
     ./intel8x0-alsa-1.0.1.sh
6. The script should auto-detect your hardware. Select "OK" to continue (with the "Enter" key).
7. Review and accept the license as follows:
    -- Use the "Up" and "Down" arrow keys to scroll the license.
    -- Use the "Left" and "Right" arrow keys to select.
    -- Select "Exit".
    -- Click either "Yes" or "No".
                                                                             Page 1
   -- Then press the "Enter" key to complete the selection.
8. Then select "OK" at each dialog box to complete the installation.
Method 2 (manually controlled installation)
-------------------------------------------
1. Log into the system as the "root" user to ensure all necessary rights needed to compile and configure the audio driver.
2. If you boot into the X-Windows GUI, open a terminal or shell window.
3. Uncompress the downloaded file with the following command:
     gunzip intel8x0-alsa-1.0.1.sh.gz
4. Extract the compressed package to the "/root" directory using the following command:
     ./intel8x0-alsa-1.0.1.sh -d
5. Now navigate to the directory that contains the extracted audio package. For example:
     cd /tmp/audio.<DIR>/alsa-driver-1.0.1
     (Note: <DIR> is the directory that the installer outputs on the screen)
6. From this directory enter the following command:
     ./configure --with-cards=intel8x0 --with-sequencer=yes
7. Next enter the following commands (note that this may take a few minutes to complete):
     make
     make install
     ./snddevices
8. Now enter the following commands (note that there will not be any text feedback during this step):
     modprobe soundcore
     modprobe snd-intel8x0
     modprobe snd-pcm-oss
     modprobe snd-mixer-oss
     modprobe snd-seq-oss
9. Change to the "libs" directory. For example:
     cd /tmp/audio.<DIR>/alsa-libs-1.0.1/
     (Note: <DIR> is the directory that the installer outputs on the screen)
10. Enter the commands:
     ./configure
     make
     make install
11. Change to the "utils" directory. For example:
     cd /tmp/audio.<DIR>/alsa-utils-1.0.1/
     (Note: <DIR> is the directory that the installer outputs on the screen)
12. Enter the commands:
     ./configure
     make
     make install
13. Change to the "oss" directory. For example:
     cd /tmp/audio.<DIR>/alsa-oss-1.0.1/
     (Note: <DIR> is the directory that the installer outputs on the screen)
14. Enter the commands:
     ./configure
     make
     make install
     alsaconf
  This will launch the ALSA Configuration Utility.
15. Now select "OK" on all screens.
16. On the "Audio Solution Selection" screen, select the "snd-intel8x0" device.
17. Now exit the Configuration utility and the settings will be automatically saved.
==================
After Installation
==================
1. Reboot your system, restarting the x-server is not sufficient. If the new hardware detection starts upon reboot, simply highlight "Configure" and allow
the system to continue rebooting.
2. Once the desktop is loaded, open the audio mixer and adjust the "Master" and "PCM" volume sliders up from the default 0 position or no audio will be
heard.
                                                                             Page 2
============
Known Issues
============
 -- Support for 2-channel stereo audio is all that is currently provided by this audio driver.
============
Errata
============
Workqueue.h Error
-----------------
If you receive an error related to workqueue.h while doing a manual install, the following workaround may help fix the problem.
1. Follow the manual install instructions until you get to the part about configuring and compiling the ALSA driver (step 6 above).
2. Run ./configure --with-cards=intel8x0 --with-sequencer=yes
3. After this completes, enter ($klocation = the directory where your kernel is located. Usually /usr/src/linux-2.4/):
              mkdir -p $klocation/include/linux
              touch $klocation/include/linux/workqueue.h
              mkdir -p include/linux
              touch include/linux/workqueue.h
4. Continue with the manual install instructions starting from step 7.
================
Important Notice
================
All information and software contained herein is provided "AS IS" to Intel customers. Intel Corporation disclaims all express or implied warranties and
liabilities for the use of this document, the software and the information contained herein, and assumes no responsibility for any errors which may appear
in this document or the software, nor does Intel make a commitment to update the information or software contained herein. Intel reserves the right to
make changes to this document or software at any time, without notice. Please contact the distribution vendor for specific Linux version support.
Intel and the Intel logo are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.
Copyright (c) 2003-2004 Intel Corporation.

Revision history for this message
Antonio Piccinno (acquarica) said :
#9

devi portarti con il terminale nella cartella dove c'è il file configure... ad esempio se la cartella l'hai messa sul desktop devi fare cd /home/tuonomeutente/Desktop/nomecartella e poi dai ./configure

Revision history for this message
Gio (giovanni-zilli) said :
#10

:/tmp/audio.oy6334/alsa-driver-1.0.1$ ./configure --with-cards=intel8x0 --with-sequencer=yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

Revision history for this message
Antonio Piccinno (acquarica) said :
#11

da terminale prova a dare sudo apt-get install build-essential e poi rifai il ./configure

Revision history for this message
Gio (giovanni-zilli) said :
#12

ok, ha funzionato ma l'audio io non lo sento ancora...

Quando esce la 7.10, formatto e reinstallo sperando possa funzionare..

Grazie ancora.

Revision history for this message
Andrea Corbellini (andrea.corbellini) said :
#13

Hai un device (altoparlante) integrato nel PC? Se sì. è probabile che Ubuntu riproduca i suoni lì anziché nei device esterni.

Revision history for this message
Gio (giovanni-zilli) said :
#14

Quello che fa 'bip', ogni tanto? Magari quando si digita qualcosa di sbagliato? Sì.

Sapresti dirmi una soluzione?

Grazie

Revision history for this message
Andrea Corbellini (andrea.corbellini) said :
#15

No, quello è un altro altoparlante. Volevo sapere se ne hai uno integrato e/o esterno. Dammi anche l'output del comando
cat /proc/cmdline

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#16

Gio' prova l'ultima versione di Alsa

Apri un Terminale da Applicationi->Accessori->Terminale

e digita

sudo apt-get install wget libncurses5-dev build-essential gettext

immetti la tua password quando richiesta (non vedrai nessun carattere a schermo mentre la digiterai) poi premi enter.

Poi copia ed incolla i seguenti comandi:

cd $HOME
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.15.tar.bz2
tar jxvf alsa-driver-1.0.15.tar.bz2
cd alsa-driver-1.0.15
./configure --with-cards=hda-intel && make
sudo make install

cd $HOME
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.15.tar.bz2
tar jxvf alsa-lib-1.0.15.tar.bz2
cd alsa-lib-1.0.15
./configure && make
sudo make install

cd $HOME
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.15.tar.bz2
tar jxvf alsa-utils-1.0.15.tar.bz2
cd alsa-utils-1.0.15
./configure && make
sudo make install

Poi puoi aggiungere o modificare nel file /etc/modprobe.d/alsa-base le opzioni da passare al modulo alsa:
sudo gedit /etc/modprobe.d/alsa-base
le opzioni di caricamento del modulo possono essere svariate, ad esempio su un acer ho messo questa opzione ed ha funzionato:

options snd-hda-intel model=acer

per la tua scheda le opzioni da inserire saranno senz'altro diverse, vedo che hai già provato.
Guarda: http://alsa.opensrc.org/index.php/Hda

Queste pagine possono aiutarti
http://alsa.opensrc.org/index.php/ALSA_modules
http://alsa.opensrc.org/index.php/Sound_cards

Spero che cio' ti possa servire, ciao.

Revision history for this message
Gio (giovanni-zilli) said :
#17

~$ cat /proc/cmdline
root=UUID=759624fd-d15f-4459-9309-f937417dd1e1 ro quiet splash locale=it_IT

Revision history for this message
Gio (giovanni-zilli) said :
#18

Ho anche reinstallato Xp, e anche windows non mi permette di usare la periferica audio, neanche con i driver scaricati dal sito del produttore.
Il computer 'era' un HP Pavillion a420.it.
Quello che ho fatto è stato togliere la scheda madre dal suo case originale.
Facendo ciò, ho dovuto scollegare i cavetti che andavano alle porte audio frontali, montate solo sul case originale, e non su quello sul quale l'ho montata ora...quindi adesso ci sono solamente le tre prese jack posteriori, quelle appunto intagrate nella scheda madre.

Spero di essere stato chiaro, e a sto punto credo che il problema di riconoscimento anche da Windows dipenda proprio da questi cavetti scollegati.
Ringrazio e spero di trovare soluzione.

Revision history for this message
Andrea Corbellini (andrea.corbellini) said :
#19

Magari prova a raccogliere anche alcune informazioni sul bios. Se è un phoneix ad esempio dovrai sudare per configurarlo correttamente. Controlla anche eventuali driver per la scheda madre.

Revision history for this message
Gio (giovanni-zilli) said :
#20

Sono entrato nel menu del bios e non ho trovato molte informazioni:
In basso c'è scritto: 'V.2.51 (c) Copyright 1985-2004 American Megatrends, Inc.'
Mentre da un altra parte: ' BIOS REVISION 3.8 08/27/04 '

Questo per quanto riguarda il bios...

Per quanto riguarda i driver per la scheda madre proprio non so a cosa ti riferisci...

Revision history for this message
Andrea Corbellini (andrea.corbellini) said :
#21

Scusami, avevo letto che avevi cambiato scheda madre :)
Comunque si: il problema dipende proprio dai cavi.

Revision history for this message
Gio (giovanni-zilli) said :
#22

E quindi come mi devo comportare?
Devo collegare con un jumper gli attacchi ora scollegati che sono sulla scheda?

Revision history for this message
Gio (giovanni-zilli) said :
#23

Benissimo, ho scoperto che la mia scheda madre è una P4SD LA (Oxford).
Ho trovato il suo manuale qui: www.ctechinfo.org/manuals/oxford_manual.pdf

Ho poi fatto un ponte tra FRONT OUT-L Signal e HP-L Signal
e tra FRONT OUT-R Signal e HP-R Signal (Nel manuale a pag.16 punto 8).

Ora sia Windows che Ubuntu riproducono l'audio.(anche se solo a sinistra, ma probabilmente a causa dei jumper utilizzati, non propriamente adatti ai connettori)

Grazie a tutti per l'aiuto prestatomi fin ora.