Fedora Linux Support Community & Resources Center
  #1  
Old 6th June 2011, 07:02 PM
Jluis Offline
Registered User
 
Join Date: Oct 2010
Posts: 11
windows_xp_2003ie
When I plug in my headphones, I still hear sound through my desktop speakers...

I just noticed that when I plug in my headphones, I still hear sound through my desktop speakers when I am using Fedora 15.
I have an HP pavilion desktop, running Fedora 15 and Windows Vista.

Please, Could somebody help me?
Thanks.
JLuis

Reply With Quote
  #2  
Old 6th June 2011, 10:24 PM
oldcpu Offline
Registered User
 
Join Date: Jan 2009
Location: Europe
Posts: 241
linuxsusefirefox
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

Quote:
Originally Posted by Jluis View Post
I just noticed that when I plug in my headphones, I still hear sound through my desktop speakers when I am using Fedora 15.
I have an HP pavilion desktop, running Fedora 15 and Windows Vista.
My experience is when that happens, it is because alsa failed to precisely automatically configure one's audio configuration upon boot, and one needs to force a model option appropriately selected from the alsa documentation's HD-Audio-Models.txt file.

To know which option one needs to know their PC's hardware audio codec. I find an easy way to do that is to run the diagnostic script alsa-info.sh which in Fedora I think is here:
Code:
/usr/bin/alsa-info.sh
In some other distributions it is located here:
Code:
/usr/sbin/alsa-info.sh
and you can even download and run it as follows:
Code:
wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && bash alsa-info.sh
or if that fails do it step by step and download:
Code:
wget http://www.alsa-project.org/alsa-info.sh
then run the script alsa-info.sh (copy and paste this into a terminal:
Code:
bash alsa-info.sh
Be certain to have your PC connected to the internet when you run it, and select the SHARE/UPLOAD option.

And that output will tell one their hardware audio codec, such that one can then determine what section in the HD-Audio-Models.txt file is applicable, and then apply the edit to the appropriate Fedora alsa configuration file , where the edit will look something like adding the following line ...
Code:
options snd-hda-intel model=someoption
where someoption is the appropriate model option.
Reply With Quote
  #3  
Old 6th June 2011, 10:27 PM
cymbaline42 Offline
Registered User
 
Join Date: May 2011
Posts: 165
windows_7firefox
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

If you have a sound card, USB or otherwise, you will have to change the sound output device from the Sound Settings.
Reply With Quote
  #4  
Old 17th June 2011, 03:52 PM
Jluis Offline
Registered User
 
Join Date: Oct 2010
Posts: 11
windows_xp_2003ie
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

I got my hardware audio codec running the script alsa-info.sh command:

!!################################
!!ALSA Information Script v 0.4.60
!!################################
!!Script ran on: Tue Jun 7 23:58:22 UTC 2011
!!Linux Distribution
!!------------------

Fedora release 15 (Lovelock) Fedora release 15 (Lovelock) Fedora release 15 (Lovelock) Fedora release 15 (Lovelock)

!!DMI Information
!!---------------
Manufacturer: HP-Pavilion
Product Name: GN705AA-ABA a6238x
Product Version:

!!Kernel Information
!!------------------
Kernel release: 2.6.38.6-27.fc15.i686.PAE
Operating System: GNU/Linux
Architecture: i686
Processor: i686
SMP Enabled: Yes


!!ALSA Version
!!------------

Driver version: 1.0.23
Library version:
Utilities version: 1.0.24.1

!!Loaded ALSA modules
!!-------------------

snd_hda_intel
snd_usb_audio


!!Sound Servers on this system
!!----------------------------

Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes

aRts:
Installed - Yes (/usr/bin/artsd)
Running - No

Jack:
Installed - Yes (/usr/bin/jackd)
Running - No


!!Soundcards recognised by ALSA
!!-----------------------------

0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfdff8000 irq 42
1 [U0x46d0x8d7 ]: USB-Audio - USB Device 0x46d:0x8d7
USB Device 0x46d:0x8d7 at usb-0000:00:1d.0-1, full speed


!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!--------------------------------------------------------

00:1b.0 0403: 8086:27d8 (rev 01)
Subsystem: 103c:2a5e


!!Loaded sound module options
!!--------------------------

……………
………
…..
…
.


I have run these commands at the prompt:
# echo 'options snd_hda_intel model=auto > /etc/modprobe.d/sound.conf

After that the file sound.conf has been crated in /etc/modprobe.d/

I restart the linux and when I plug in my headphones, I still hear sound through my desktop speakers.

Please could you give me an idea what I need do?
Reply With Quote
  #5  
Old 17th June 2011, 08:46 PM
oldcpu Offline
Registered User
 
Join Date: Jan 2009
Location: Europe
Posts: 241
linuxsusefirefox
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

Quote:
Originally Posted by Jluis View Post
I got my hardware audio codec running the script alsa-info.sh command:
Unfortunately, you did not include all of the script information. The remainder is needed.

Were you not connected to the internet when you ran the script ? Did it not give you a web site address after you selected the SHARE/UPLOAD option ?

If you can't get a web site address then run it as follows:
Code:
/usr/bin/alsa-info.sh --no-upload
and then with a text editor open up the file /tmp/alsa-info.txt and copy it and paste it to a pastebin site such as http://pastebin.com/ and post here the URL you are provided.
Reply With Quote
  #6  
Old 18th June 2011, 12:09 AM
Jluis Offline
Registered User
 
Join Date: Oct 2010
Posts: 11
windows_vistachrome
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

My ALSA information is located at
http://www.alsa-project.org/db/?f=ca...1e6cdd03f143d5


Thanks
Reply With Quote
  #7  
Old 18th June 2011, 07:47 AM
oldcpu Offline
Registered User
 
Join Date: Jan 2009
Location: Europe
Posts: 241
linuxsusefirefox
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

Quote:
Originally Posted by Jluis View Post
Thanks. I note an ALC1200 hardware audio codec. Unfortunately there are no model options in the alsa documentation's HD-Audo-Models.txt file for that hardware audio code.

I note this from the HD-Audio.txt file:
Quote:
Speaker and Headphone Output
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
One of the most frequent (and obvious) bugs with HD-audio is the silent output from either or both of a built-in speaker and a headphone jack. In general, you should try a headphone output at first. A speaker output often requires more additional controls like the external amplifier bits. Thus a headphone output has a slightly better chance.

Before making a bug report, double-check whether the mixer is set up correctly. The recent version of snd-hda-intel driver provides mostly "Master" volume control as well as "Front" volume (where Front indicates the front-channels). In addition, there can be individual "Headphone" and "Speaker" controls.

Ditto for the speaker output. There can be "External Amplifier" switch on some codecs. Turn on this if present.

Another related problem is the automatic mute of speaker output by headphone plugging. This feature is implemented in most cases, but not on every preset model or codec-support code.

In anyway, try a different model option if you have such a problem. Some other models may match better and give you more matching functionality. If none of the available models works, send a bug report. See the bug report section for details.

If you are masochistic enough to debug the driver problem, note the
following:

- The speaker (and the headphone, too) output often requires the
external amplifier. This can be set usually via EAPD verb or a
certain GPIO. If the codec pin supports EAPD, you have a better
chance via SET_EAPD_BTL verb (0x70c). On others, GPIO pin (mostly
it's either GPIO0 or GPIO1) may turn on/off EAPD.
- Some Realtek codecs require special vendor-specific coefficients to
turn on the amplifier. See patch_realtek.c.
- IDT codecs may have extra power-enable/disable controls on each
analog pin. See patch_sigmatel.c.
- Very rare but some devices don't accept the pin-detection verb until
triggered. Issuing GET_PIN_SENSE verb (0xf09) may result in the
codec-communication stall. Some examples are found in
patch_realtek.c.
I am thinking you may need to write a bug report on this.

You may be able to manually mute the desktop speakers (while still listening to audio in the headphones) by tuning your mixer, but you will need to do that each time you plug in the headphones and restore settings when you remove the headphones. That even if you get it to work will not be so pleasant, and ergo I think a bug report is needed.
Reply With Quote
  #8  
Old 18th June 2011, 01:43 PM
Jluis Offline
Registered User
 
Join Date: Oct 2010
Posts: 11
windows_vistachrome
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

Thank you.
Reply With Quote
  #9  
Old 30th June 2011, 11:22 PM
Jluis Offline
Registered User
 
Join Date: Oct 2010
Posts: 11
linuxchrome
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

Please, could somebody help me on this ALSA Bug Report?

]https://bugtrack.alsa-project.org/alsa-bug/bugnote_delete.php?bugnote_id=23842[/url]

Bug Report answer:
the version of alsa-driver is too old

!!ALSA Version
!!------------

Driver version: 1.0.23
Library version:
Utilities version: 1.0.24.1



do your computer chassis have the HD compilant front audio panel ?


http://www.intel.com/support/motherb.../CS-020642.htm [^]



unsolicited event is not enabled for automute

Unsolicited: tag=00, enabled=0



Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
Control: name="Headphone Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
Amp-In vals: [0x00 0x00]
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0000373e: IN OUT HP Detect Trigger
Vref caps: HIZ 50 GRD 80 100
Pin Default 0x02214c20: [Jack] HP Out at Ext Front
Conn = 1/8, Color = Green
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0xc0: OUT HP VREF_HIZ
Unsolicited: tag=00, enabled=0
Connection: 5
0x0c* 0x0d 0x0e 0x0f 0x26

Thanks
JLuis

Last edited by Jluis; 3rd July 2011 at 02:10 PM.
Reply With Quote
  #10  
Old 3rd July 2011, 05:39 PM
oldcpu Offline
Registered User
 
Join Date: Jan 2009
Location: Europe
Posts: 241
linuxsusefirefox
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

Quote:
Originally Posted by Jluis View Post
Bug Report answer:
the version of alsa-driver is too old

!!ALSA Version
!!------------

Driver version: 1.0.23
Library version:
Utilities version: 1.0.24.1
According to this web site: http://www.alsa-project.org/main/index.php/Main_Page the most up to date version of the alsa driver is version 1.0.24 (and not 1.0.23 that you have installed). The most up to date version of the alsa utilities is version 1.0.24.2 (and not version 1.0.24.1 that you have installed). The most up to date is library is 1.0.24.1 (your library version is not clear).

You could either download the tarballs for alsa-driver (and alsa-utils and alsa-lib) and compile/build them, or see if you can find a Fedora site where prepackaged rpms of the latest cutting edge alsa apps are available.

I do not know Fedora well enough to know where to find such cutting edge rpms, ... so if no one chimes in with that information you may need to compile.

My assessment of the bug report is you may not get much support until after you update to the latest alsa versions.
Reply With Quote
  #11  
Old 4th July 2011, 10:10 AM
Jluis Offline
Registered User
 
Join Date: Oct 2010
Posts: 11
linuxchrome
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

All packages are installed with the latest version
---------------------
Setting up Install Process
Package alsa-utils-1.0.24.1-3.fc15.i686 already installed and latest version
--------------------
Setting up Install Process
Package alsa-lib-1.0.24-2.fc15.i686 already installed and latest version
-------------------
Setting up Install Process
Package alsa-lib-devel-1.0.24-2.fc15.i686 already installed and latest version

-----------------
My latest ALSA information is located at:
http://www.alsa-project.org/db/?f=d2...3adfe48d28e67f [^]
-----------------

Last edited by Jluis; 4th July 2011 at 10:33 AM.
Reply With Quote
  #12  
Old 4th July 2011, 05:25 PM
oldcpu Offline
Registered User
 
Join Date: Jan 2009
Location: Europe
Posts: 241
linuxfirefox
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

Quote:
Originally Posted by Jluis View Post
All packages are installed with the latest version
---------------------
Setting up Install Process
Package alsa-utils-1.0.24.1-3.fc15.i686 already installed and latest version
--------------------
Setting up Install Process
Package alsa-lib-1.0.24-2.fc15.i686 already installed and latest version
-------------------
Setting up Install Process
Package alsa-lib-devel-1.0.24-2.fc15.i686 already installed and latest version

-----------------
My latest ALSA information is located at:
http://www.alsa-project.org/db/?f=d2...3adfe48d28e67f [^]
-----------------
Well, no not the latest upstream version. Yes, you could indeed have the latest official Fedora-15 version, but in this case that is not the latest upstream version. When one is filing a bug report upstream (like you have done) then its best to use the latest upstream version.

Again, when one looks at the output of the diagnostic script, one will see:

Code:
!!ALSA Version
!!------------

Driver version:     1.0.23
Library version:    1.0.24
Utilities version:  1.0.24.1
Clearly those are not the latest upstream versions. According to this web site: http://www.alsa-project.org/main/index.php/Main_Page the most up to date version of the alsa driver is version 1.0.24 (and not 1.0.23 that you have installed). The most up to date version of the alsa utilities is version 1.0.24.2 (and not version 1.0.24.1 that you have installed). The most up to date is library is 1.0.24.1 (and not the older version 1.0.24 you have installed).

So again, you could either download the tarballs for alsa-driver (and alsa-utils and alsa-lib) and compile/build them, or see if you can find a Fedora site where prepackaged rpms of the latest cutting edge alsa apps are available.

I do not know Fedora well enough to know where to find such cutting edge rpms, ... so if no one chimes in with that information you may need to compile.

My assessment of the bug report is you may not get much support until after you update to the latest (upstream) alsa versions.
Reply With Quote
  #13  
Old 4th July 2011, 10:13 PM
Jluis Offline
Registered User
 
Join Date: Oct 2010
Posts: 11
linuxchrome
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

My latest ALSA information is located at:

Driver version: 1.0.24
Library version: 1.0.24
Utilities version: 1.0.24.1

http://www.alsa-project.org/db/?f=17...15ddeb36b59d76
Reply With Quote
  #14  
Old 5th July 2011, 09:41 PM
oldcpu Offline
Registered User
 
Join Date: Jan 2009
Location: Europe
Posts: 241
linuxfirefox
Re: When I plug in my headphones, I still hear sound through my desktop speakers...

In case anyone tracking this is curious, the actual bug thread is here: https://bugtrack.alsa-project.org/al...ew.php?id=5397
Reply With Quote
Reply

Tags
desktop, headphones, hear, plug, sound, speakers

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
No sound from speakers, but headphones work Dzenhax Installation, Upgrades and Live Media 1 1st February 2011 04:26 AM
No sound through headphones, only laptop speakers ElMoRsA Hardware & Laptops 9 3rd March 2009 12:29 AM
How to have sound w/headphones - not speakers vinoman Hardware & Laptops 3 6th February 2009 03:24 PM
Sound outputs OK, but inserting headphones does not mute speakers nor gives any sound sardaukar_siet Hardware & Laptops 1 2nd December 2008 07:35 AM
Sound coming out both Speakers and Headphones shortchar Hardware & Laptops 0 19th July 2007 06:33 PM


Current GMT-time: 21:21 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Seguin - Dazaifu - Cuautepec de Hinojosa Photos