@eggie, I have the same issue, your approach to address it works as well
for me, thanks for pointing in the good direction ;) However, I found
unacceptable the fact of no mic input if headphones are plugged. As such
I found an alternative, making the headset port always available and the
default, even if not plugged. Thus when headphones/headset connected the
port is to Headset mic, but I can still change to Internal mic. With
unplugged headphone/headset the same, port is to Headset mic, but I can
still change to Internal mic.

1. In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-headset-
mic.conf change all the 'state.plugged' and 'state.unplugged' to 'yes'.

2. Locate the name of the Source and desired Port with:
$ pacmd list-sources

3. Edit /etc/pulse/default.pa to set the default Source and Port, add
the line 'set-source-port SourceName PortName' in my case it was 'set-
source-port alsa_input.pci-0000_00_1f.3.analog-stereo analog-input-
headset-mic'

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1876056

Title:
  No automatic switch to headset microphone on connect

Status in pulseaudio package in Ubuntu:
  Invalid

Bug description:
  On my Dell XPS 7590, when I plugin a headset with a 4-pin-connector,
  the audio OUTPUT automatically switches from the speakers in the
  laptop to the headset. However, the audio INPUT does not switch from
  the microphone in the laptop to the microphone in the headset.

  Using for example pavucontrol, I can switch to the microphone manually
  on the tab 'input devices' - on that tab Port will be on 'Internal
  Microphone' and I can set it to 'Headset Microphone'.

  What's even more confusing is that when I unplug the headset, both
  input AND output switch back to internal automatically and the port on
  the 'Input Devices'.

  This is on Ubuntu 19.10 with kernel 5.4.28-050428-generic (but I also
  see the same issue on kernel 5.3.0-48) and pulseaudio
  1:13.0-1ubuntu1.1.

  If any more information is needed, let me know.

  inxi -F:

  System:    Host: idefixpsie Kernel: 5.4.28-050428-generic x86_64 bits: 64 
Desktop: KDE Plasma 5.16.5 
             Distro: Ubuntu 19.10 (Eoan Ermine) 
  Machine:   Type: Laptop System: Dell product: XPS 15 7590 v: N/A serial: 
<root required> 
             Mobo: Dell model: 0VYV0G v: A00 serial: <root required> UEFI: Dell 
v: 1.5.0 date: 12/25/2019 
  Battery:   ID-1: BAT0 charge: 77.7 Wh condition: 87.4/97.0 Wh (90%) 
  CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
L2 cache: 12.0 MiB 
             Speed: 4029 MHz max: 4500 MHz Core speeds (MHz): 1: 4213 2: 4160 
3: 4229 4: 4210 5: 4224 6: 4163 7: 4280 8: 4189 
             9: 4291 10: 4198 11: 4149 12: 4188 
  Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
             Display: x11 server: X.Org 1.20.5 driver: modesetting unloaded: 
fbdev,vesa resolution: 3840x2160~60Hz 
             OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 
GT2) v: 4.5 Mesa 19.2.8 
  Audio:     Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel 
             Sound Server: ALSA v: k5.4.28-050428-generic 
  Network:   Device-1: Intel driver: iwlwifi 
             IF: wlan0 state: up mac: 5c:80:b6:7a:2c:45 
             IF-ID-1: docker0 state: down mac: 02:42:90:4c:31:a2 
  Drives:    Local Storage: total: 953.87 GiB used: 67.58 GiB (7.1%) 
             ID-1: /dev/nvme0n1 model: SSDPEMKF010T8 NVMe INTEL 1024GB size: 
953.87 GiB 
  Partition: ID-1: / size: 496.44 GiB used: 67.27 GiB (13.6%) fs: ext4 dev: 
/dev/dm-1 
             ID-2: /boot size: 704.5 MiB used: 288.4 MiB (40.9%) fs: ext4 dev: 
/dev/nvme0n1p2 
             ID-3: swap-1 size: 6.61 GiB used: 0 KiB (0.0%) fs: swap dev: 
/dev/dm-2 
  Sensors:   System Temperatures: cpu: 47.0 C mobo: N/A 
             Fan Speeds (RPM): N/A 
  Info:      Processes: 346 Uptime: 2d 17h 51m Memory: 31.12 GiB used: 9.08 GiB 
(29.2%) Shell: bash inxi: 3.0.36

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1876056/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to