#[ SOLVED ] Speaker Audio on laptop works fine but headphone audio does not

179 messages ยท Page 1 of 1 (latest)

nocturne merlin
#

New user here, new to linux in general. I've tried to do my best to solve the problem on my own before asking questions but I am out of my depth and have been at this for a day now.

I have a fresh install of Arch Linux on my Acer laptop, with Hyprland as the desktop environment. When installing Arch I believe I selected Pipewire as my audio server but that is for sure what I am on now. I've tried switching to and from Pulse-Audio, and I've tried switching between Wireplumber and Pipewire-Media-Session.

In Pavucontrol my headphones are successfully showing up when plugged in, and I should note that my headphones are just being plugged in via the audio jack, nothing fancy.

Running aplay -l shows me I have 1 intel device and 4 nvidia devices but I'm not even sure if this is right because my soundcard is realtek. Maybe this is normal?

Anyways, any and all help is appreciated. If you need me to dump logs just tell me what to type and I will be happy to drop the output here.

hidden lily
#

do you have pipewire-pulse installed and enabled?

nocturne merlin
hidden lily
#

oki

nocturne merlin
#

Also, I just noticed (I thought I fixed this already) that Wireplumber is still failing to connect to Pipewire.

I am getting this error: May 06 16:40:15 archlinux wireplumber[77551]: wireplumber: disconnected from pipewire May 06 16:41:38 archlinux wireplumber[77575]: wireplumber: disconnected from pipewire

hidden lily
#

try a different de or wm to see if the issue persists, if not, the issue is in your Hyprland configuration

nocturne merlin
#

Okay I'll give that a try

nocturne merlin
nocturne merlin
#

Still nothing

#

Umm, this feels like its worth mentioning now that I think about it. When I have my headphones plugged in, the speakers become (unavailable). I can select them but they still wont play audio.

#

It was doing this both in pavucontrol and in KDE plasma's volume mixer

#

But the speakers will still play audio if I click the test buttons, they just wont play anything on Firefox.

nocturne merlin
nocturne merlin
#

I also just tried switching to Linux-lts and it has not fixed anything for me.

hidden lily
#

sorry I went off for a bit

#

systemctl --user status pipewire wireplumber pipewire-pulse

#

make sure none say inactive or failed

#

and remove pulseaudio

nocturne merlin
#

pipewire.service is disabled for some reason

#

however it is running?

#

how can that be xd

hidden lily
nocturne merlin
#

kk

hidden lily
#

not pipewire-pulse

#

then systemctl --user restart pipewire

nocturne merlin
#

I dont think I have pulseaudio installed

hidden lily
#

and systemctl --user enable --now pipewire

nocturne merlin
#

kk got pipewire enabled now

hidden lily
nocturne merlin
#

all 3 services are enabled and running

#

yeah tried running pacman to remove pulseaudio and it states that it cant find it

hidden lily
nocturne merlin
#

still no audio

hidden lily
nocturne merlin
#

kk brb

#

Still nothing ๐Ÿ˜ข

hidden lily
#

sudo usermod -aG audio $USER

#

adding myself to video group worked for mpv so this might for audio idk

nocturne merlin
#

Nope unfortunately

hidden lily
#

sudo pacman -S alsa-card-profiles

#

this is a bit of a "might do something maybe, idk"

nocturne merlin
#

Nope didn't work either

#

should I restart again to be sure?

hidden lily
#

wpctl status

nocturne merlin
#
PipeWire 'pipewire-0' [1.4.2, hunter@archlinux, cookie:3747854261]
 โ””โ”€ Clients:
        32. pipewire                            [1.4.2, hunter@archlinux, pid:1205]
        33. wpctl                               [1.4.2, hunter@archlinux, pid:2688]
        34. WirePlumber                         [1.4.2, hunter@archlinux, pid:1206]
        46. WirePlumber [export]                [1.4.2, hunter@archlinux, pid:1206]
        60. kwin_wayland                        [1.4.2, hunter@archlinux, pid:1269]
        63. libcanberra                         [1.4.2, hunter@archlinux, pid:1364]
        64.                                     [1.4.2, hunter@archlinux, pid:1364]
        65. xdg-desktop-portal                  [1.4.2, hunter@archlinux, pid:1277]
        66. libcanberra                         [1.4.2, hunter@archlinux, pid:1375]
        67. plasmashell                         [1.4.2, hunter@archlinux, pid:1375]
        68. KDE Power Management System         [1.4.2, hunter@archlinux, pid:1408]
        73. Chromium input                      [1.4.2, hunter@archlinux, pid:2141]
        74.                                     [1.4.2, hunter@archlinux, pid:1375]
        75. WEBRTC VoiceEngine                  [1.4.2, hunter@archlinux, pid:2048]
        76. WEBRTC VoiceEngine                  [1.4.2, hunter@archlinux, pid:2048]
        79. libcanberra                         [1.4.2, hunter@archlinux, pid:1611]
       106. System Settings                     [1.4.2, hunter@archlinux, pid:1611]

Audio
 โ”œโ”€ Devices:
 โ”‚      50. Built-in Audio                      [alsa]
 โ”‚      51. GP104 High Definition Audio Controller [alsa]
 โ”‚
 โ”œโ”€ Sinks:
 โ”‚  *   57. Built-in Audio Analog Stereo        [vol: 0.88]
 โ”‚
 โ”œโ”€ Sources:
 โ”‚
 โ”œโ”€ Filters:
 โ”‚
 โ””โ”€ Streams:
        96.
             88. monitor_FL
             89. input_FR
             90. input_FL
             92. monitor_FR

Video
 โ”œโ”€ Devices:
 โ”‚      52. USB2.0 HD UVC WebCam                [v4l2]
 โ”‚      53. USB2.0 HD UVC WebCam                [v4l2]
 โ”‚
 โ”œโ”€ Sinks:
 โ”‚
 โ”œโ”€ Sources:
 โ”‚  *   61. USB2.0 HD UVC WebCam (V4L2)
 โ”‚
 โ”œโ”€ Filters:
 โ”‚
 โ””โ”€ Streams:
        70. kwin_wayland
             69. output_1        > plasmashell:input_1    [init]
        72. plasmashell
             77. input_1         < kwin_wayland:output_1    [init]

Settings
 โ””โ”€ Default Configured Devices:

heres the output

hidden lily
#

alsa

#

wpctl inspect 57

nocturne merlin
#
[hunter@archlinux ~]$ wpctl inspect 57
id 57, type PipeWire:Interface:Node
    alsa.card = "0"
    alsa.card_name = "HDA Intel PCH"
    alsa.class = "generic"
    alsa.components = "HDA:10ec0295,10431011,00100002"
    alsa.device = "0"
    alsa.driver_name = "snd_hda_intel"
    alsa.id = "ALC295 Analog"
    alsa.long_card_name = "HDA Intel PCH at 0xa3418000 irq 143"
    alsa.mixer_name = "Realtek ALC295"
    alsa.name = "ALC295 Analog"
    alsa.resolution_bits = "16"
    alsa.subclass = "generic-mix"
    alsa.subdevice = "0"
    alsa.subdevice_name = "subdevice #0"
    alsa.sync.id = "00000000:00000000:00000000:00000000"
    api.alsa.card.longname = "HDA Intel PCH at 0xa3418000 irq 143"
    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 = "3"
  * client.id = "46"
    clock.quantum-limit = "8192"
    device.api = "alsa"
    device.class = "sound"
    device.icon-name = "audio-card-analog"
  * device.id = "50"
    device.profile.description = "Analog Stereo"
    device.profile.name = "analog-stereo"
    device.routes = "2"
  * factory.id = "19"
    factory.name = "api.alsa.pcm.sink"
    library.name = "audioconvert/libspa-audioconvert"
  * media.class = "Audio/Sink"
  * node.description = "Built-in Audio Analog Stereo"
    node.driver = "true"
    node.loop.name = "data-loop.0"
  * node.name = "alsa_output.pci-0000_00_1f.3.analog-stereo"
  * node.nick = "ALC295 Analog"
    node.pause-on-idle = "false"
  * object.path = "alsa:acp:PCH:3:playback"
  * object.serial = "155"
    port.group = "playback"
  * priority.driver = "1009"
  * priority.session = "1009"
hidden lily
#

you have your built in audio as an output but no additional sinks

#

it's not actually registering your headphones

nocturne merlin
#

hmm

#

so it recognizes something is plugged into the jack but doesn't know what?

hidden lily
#

sudo pacman -S alsa-tools

hidden lily
#

there's no headphones there

#

just the built in audio

nocturne merlin
#

gotcha

#

alright hit me with the alsa tools command u want me to use

#

or is that just a library for pipewire/wireplumber to use?

hidden lily
#

sudo hdajackretask

nocturne merlin
#

ohp! this looks promising

hidden lily
#

yeah select alc295 as your codec

nocturne merlin
#

hmm still nothing

hidden lily
nocturne merlin
#

I think that was important though, it had my graphics card selected for audio

hidden lily
#

check the "show unconnected pins" section

nocturne merlin
#

keep it on nvidia insstead of alc295

#

?

hidden lily
#

your primary audio should be alc295 but nvidia should be able to act as a line as well

nocturne merlin
nocturne merlin
hidden lily
nocturne merlin
#

it was set to nvidia before. having it selected shows less pins

nocturne merlin
#

wait wait

hidden lily
#

yeah

#

press apply now

nocturne merlin
#

okay no, still no worky after apply

hidden lily
nocturne merlin
#

kk brb

nocturne merlin
hidden lily
#

wpctl status

nocturne merlin
#
PipeWire 'pipewire-0' [1.4.2, hunter@archlinux, cookie:3591734516]
 โ””โ”€ Clients:
        32. WirePlumber                         [1.4.2, hunter@archlinux, pid:1220]
        33. pipewire                            [1.4.2, hunter@archlinux, pid:1218]
        46. WirePlumber [export]                [1.4.2, hunter@archlinux, pid:1220]
        57. kwin_wayland                        [1.4.2, hunter@archlinux, pid:1285]
        60. libcanberra                         [1.4.2, hunter@archlinux, pid:1380]
        61.                                     [1.4.2, hunter@archlinux, pid:1380]
        62. xdg-desktop-portal                  [1.4.2, hunter@archlinux, pid:1294]
        63. libcanberra                         [1.4.2, hunter@archlinux, pid:1391]
        64. plasmashell                         [1.4.2, hunter@archlinux, pid:1391]
        65. KDE Power Management System         [1.4.2, hunter@archlinux, pid:1429]
        66. WEBRTC VoiceEngine                  [1.4.2, hunter@archlinux, pid:2123]
        68. WEBRTC VoiceEngine                  [1.4.2, hunter@archlinux, pid:2123]
        69. System Settings                     [1.4.2, hunter@archlinux, pid:1627]
        70. Chromium input                      [1.4.2, hunter@archlinux, pid:2216]
        71.                                     [1.4.2, hunter@archlinux, pid:1391]
        75. wpctl                               [1.4.2, hunter@archlinux, pid:2438]
        87. libcanberra                         [1.4.2, hunter@archlinux, pid:1627]

Audio
 โ”œโ”€ Devices:
 โ”‚      47. GP104 High Definition Audio Controller [alsa]
 โ”‚      48. Built-in Audio                      [alsa]
 โ”‚
 โ”œโ”€ Sinks:
 โ”‚  *   55. Built-in Audio Analog Stereo        [vol: 0.88]
 โ”‚
 โ”œโ”€ Sources:
 โ”‚
 โ”œโ”€ Filters:
 โ”‚
 โ””โ”€ Streams:
        91.
             95. input_FL
             96. monitor_FL
             97. input_FR
             98. monitor_FR

Video
 โ”œโ”€ Devices:
 โ”‚      34. USB2.0 HD UVC WebCam                [v4l2]
 โ”‚      45. USB2.0 HD UVC WebCam                [v4l2]
 โ”‚
 โ”œโ”€ Sinks:
 โ”‚
 โ”œโ”€ Sources:
 โ”‚  *   58. USB2.0 HD UVC WebCam (V4L2)
 โ”‚
 โ”œโ”€ Filters:
 โ”‚
 โ””โ”€ Streams:
        81. kwin_wayland
             82. output_1        > plasmashell:input_1    [init]
        83. plasmashell
             84. input_1         < kwin_wayland:output_1    [init]

Settings
 โ””โ”€ Default Configured Devices:
hidden lily
#

๐Ÿซค

#

@marsh wing sorry for ping, you got any idea?

nocturne merlin
#

I appreciate all the help Addict

#

you are a legend, even if you cant get my issue fixed

hidden lily
#

np, but it's kinda frustrating that it's still not registering the sink

marsh wing
#

@nocturne merlin sudo pacman -S pipewire pipewire-audio pipewire-pulse pipewire-session-manager pipewire-v4l2

#

remove pulse audio

#

then reboot

hidden lily
#

what's the last one?

nocturne merlin
#

alright ran the commands, rebooting

marsh wing
nocturne merlin
#

it should be removed already.

I'm just gonna run sudo pacman -R pulseaudio unless you have another way to check

marsh wing
#

pacman -Q

nocturne merlin
#

package was not found

hidden lily
#

are you sure your physical configuration is correct

nocturne merlin
#

when I was troubleshooting this on my own earlier I noticed the config for pipewire was nonexistent, is that normal for fresh install?

nocturne merlin
#

reinstall the config or pipewire?

hidden lily
#

pipe

nocturne merlin
#

alrighty done

hidden lily
#

and are you sure your jack is actually connected to the serial controller on your mobo

nocturne merlin
#

jack connected yes. mobo, idk cause that's a new word for me

nocturne merlin
#

these headphones were working yesterday when this laptop was windows

hidden lily
#

you've never had these issues on any other operating system, ja

nocturne merlin
#

so I feel pretty good about the usual layer 1 and 8 problems

hidden lily
nocturne merlin
#

right like physical layer

hidden lily
#

could in fact be the issue

nocturne merlin
#

and 8 being user lol

hidden lily
#

if the audio controller which in your case is realtek

nocturne merlin
#

yeah its realtek

#

but I read that alsa is supposed to be okay with realtek

hidden lily
#

realtek is very well known and very infamous for bad linux compat

nocturne merlin
#

shiieeet

hidden lily
#

on windows it's fine

#

but ja

nocturne merlin
#

hmm, I had my headphones working on linux mint but I wanted to use hyprland xd

hidden lily
nocturne merlin
#

yeah but its not supported anymore and with me being such a noob it seemed easier to go with arch

#

have to do some jank stuff to get it working it seems

hidden lily
#

.aw pipewire

sudden boneBOT
hidden lily
#

gimme a sec

nocturne merlin
#

kk take your time, im doing some googling too

hidden lily
nocturne merlin
#

uhh is it actually called coppwr? can't find it

#

ah found it on aur

#

hang on gotta figure out how to get yay, first time

#

im trying to install coppwr but its just hung on the last step for some reason

nocturne merlin
#

says command not found

hidden lily
#

๐Ÿ’€

#

idk

#

I'm kinda stumped

nocturne merlin
#

I probably did something wrong with installing it but idk what

#

I'll give it another day to see if somebody else has any ideas but if not then I guess I gotta find another distro rip rop

ocean seal
#

@nocturne merlin do you know if the jack you're plugging into is a combo jack (ie. single port for both headphone and microphone? if so, then create file /etc/modprobe.d/alsa-base.conf with content options snd-hda-intel model=dell-headset-multi (i know you said acer laptop but if it's a combo jack, this is reported as a fix for many users). Then reboot and use plasma. Install pavucontrol (this is fine as it's done through pipewire pulse), execute pavucontrol and in the configuration page, ensure a non-pro profile such as Analog Stereo Duplex is selected for your controller. You can leave the HDMI ones as 'off' and make sure that when you go to Output Devices in pavucontrol, that it detects the headphones being unplugged/plugged in and that the channel isn't mutted. Then test audio. If still nothing, also check 'alsamixer' > f6 to select the correct soundcard and make sure the headphones aren't muted and if that still doesn't work, here are 2 'fixes' you can set for the model for alc295 devices

#

model=alc295-disable-dac3

#

and model=alc295-hp-x360

#

you'd have to edit /etc/modprobe.d/alsa-base.conf to apply one of these models, reboot, and repeat the aforementioned steps

hidden lily
nocturne merlin
hallow torrentBOT
#

lionel_hutz6990 received a thank you cookie!

nocturne merlin
#

[ SOLVED ] Speaker Audio on laptop works fine but headphone audio does not

hidden lily
#

i reckon it's due to it being a realtek chipset

sterile hearth
#

wait realtek chipsets arent supported on arch?

sterile hearth
#

@hidden lily please explain this realtek chipset

#

thing

#

i have the same issue as this guy

hidden lily
#

what audio service are you using

sterile hearth
hidden lily
#

hmm

sterile hearth
#

but like the guys setup its not being recognized

#

like its connected, but arch just doesnt wanna recognize it

#

and i know it works since im dual booting and on win they work

hidden lily
#

sudo pacman -S pipewire pipewire-audio pipewire-pulse pipewire-session-manager pipewire-v4l2 pwvucontrol pipewire-jack pipewire-alsa

#

try that

sterile hearth
#

okay did it

#

what now

#

reboot?

#

i rebooted

hidden lily
#

idk

#

is it working

sterile hearth
#

no

#

the speaker is still not recognized

sterile hearth
#

@hidden lily sorry for ping, but i solved the mystery, speakers were muted in pwvu