You are not logged in.
I am getting no audio out from the headphone jack on my laptop. I believe it used to work, but I haven't used it in a while so I'm not sure when. It currently works when dual booting Windows, so the hardware is at least functional.
I don't know a ton about linux audio, so I'm just going to dump some info here.
The basics:
$ pacman -Qqs pipewire | pacman -Q linux -
linux 5.16.5.arch1-1
libpipewire02 0.2.7-2
pipewire 1:0.3.45-1
pipewire-alsa 1:0.3.45-1
pipewire-pulse 1:0.3.45-1
wireplumber 0.4.7-1
$ systemctl --user list-unit-files pipewire\*
UNIT FILE STATE VENDOR PRESET
pipewire-pulse.service disabled enabled
pipewire-session-manager.service alias -
pipewire.service disabled enabled
pipewire-pulse.socket enabled enabled
pipewire.socket enabled enabled
5 unit files listed.
pactl info, active playback
$ pactl list sinks
Sink #39
State: RUNNING
Name: alsa_output.pci-0000_00_1f.3.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: 39317 / 60% / -13.31 dB, front-right: 39317 / 60% / -13.31 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.pci-0000_00_1f.3.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.device = "0"
alsa.driver_name = "snd_hda_intel"
alsa.id = "ALC3266 Analog"
alsa.long_card_name = "HDA Intel PCH at 0xedd28000 irq 138"
alsa.name = "ALC3266 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 0xedd28000 irq 138"
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 = "8"
device.api = "alsa"
device.class = "sound"
device.id = "35"
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 Analog Stereo"
node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo"
node.nick = "HDA Intel PCH"
node.pause-on-idle = "false"
object.path = "alsa:pcm:0:front:0:playback"
priority.driver = "1009"
priority.session = "1009"
factory.id = "18"
client.id = "32"
clock.quantum-limit = "8192"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "39"
object.serial = "39"
node.max-latency = "16384/48000"
Ports:
analog-output-speaker: Speakers (type: Speaker, priority: 10000, availability group: Legacy 3, availability unknown)
analog-output-headphones: Headphones (type: Headphones, priority: 9900, availability group: Legacy 2, availability unknown)
Active Port: analog-output-headphones
Formats:
pcm
More description:
Other audio output devices, like bluetooth and the built-in speakers, are working correctly. Changing the volume and toggling mute was unhelpful. However, there is a visual glitch when sliding the volume bar (or adjusting the volume another way) in "Output Devices" panel in pavucontrol, the the dropdown that reads "Headphones" flashes "Speakers" for one frame, not sure if relevant.
Additionally, when I begin audio playback I can hear the characteristic pop in the headphones, and when I end playback I can hear it again but quieter about 5 seconds later. Let me know if there is more info I can provide.
Last edited by Brocellous (2022-02-09 02:47:10)
Offline
Headphone setting in alsamixer?
Offline
When I select my card in alsamixer the microphone setting is already at maximum and unmuted.
I had the thought to try increasing my speaker volume to see if it would affect the headphones or if audio would play from the speakers instead (even when the headphone port is selected), but no dice. My headphones and speakers are silent when the headphones are plugged in, and unplugging my headphones correctly defaults to the speakers, which work fine.
Offline
When you hit F6 in alsamixer, do you just have one sound card or a selection?
https://i.ibb.co/FgGhHDN/alsamixer-01.png
When I select my card in alsamixer the microphone setting is already at maximum and unmuted
But you're interested in your headphones, aren't you?
https://i.ibb.co/821hgyr/alsamixer-02.png
If you do use a mic, you may well want the Mic Boost as well as the Mic turned up.
https://i.ibb.co/1mcLpRj/alsamixer-03.png
*************** Edit *****************
Hopefully these links work and browsers will resize as necessary.
*************** Edit *****************
If you like a lot of text output, you can run:
$ curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
and view the info in your browser at the termbin.com address given, searching for "headphone" or whatever.
[From: https://forums.linuxmint.com/viewtopic.php?t=345061]
Or just run:
$ alsa-info.sh
and open the /tmp file created (in a browser or editor etc.)
$ man alsa-info.sh
Last edited by rtarchuser (2022-02-07 12:25:20)
Offline
Please don't embed oversized images directly, also these links are broken, also amixer will give you a textual representation that is better and easier to share than alsamixer screenshots.
@Brocellous
Post
aplay -l
amixer -c0
Last edited by V1del (2022-02-07 09:57:34)
Offline
I plugged in my headphones and started playback, then ran the following commands:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3266 Analog [ALC3266 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ amixer -c0
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 127
Mono: Playback 91 [72%] [-18.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 127 [100%] [0.00dB] [on]
Front Right: Playback 127 [100%] [0.00dB] [on]
Simple mixer control 'Headphone Mic',0
Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Mono
Limits: Playback 0 - 31
Mono: Capture [on]
Front Left: Playback 19 [61%] [-6.00dB] [off]
Front Right: Playback 19 [61%] [-6.00dB] [off]
Simple mixer control 'Headphone Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 127
Mono:
Front Left: Playback 0 [0%] [-63.50dB] [off]
Front Right: Playback 0 [0%] [-63.50dB] [off]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',4
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 127
Front Left: Capture 36 [28%] [-15.50dB] [off]
Front Right: Capture 36 [28%] [-15.50dB] [off]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
Simple mixer control 'Digital',0
Capabilities: cvolume
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 60 [50%] [0.00dB]
Front Right: Capture 60 [50%] [0.00dB]
Simple mixer control 'Headset Mic',0
Capabilities: pvolume pswitch cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Mono
Limits: Playback 0 - 31
Mono: Capture [off]
Front Left: Playback 16 [52%] [-10.50dB] [off]
Front Right: Playback 16 [52%] [-10.50dB] [off]
Simple mixer control 'Headset Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Internal Mic',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Mono
Mono: Capture [off]
Simple mixer control 'Internal Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Loopback Mixing',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
I don't have an HDMI cable plugged in. I unplugged/replugged my headphones briefly to make sure that audio was actually playing while they were removed.
Offline
Looks pretty standard as far as mixers go. Maybe generally buggy jack, with the headphones plugged in, does unmuting the Speaker control help?
amixer -c0 set 'Speaker',0 on,on
amixer -c0 set 'Speaker',0 100%,100%
Also on the chance that this is a "lol, pipewire" moment, can you reproduce this on pulseaudio/plain ALSA? e.g. as a simple test you should be able to
systemctl --user mask wireplumber pipewire-pulse{,.socket} --now
speaker-test -Dhw:0 -c2
unmask to the first command to reenable the relevant compnents. The second should not give you device access errors and play static noise.
Offline
Are you using Gnome? Have you looked at Settings>Sound? As you can see, I can switch between my monitor speakers and my headphones. Perhaps you can switch between your internal speakers and headphones.
Offline
That should have logically speaking already happened if we can trust the pactl list sinks output, though maybe try the unintuitive choice there and switch to the speaker port despite wanting to use headphones.
Offline
Ok, I've found something.
I tried manipulating the speaker control as suggested. It adjusts the speakers, but not the headphones. I am able to hear the speakers with this method when the headphones are plugged in, but no output from the headphones.
Next I masked the pipewire services and attempted "speaker-test -Dhw:0 -c2". In fact this does sort of work, but I almost didn't notice. I can use the following command to set the volume:
amixer -c0 set 'Headphone',0 75%,75% unmute
where I have replaced 'Speaker' with 'Headphone' from the "amixer -c0" output. It still doesn't work while the headphones are plugged in, however if I unplug them and only partially insert the jack, I can get audio in the left earcup when speaker-test indicates it is playing "Front Left".
I tried to repeat this experiment with pipewire loaded again, however no audio will play while the jack is not fully inserted. Pavucontrol labels the port as "Headphones (unplugged)" in this case, and the blue bar indicates there is nothing playing until I fully insert the jack.
EDIT: This laptop has windows installed on another partition, so I booted that to test that the left and right channels work as intended there, and they do.
Last edited by Brocellous (2022-02-08 19:29:00)
Offline
Make sure Windows fast boot is disabled. IT can and does break audio card firmware states if enabled: https://wiki.archlinux.org/title/Dual_b … ibernation
Offline
Have you tried any of this:
https://gitlab.freedesktop.org/pipewire … ssues/1568
which links to:
https://bbs.archlinux.org/viewtopic.php … 8#p1791958
https://askubuntu.com/questions/132440/ … ot-working
The directory on my system is:
/usr/share/alsa-card-profile/mixer/paths
I seem to have both:
analog-output-headphones.conf
and:
analog-output-headphones-2.conf
Both have an [Element Speaker] section.
Last edited by rtarchuser (2022-02-09 00:33:59)
Offline
@V1del Yes I have ensured that W10 fast boot is disabled. I've gone a double checked to be certain.
@rtarchuser Those seem promising, here is some hardware info for context:
$ cat /sys/class/sound/hwC0D0/chip_name
ALC3266
$ sudo lspci -kvd::403
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31) (prog-if 80)
Subsystem: Dell Device 07be
Flags: bus master, fast devsel, latency 32, IRQ 138
Memory at edd28000 (64-bit, non-prefetchable) [size=16K]
Memory at edd00000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [50] Power Management version 3
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
$ (cd /sys/class/dmi/id; grep -v ^$ product_name board* bios*)
product_name:XPS 15 9560
board_name:05FFDN
board_vendor:Dell Inc.
board_version:A00
bios_date:12/09/2021
bios_release:1.26
bios_vendor:Dell Inc.
bios_version:1.26.0
The model values such as the one used by the poster in your first link appear to be documented here [1]. I tried 'echo $model | sudo tee /sys/class/sound/hwC0D0/modelname' for various $model's and repeated the speaker-test command but observed no change, not sure if I did it correctly.
I haven't yet tried editing any /usr/share/alsa-card-profile/mixer/paths/*.conf configurations, but I'll give it a try later.
[1] https://docs.kernel.org/sound/hd-audio/ … xxx-models
Last edited by Brocellous (2022-02-09 01:39:01)
Offline
Wait, success! model 'headset-mode' works! I think there must be more steps involved in using the sysfs interface. I created a file
$ cat /etc/modprobe.d/audio-jack.conf
options snd_hda_intel model=headset-mode
and now my audio jack appears to be working perfectly!
I will mark this thread as solved. Thank you everyone!
EDIT: I've actually elected for 'headset-mode-no-hp-mic' which works just as well.
Last edited by Brocellous (2022-02-09 03:03:50)
Offline