Skip to content

Headphones and microphone not working #21

@johannesmensing

Description

@johannesmensing

Hello Luis,

thank you very much for your detailed guide. I've been looking for a solution to this very problem for some time.

I tried to follow your guide as best I could. (Chose option hdajackretask for step 3.2)
However, after the final reboot and selecting the profile in pavucontrol, no sound comes from my headphones nor does the microphone pick up anything.

System and config information:

System Information

System:
  Kernel: 6.8.0-60-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 clocksource: tsc
  Desktop: Cinnamon v: 6.4.8 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1 vt: 7 dm: LightDM v: 1.30.0
    Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: H81-GAMER v: Rev X.0x serial: <superuser required> part-nu: All
    uuid: <superuser required> UEFI: American Megatrends v: 0505 date: 05/14/2015
CPU:
  Info: quad core model: Intel Core i5-4460 bits: 64 type: MCP smt: <unsupported> arch: Haswell
    rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 2151 high: 3199 min/max: 800/3400 cores: 1: 2294 2: 2314 3: 3199 4: 800
    bogomips: 25586
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio vendor: ASUSTeK 8
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20 class-ID: 0403
  Device-2: NVIDIA GP106 High Definition Audio driver: snd_hda_intel v: kernel pcie:
    speed: 5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10f1 class-ID: 0403
  Device-3: Razer USA Gaming Webcam [Kiyo] driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-9:5 chip-ID: 1532:0e03 class-ID: 0102
  API: ALSA v: k6.8.0-60-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin

Codecs cat /proc/asound/card*/codec#* | grep -E 'Codec|Vendor Id|Subsystem Id|Address'

Codec: Realtek ALC1150
Address: 0
Vendor Id: 0x10ec0900
Subsystem Id: 0x10438657
Codec: Nvidia GPU 84 HDMI/DP
Address: 0
Vendor Id: 0x10de0084
Subsystem Id: 0x10de11d7

Cards pactl list cards

Card #46
	Name: alsa_card.pci-0000_00_1b.0
	Driver: alsa
	Owner Module: n/a
	Properties:
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.card.longname = "HDA Intel PCH at 0xf7230000 irq 37"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "hw:0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		device.api = "alsa"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1b.0"
		device.description = "Built-in Audio"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1b.0"
		device.nick = "HDA Intel PCH"
		device.plugged.usec = "4669828"
		device.product.id = "0x8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.profile-set = "/etc/alsa-card-profile/mixer/profile-sets/split-ports-profile.conf"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		media.class = "Audio/Device"
		factory.id = "14"
		client.id = "35"
		object.id = "46"
		object.serial = "46"
		object.path = "alsa:pcm:0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7230000 irq 37"
		alsa.driver_name = "snd_hda_intel"
		alsa.mixer_name = "Realtek ALC1150"
		alsa.components = "HDA:10ec0900,10438657,00100001"
		alsa.id = "PCH"
		device.string = "0"
	Profiles:
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
		output:analog-stereo-speaker+input:analog-stereo-input: Lineout-Back Output + Microphone-Front Input (sinks: 1, sources: 1, priority: 5050, available: yes)
		output:analog-stereo-headphones+input:analog-stereo-input: Headphones-Front Output + Microphone-Front Input (sinks: 1, sources: 1, priority: 5050, available: yes)
		output:analog-stereo-speaker: Lineout-Back Output (sinks: 1, sources: 0, priority: 5000, available: yes)
		output:analog-stereo-headphones: Headphones-Front Output (sinks: 1, sources: 0, priority: 5000, available: yes)
		output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input: Analog Stereo Duplex - Split Ports (sinks: 2, sources: 1, priority: 80, available: yes)
		output:analog-stereo-headphones+output:analog-stereo-speaker: Analog Stereo Outputs Only (sinks: 2, sources: 0, priority: 70, available: yes)
		input:analog-stereo-input: Microphone-Front Input (sinks: 0, sources: 1, priority: 50, available: yes)
		pro-audio: Pro Audio (sinks: 3, sources: 2, priority: 1, available: yes)
	Active Profile: output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input
	Ports:
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, latency offset: 0 usec, availability group: Legacy 4, available)
			Properties:
				port.type = "headphones"
				port.availability-group = "Legacy 4"
				device.icon_name = "audio-headphones"
				card.profile.port = "0"
			Part of profile(s): output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input, output:analog-stereo-headphones+output:analog-stereo-speaker, output:analog-stereo-headphones, output:analog-stereo-headphones+input:analog-stereo-input
		analog-output-lineout-split: Line Out (type: Line, priority: 9000, latency offset: 0 usec, availability group: Legacy 5, available)
			Properties:
				port.type = "line"
				port.availability-group = "Legacy 5"
				card.profile.port = "1"
			Part of profile(s): output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input, output:analog-stereo-headphones+output:analog-stereo-speaker, output:analog-stereo-speaker, output:analog-stereo-speaker+input:analog-stereo-input
		analog-input-front-mic: Front Microphone (type: Mic, priority: 8500, latency offset: 0 usec, availability group: Legacy 1, available)
			Properties:
				port.type = "mic"
				port.availability-group = "Legacy 1"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "2"
			Part of profile(s): output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input, input:analog-stereo-input, output:analog-stereo-speaker+input:analog-stereo-input, output:analog-stereo-headphones+input:analog-stereo-input
		analog-input-rear-mic: Rear Microphone (type: Mic, priority: 8200, latency offset: 0 usec, availability group: Legacy 2, not available)
			Properties:
				port.type = "mic"
				port.availability-group = "Legacy 2"
				device.icon_name = "audio-input-microphone"
				card.profile.port = "3"
			Part of profile(s): output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input, input:analog-stereo-input, output:analog-stereo-speaker+input:analog-stereo-input, output:analog-stereo-headphones+input:analog-stereo-input
		analog-input-linein: Line In (type: Line, priority: 8100, latency offset: 0 usec, availability group: Legacy 3, not available)
			Properties:
				port.type = "line"
				port.availability-group = "Legacy 3"
				card.profile.port = "4"
			Part of profile(s): output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input, input:analog-stereo-input, output:analog-stereo-speaker+input:analog-stereo-input, output:analog-stereo-headphones+input:analog-stereo-input

Sinks before pactl list sinks

Sink #56
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1b.0.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 49991 /  76% / -7,06 dB,   front-right: 49991 /  76% / -7,06 dB
	        balance 0,00
	Base Volume: 65536 / 100% / 0,00 dB
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.class = "generic"
		alsa.components = "HDA:10ec0900,10438657,00100001"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7230000 irq 37"
		alsa.mixer_name = "Realtek ALC1150"
		alsa.name = "ALC1150 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HDA Intel PCH at 0xf7230000 irq 37"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "5"
		device.api = "alsa"
		device.class = "sound"
		device.id = "46"
		device.profile.description = "Analog Stereo"
		device.profile.name = "analog-stereo"
		device.routes = "2"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Built-in Audio"
		node.name = "alsa_output.pci-0000_00_1b.0.analog-stereo"
		node.nick = "ALC1150 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:0:front:0:playback"
		priority.driver 

Sinks after pactl list sinks

Sink #529
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1b.0.analog-stereo-headphones.4
	Description: Built-in Audio Headphones-Front
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 64932 /  99% / -0,24 dB,   front-right: 64932 /  99% / -0,24 dB
	        balance 0,00
	Base Volume: 65536 / 100% / 0,00 dB
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo-headphones.4.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.class = "generic"
		alsa.components = "HDA:10ec0900,10438657,00100001"
		alsa.device = "2"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7230000 irq 37"
		alsa.mixer_name = "Realtek ALC1150"
		alsa.name = "ALC1150 Alt Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HDA Intel PCH at 0xf7230000 irq 37"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "hw:0,2"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "0"
		device.api = "alsa"
		device.class = "sound"
		device.id = "46"
		device.profile.description = "Headphones-Front"
		device.profile.name = "analog-stereo-headphones"
		device.routes = "1"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Built-in Audio"
		node.name = "alsa_output.pci-0000_00_1b.0.analog-stereo-headphones.4"
		node.nick = "ALC1150 Alt Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:0:hw:0,2:playback"
		priority.driver = "721"
		priority.session = "721"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "35"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "95"
		object.serial = "529"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1b.0"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1b.0"
		device.nick = "HDA Intel PCH"
		device.plugged.usec = "4669828"
		device.product.id = "0x8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.profile-set = "/etc/alsa-card-profile/mixer/profile-sets/split-ports-profile.conf"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		device.string = "0"
	Ports:
		analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 4, available)
	Active Port: analog-output-headphones
	Formats:
		pcm

Sink #530
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1b.0.analog-stereo-speaker.3
	Description: Built-in Audio Lineout-Back
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	Base Volume: 65536 / 100% / 0,00 dB
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo-speaker.3.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.class = "generic"
		alsa.components = "HDA:10ec0900,10438657,00100001"
		alsa.device = "0"
		alsa.driver_name = "snd_hda_intel"
		alsa.id = "PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7230000 irq 37"
		alsa.mixer_name = "Realtek ALC1150"
		alsa.name = "ALC1150 Analog"
		alsa.resolution_bits = "16"
		alsa.subclass = "generic-mix"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		api.alsa.card.longname = "HDA Intel PCH at 0xf7230000 irq 37"
		api.alsa.card.name = "HDA Intel PCH"
		api.alsa.path = "hw:0,0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		card.profile.device = "1"
		device.api = "alsa"
		device.class = "sound"
		device.id = "46"
		device.profile.description = "Lineout-Back"
		device.profile.name = "analog-stereo-speaker"
		device.routes = "1"
		factory.name = "api.alsa.pcm.sink"
		media.class = "Audio/Sink"
		device.description = "Built-in Audio"
		node.name = "alsa_output.pci-0000_00_1b.0.analog-stereo-speaker.3"
		node.nick = "ALC1150 Analog"
		node.pause-on-idle = "false"
		object.path = "alsa:pcm:0:hw:0,0:playback"
		priority.driver = "1009"
		priority.session = "1009"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "35"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "84"
		object.serial = "530"
		api.acp.auto-port = "false"
		api.acp.auto-profile = "false"
		api.alsa.card = "0"
		api.alsa.use-acp = "true"
		api.dbus.ReserveDevice1 = "Audio0"
		device.bus = "pci"
		device.bus_path = "pci-0000:00:1b.0"
		device.enum.api = "udev"
		device.form_factor = "internal"
		device.icon_name = "audio-card-analog-pci"
		device.name = "alsa_card.pci-0000_00_1b.0"
		device.nick = "HDA Intel PCH"
		device.plugged.usec = "4669828"
		device.product.id = "0x8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.profile-set = "/etc/alsa-card-profile/mixer/profile-sets/split-ports-profile.conf"
		device.subsystem = "sound"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.vendor.id = "0x8086"
		device.vendor.name = "Intel Corporation"
		device.string = "0"
	Ports:
		analog-output-lineout-split: Line Out (type: Line, priority: 9000, availability group: Legacy 5, available)
	Active Port: analog-output-lineout-split
	Formats:
		pcm

Aplay before aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [DELL U2417H]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Aplay after aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC1150 Alt Analog [ALC1150 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [DELL U2417H]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

/etc/udev/rules.d/91-pipewire-alsa-port-split.rules

SUBSYSTEM!="sound", GOTO="pipewire_end"
ACTION!="change", GOTO="pipewire_end"
KERNEL!="card*", GOTO="pipewire_end"

SUBSYSTEMS=="pci", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x8c20", \
ENV{ACP_PROFILE_SET}="/etc/alsa-card-profile/mixer/profile-sets/split-ports-profile.conf"

LABEL="pipewire_end"

/etc/alsa-card-profile/mixer/profile-sets/split-ports-profile.conf

[General]
auto-profiles = yes

[Mapping analog-stereo-speaker]
description = Lineout-Back
device-strings = hw:%f,0
paths-output = analog-output-lineout-split
channel-map = left,right
direction = output

[Mapping analog-stereo-headphones]
description = Headphones-Front
device-strings = hw:%f,2
paths-output = analog-output-headphones
channel-map = left,right
direction = output

[Mapping analog-stereo-input]
description = Microphone-Front
device-strings = hw:%f,2
channel-map = left,right
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic
direction = input

[Profile output:analog-stereo-headphones+output:analog-stereo-speaker+input:analog-stereo-input]
description = Analog Stereo Duplex - Split Ports
output-mappings = analog-stereo-headphones analog-stereo-speaker
input-mappings = analog-stereo-input
priority = 80

[Profile output:analog-stereo-headphones+output:analog-stereo-speaker]
description = Analog Stereo Outputs Only
output-mappings = analog-stereo-headphones analog-stereo-speaker
priority = 70

Any support will be much appreciated. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions