I've get a macbook pro, on which I installed Xubuntu and KX repositories.
I've got only sound from the loudspeakers. The headphone is not detected when it is plugged.
By googling, I found that I could tweak :
cd /usr/share/pulseaudio/alsa-mixer/paths/
sudo nano analog-output-headphones.conf this file.
By changing
Code: Select all
[Element Speaker]
switch = on
volume = ignore
What do I have to change within the file to have sound on loudspeakers and then stop sound on loudspeakers and get sound on headphones when headphones are connected ?
Thanks,
Christophe
Below is the file content :
Code: Select all
[General]
priority = 90
description-key = analog-output-headphones
[Properties]
device.icon_name = audio-headphones
[Jack Dock Headphone]
required-any = any
[Jack Dock Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown
[Jack Front Headphone]
required-any = any
[Jack Front Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown
[Jack Headphone]
required-any = any
[Jack Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown
# This jack can be either a headphone *or* a mic. Used on some ASUS netbooks.
[Jack Headphone Mic]
required-any = any
[Element Hardware Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Master Mono]
switch = off
volume = off
[Element Speaker+LO]
switch = off
volume = off
[Element Headphone+LO]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Headphone]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Headset]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Line HP Swap]
switch = on
required-any = any
; This profile path is intended to control the first headphones, not
; the second headphones. But it should not hurt if we leave the second
; headphone jack enabled nonetheless.
[Element Headphone2]
switch = mute
volume = zero
[Element Speaker]
switch = on
volume = ignore
[Element Desktop Speaker]
switch = on
volume = ignore