Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Multimedia & Video
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Multimedia & Video
Have multimedia question? ATI, Nvidia, Sound cards. Just ask here.

 
Thread Tools Display Modes
Old May 26th, 2007   #1
lexarrow
A Carafe of Ubuntu
 
lexarrow's Avatar
 
Join Date: Jan 2007
Location: Romania
Beans: 107
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to lexarrow Send a message via Yahoo to lexarrow Send a message via Skype™ to lexarrow
Arrow HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mute)

I am currently running Ubuntu Studio on a HP Pavilion dv2025nr.

After this install you should have all sound features enabled.

This is a compile of alsa drivers 1.0.15rc3

1.Check your kernel version - in terminal window type:

Code:
`uname -r'
mine is 2.6.10-16-generic

2.Install these packages:

Code:
sudo apt-get install linux-headers-$(uname -r) build-essential libncurses5-dev libncursesw5-dev ncurses-term alsa-tools-gui gettext po-debconf debhelper quilt alsa-base libc6-dev
and uninstall these ones:
Code:
 sudo apt-get remove --purge alsa-base alsa-tools
be sure not to uninstall alsa-utils as it will uninstall your gdm too

3.Back-up your current configuration:

Code:
tar -zcvf original-drivers.tgz /lib/modules/`uname -r`/kernel/sound
4.Make a directory for alsa packages:

Code:
mkdir /home/user/alsa
cd /home/user/alsa
5. Get alsa packages:
Code:
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.15rc3.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.15rc3.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.15rc1.tar.bz2
wget ftp://ftp.alsa-project.org/pub/firmware/alsa-firmware-1.0.15rc1.tar.bz2

6.Unpack archives:

Code:
tar xvf alsa-driver-1.0.15rc3.tar.bz2
tar xvf alsa-lib-1.0.15rc3.tar.bz2
tar xvf alsa-utils-1.0.15rc1.tar.bz2
tar xvf alsa-firmware-1.0.15rc1.tar.bz2
7.Install driver:
Note: 'sudo make clean' and sudo make mrproper are to clean out your previous drivers. If you are doing a fresh install, you don't need them.

Code:
cd alsa-driver-1.0.15rc3/
sudo make clean
sudo make mrproper
./configure --with-oss=yes --with-cards=hda-intel 
sudo make
sudo make install
9.Install alsa-lib:

Code:
cd alsa-lib-1.0.15rc3
sudo make clean
./configure
sudo make
sudo make install
10.Install alsa-utils:

Code:
cd alsa-utils-1.0.15rc1
./configure
sudo make clean
sudo make 
sudo make install
11.Install alsa-firmware:

Code:
cd alsa-firmware-1.0.15rc1
./configure
sudo make clean
sudo make 
sudo make install
12.double-click Volume control (the speaker next to the clock), then Edit->Preferences and check all the boxes (you should have 8 boxes : Master, PCM, LineIn, IEC958, Digital, Ext Mic, Int Mic, Int Mic (yes 2 times Int Mic). Close Preferences.

13.Go to Switches tab and check LineIn

14.Go to Recording tab and be sure both mic and speakers are not muted.

15. Go to Playback tab and be sure Master,PCM, and Ext Mic are not muted and BE SURE IntMic IS MUTED!

16. In a terminal, login as root and type:
Code:
 /etc/init.d/alsa-utils stop
17. Type the following command:
Code:
/usr/sbin/alsaconf
When it asks you, choose the 'hda-intel' card and then to save the changes to the files

18.Type:
Code:
 /etc/init.d/alsa-utils start
You should be done! If yo still don't have sound restart and it will be ok !

Note: 1. Every time you update the kernel, you have to recompile the driver
2. There is still an issue unresolved, the 'no sound after a windows session ' and can be fixed by unplugging the power cord before booting Ubuntu. If it doesn't work, reboot again with no power cord.

There's no solution for the 'no sound after Windows yet, but:

2.1 If you are in Windows unplug the AC cable and plug it back after you logged into Ubuntu.
2.2 If you are already on Linux after a Windows session and you didn't follow point 1.1estat, Unplug the AC cable, then SHUTDOWN , not restart the computer. Start it again manually and plug the cable back after you logged into Ubuntu

This way you should have sound every time you follow one of these 2 steps

Special thanks to these 2 articles: 1 and 2

Hope it works for you too!

Last edited by lexarrow; October 8th, 2007 at 09:51 AM..
lexarrow is offline   Reply With Quote
Old May 26th, 2007   #2
defyingthenorm
First Cup of Ubuntu
 
Join Date: Nov 2006
Location: Louisiana
Beans: 6
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to defyingthenorm
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

When installing the firmware, you listed the code as "cd alsa-lib-1.0.14rc4" instead of "cd alsa-firmware-1.0.14rc4".

Other than that, great guide!

Fixed my headphone problem like that!
__________________
"So, what are you waiting on, kid?"
"I dunno, something amazing I guess."
"Me too, kid. Me too."

Last edited by defyingthenorm; May 26th, 2007 at 03:12 PM..
defyingthenorm is offline   Reply With Quote
Old May 26th, 2007   #3
lexarrow
A Carafe of Ubuntu
 
lexarrow's Avatar
 
Join Date: Jan 2007
Location: Romania
Beans: 107
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to lexarrow Send a message via Yahoo to lexarrow Send a message via Skype™ to lexarrow
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

Updated. Thanks!
lexarrow is offline   Reply With Quote
Old May 26th, 2007   #4
brunomfs
First Cup of Ubuntu
 
Join Date: Aug 2006
Location: Brazil
Beans: 4
Ubuntu 7.04 Feisty Fawn
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

Thanks very much, this guide worked great in my hp 2125us!

Just a note: when installing alsa-utils, the instalation can complain about "t-ja.gmo" or something like this as pointed out here:
http://www.linuxquestions.org/questi...d.php?t=294058

Just run:

$sudo apt-get install gettext

And it should do ok!

Thanks again!
brunomfs is offline   Reply With Quote
Old May 26th, 2007   #5
lexarrow
A Carafe of Ubuntu
 
lexarrow's Avatar
 
Join Date: Jan 2007
Location: Romania
Beans: 107
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to lexarrow Send a message via Yahoo to lexarrow Send a message via Skype™ to lexarrow
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

Thanks! Updated the point 2 of the install.
lexarrow is offline   Reply With Quote
Old May 26th, 2007   #6
loupy
A Carafe of Ubuntu
 
Join Date: Oct 2005
Beans: 102
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to loupy Send a message via MSN to loupy Send a message via Yahoo to loupy
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

Thank you so much for this how-to. It worked perfectly!
loupy is offline   Reply With Quote
Old May 26th, 2007   #7
brandenw
First Cup of Ubuntu
 
Join Date: May 2007
Beans: 8
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

OK, I have an HP DV 2120us.... and everything worked (as far as no errors during that process)

However i still have no sound. when i use the volume monitor it doesnt even register that the sound is playing, if i use rhythmbox.. the file "plays" but no sound. ive tried muting, unmuting, adjusting the sound, headphones, no headphones. i still cant get it to work. I am new to this i can set up a webserver and do php and thats about it, so what do you need from me? or where do i go next?
brandenw is offline   Reply With Quote
Old May 27th, 2007   #8
lexarrow
A Carafe of Ubuntu
 
lexarrow's Avatar
 
Join Date: Jan 2007
Location: Romania
Beans: 107
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to lexarrow Send a message via Yahoo to lexarrow Send a message via Skype™ to lexarrow
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

I had also had this kind of problems. Try 2 thinngs:

1. In volume manager File-Change device-HDA Nvidia. Then go to Edit-Preferences and check master, pcm, ext mic, int mic and after that go back to volume control-switches and check only int-mic. Now restart and you should have sound. If this doesn't work please post a snapshot of your volume control-preferences.

2. Install alsamixergui
Code:
sudo apt-get install alsamixergui
Go to Applications-Sound and video-Alsamixergui
You should see from left to right on top of the application Card, Chip and Alsa. Click Alsa-Proc info.
List back here Card, Chip and Proc Info (maybe you have another kind of hardware)
lexarrow is offline   Reply With Quote
Old May 27th, 2007   #9
brandenw
First Cup of Ubuntu
 
Join Date: May 2007
Beans: 8
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

Thanks for the help! that didnt work, but here i believe is all the information you asked for.

/proc/asound/version:
====================
Advanced Linux Sound Architecture Driver Version 1.0.14rc4.
Compiled on May 26 2007 for kernel 2.6.20-15-generic (SMP).

/proc/asound/cards:
=================
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xc0000000 irq 22

/proc/asound/devices:
====================
0: [ 0] : control
1: : sequencer
16: [ 0- 0]: digital audio playback
17: [ 0- 1]: digital audio playback
24: [ 0- 0]: digital audio capture
33: : timer

/proc/asound/oss-devices:
========================
No information available

/proc/asound/timers:
===================
G0: system timer : 4000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-1-0: PCM playback 0-1-0 : SLAVE

/proc/asound/pcm:
================
00-01: Conexant Digital : Conexant Digital : playback 1
00-00: CONEXANT Analog : CONEXANT Analog : playback 1 : capture 1
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	404
Size:	127.7 KB
ID:	33595  
brandenw is offline   Reply With Quote
Old May 27th, 2007   #10
lexarrow
A Carafe of Ubuntu
 
lexarrow's Avatar
 
Join Date: Jan 2007
Location: Romania
Beans: 107
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to lexarrow Send a message via Yahoo to lexarrow Send a message via Skype™ to lexarrow
Re: HowTo HP DV2000 compile alsa to resolve all issues (mic, jack, AC-power,auto mut

It looks exactly like mine. First off, don't change anything! I had that problem too. I have a few questions:

1.Do you also have windows installed?It happened to me to reboot after a windows session and not have sound. So I rebooted again without the AC cable in the laptop and it worked.
2.what options do you have enabled in Volume control-Switches? Please post a snapshot with Volume control-Switches
lexarrow is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:09 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry