You are not logged in.

#1 2021-12-20 04:57:59

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Audio not functioning when playing youtube until I "fix" the problem

I never know what logs to give so if someone could help me understand what to post when asking for help that'd be great because I hate starting all my posts with "I don't know what to give you but if you ask for it I'll give it"
    Anyways, I don't know when this started because I didn't use my speakers for a couple weeks I think. I did recently update my machine and was having issues with cables so I got the cables working / replaced them, and I know the cables are for a fact not the problem now. When I click the KDE System Tray icon for my HDMI monitor output, it will show it's selected, and it will show a bouncing audio level as a youtube video will be playing, but I'm not hearing it. It's not super consistent either, I'll start my computer up, and 50/50 have or not have audio. I can usually get it working between a mix of switching outputs in the system tray, muting it / changing volume, or testing the speaker in KDE's System settings. Once I "get" it working by doing one of those things, I can hear sound when I use the keyboard to change volume, but the moment I test with a youtube video in either librewolf or firefox, no sound, including when using the keyboard to change volume. What's also interesting is I can repeat the steps over and over again, but I won't restore sound unless I reboot first. I also just ran a couple more tests and am editing my post, apparently sometimes I can restore the sound by going to this random speaker test website, but a youtube video will put me back to square one. My usb headset works whenever I test it by switching outputs without fail. My system's as up to date as possible, I've went into alsamixer and made sure the volume for master is all the way up, and I have aplay -l output here, though I imagine that's useless

Last edited by jamess7995 (2021-12-20 04:59:33)

Offline

#2 2021-12-20 07:27:46

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,746
Website

Re: Audio not functioning when playing youtube until I "fix" the problem

Compare the outputs of 'pactl list sinks' for a working and non-working system. Post them here if you can't make any sense of them.

Just an observation but your OP is a little too rambling and prolix, it would probably help if you could keep things as concise as possible. And do you also need help with your broken <return> key? tongue


Para todos todo, para nosotros nada

Offline

#3 2021-12-20 08:59:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: Audio not functioning when playing youtube until I "fix" the problem

Check/post

sudo fuser -v /dev/snd/*

from working/not working as well.

Offline

#4 2021-12-20 23:32:05

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Re: Audio not functioning when playing youtube until I "fix" the problem

V1del wrote:

Check/post

sudo fuser -v /dev/snd/*

from working/not working as well.

&

Head_on_a_Stick wrote:

Compare the outputs of 'pactl list sinks' for a working and non-working system. Post them here if you can't make any sense of them.

Just an observation but your OP is a little too rambling and prolix, it would probably help if you could keep things as concise as possible. And do you also need help with your broken <return> key?

So I messed up in trying to install and set up pipewire as an alternate approach, it seems to only see intel audio, not the GPU. I can't seem to remove it as it's now somehow a dependency and my system tray now has a different volume control layout / look, and I can never get sound working with my previous "Workaround"
    I think it's not seeing the gpu for sound because alsamixer shows what I believe are volume levels / outputs, and when I go to the intel sound card I have volume bars, I do not for the GPU on alsamixer.
Here's outputs of inxi -Aa , sudo fuser -v /dev/snd/* , pactl list sinks
Also I'll try to get some WD-40 on my return key right away wink

Offline

#5 2021-12-21 00:47:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: Audio not functioning when playing youtube until I "fix" the problem

Don't use alsamixer in general if you're using pulse or pipewire. Mask the pipewire-media-session to not have it interfere with pulse

systemctl --user mask pipewire-media-session --now

Offline

#6 2021-12-21 19:21:43

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Re: Audio not functioning when playing youtube until I "fix" the problem

V1del wrote:

Don't use alsamixer in general if you're using pulse or pipewire. Mask the pipewire-media-session to not have it interfere with pulse

systemctl --user mask pipewire-media-session --now

So I did that but it still appears to be using pipewire, should I make pipewire.service and pipewire.socket, while also disabling / stopping them?

inxi -Aa ,pactl list sinks ,sudo fuser -v /dev/snd/*

Offline

#7 2021-12-21 19:32:12

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Re: Audio not functioning when playing youtube until I "fix" the problem

jamess7995 wrote:

should I mask pipewire.service and pipewire.socket, while also disabling / stopping them?

So I went ahead and masked, disabled, and stopped pipewire.service/socket and then rebooted, my issue persists, I don't think these links are anything new but figured I should keep them current.

inxi -Aa ,pactl list sinks ,sudo fuser -v /dev/snd/*

Offline

#8 2021-12-22 09:20:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: Audio not functioning when playing youtube until I "fix" the problem

Good that means you just have one thing controlling the audio device now, if firefox doesn't play back still (

pacmd list-sinks
pacmd list-sink-inputs

during playback attempts) try enforcing a default driver state with

sudo alsactl init

from alsa-utils.

Offline

#9 2021-12-22 21:36:56

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Re: Audio not functioning when playing youtube until I "fix" the problem

V1del wrote:

Good that means you just have one thing controlling the audio device now, if firefox doesn't play back still (

pacmd list-sinks
pacmd list-sink-inputs

during playback attempts) try enforcing a default driver state with

sudo alsactl init

from alsa-utils.

Right, I still don't have sound anywhere, and the volume control in my KDE System Tray seems to be the pipewire one.
Here's pacmd list-sinks , pacmd list-sink-inputs , & sudo alsactl init

Offline

#10 2021-12-22 21:50:11

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Re: Audio not functioning when playing youtube until I "fix" the problem

I finally figured out how to get some of this output from pulseaudio --log-level=4 --log-target=stderr , at least the last 1000 lines unless you want more

Offline

#11 2021-12-23 02:38:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: Audio not functioning when playing youtube until I "fix" the problem

You aren't playing anything in that pacmd output. actually start firefox and a video/audio source and post the commands during that. FWIW from that error output all your analog sources are declared as unavailable, which is probably some alsa-lib mishap, can you force something with

pacmd set-card-profile alsa_output.pci-0000_00_1f.3 output:analog-stereo+input:analog-stereo

maybe also try the LTS kernel or so to check whether it's something there.

Offline

#12 2021-12-23 04:04:38

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Re: Audio not functioning when playing youtube until I "fix" the problem

V1del wrote:

You aren't playing anything in that pacmd output. actually start firefox and a video/audio source and post the commands during that. FWIW from that error output all your analog sources are declared as unavailable, which is probably some alsa-lib mishap, can you force something with

pacmd set-card-profile alsa_output.pci-0000_00_1f.3 output:analog-stereo+input:analog-stereo

maybe also try the LTS kernel or so to check whether it's something there.

So that's the thing, I was playing a youtube video in firefox during that, cause you said to try it while listening to something so I knew not to do it while nothing was playing.
Using your provided command, I got 

 pacmd set-card-profile alsa_output.pci-0000_00_1f.3 output:analog-stereo+input:analog-stereo
No card found by this name or index.

, which I wouldn't really be using that card since I want to use the sound card of the 1050Ti but replacing the id using the one from there does

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3351]
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation GP107GL High Definition Audio Controller [10de:0fb9] (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:3351]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
[james@Arch computer_backup]$ pacmd set-card-profile alsa_output.pci-0000_00_00.1 output:analog-stereo+input:analog-stereo
No card found by this name or index.

I could try the LTS kernel, currently I'm on the latest kernel  - 5.15.10-arch1-1 - , actually now that I run uname -r, I thought it was supposed to be 5.17 or 16?

Offline

#13 2021-12-23 10:48:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: Audio not functioning when playing youtube until I "fix" the problem

If firefox does not show up in  the pacmd outputs then some very basic session setups aren't working properly on your system that no kernel change will fix. What's your output for

systemctl --user status pulseaudio
loginctl session-status
printenv | grep DBUS

FWIW it wasn't clear to me that you actually want to play back to the HDMI device. If this can be fixed via reboots you might also need https://wiki.archlinux.org/title/Kernel … _KMS_start for the nvidia driver.

Offline

#14 2021-12-24 18:04:38

jamess7995
Member
Registered: 2021-10-25
Posts: 41

Re: Audio not functioning when playing youtube until I "fix" the problem

V1del wrote:

If firefox does not show up in  the pacmd outputs then some very basic session setups aren't working properly on your system that no kernel change will fix. What's your output for

systemctl --user status pulseaudio
loginctl session-status
printenv | grep DBUS

FWIW it wasn't clear to me that you actually want to play back to the HDMI device. If this can be fixed via reboots you might also need https://wiki.archlinux.org/title/Kernel … _KMS_start for the nvidia driver.

Sorry I'm taking so long to write back, I work a lot and am usually away from or not able to use my computer so I don't get a lot of time to work on this.
That first command seems to have a good nugget of info and I think you're right, because at this point I can't even access sound settings from KDE System Settings and the system tray sound doesn't look right.
systemctl --user status pulseaudio, loginctl session-status, printenv | grep DBUS

Offline

Board footer

Powered by FluxBB