Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] sound no longer working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Sat Jan 18, 2025 6:02 pm    Post subject: [SOLVED] sound no longer working Reply with quote

I setup my system to use pipewire: https://wiki.gentoo.org/wiki/PipeWire#USE_flags

I had it working at some point, but only after I installed pavucontrol. I was (and still am) unable to use wpctl to control the volume. I could set the volume via pactl.

Now, I only get sound when I connect my bluetooth earbuds. Without them connected, I only see dummy output. I did rebuild my system after changing use flags, but I don't believe pipewire was rebuilt. If I go to the configuration tab in pavucontrol, I don't see any cards available for configuration.

Any ideas as to what I should check?

emerge --info
https://bpa.st/QHCQ


Last edited by o5gmmob8 on Tue Feb 11, 2025 2:28 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3950

PostPosted: Sat Jan 18, 2025 11:45 pm    Post subject: Reply with quote

Plz post
Code:

emerge -pv pipewire libpulse pulseaudio

Did you change recently maybe the kernel config?
_________________
:)
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Sun Jan 19, 2025 12:35 am    Post subject: Reply with quote

emerge -pv pipewire libpulse pulseaudio

Code:

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.41 s (backtrack: 0/20).

[ebuild   R    ] media-video/pipewire-1.2.7:0/0.4::gentoo  USE="bluetooth dbus echo-cancel man readline sound-server ssl v4l -X -doc -elogind -extra -ffmpeg -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -modemmanager -pipewire-alsa -roc (-selinux) (-system-service) -systemd -test -zeroconf" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] media-libs/libpulse-17.0::gentoo  USE="X asyncns dbus glib gtk -doc (-selinux) -systemd -test -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  N     ] media-sound/pulseaudio-16.1::gentoo  USE="bluetooth glib jack -daemon -ofono-headset" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 3 packages (1 new, 2 reinstalls), Size of downloads: 0 KiB

 * IMPORTANT: 26 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


I don't believe I changed the kernel config, no.
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Sun Jan 26, 2025 12:40 am    Post subject: Reply with quote

I rebuilt the kernel with the out of the box configuration and I still have no sound except for when I connect bluetooth. It is strange because I can see it detects an Intel HDA soundcard and loads the appropriate kernel modules.

When I got it working earlier, I had to go into pavucontrol and change the configuration to select a different sink, but the configuration tab itself is showing no cards available for configuration. I went through the pipewire configuration again and noticed that the conf files that were supposed to be copied to cp /usr/share/pipewire/pipewire.conf /etc/pipewire/pipewire.conf did not exist. I know I copied them there earlier, but even after copying them there now, it is still not working.

On a positive note, the system is stable unless I mess it up :).
Back to top
View user's profile Send private message
reith
n00b
n00b


Joined: 13 Nov 2015
Posts: 20

PostPosted: Sun Jan 26, 2025 4:20 am    Post subject: Reply with quote

Maybe it's related to the problem I had earlier today. Check if `pactl list sinks` shows the port as available or unavailable.
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Sun Jan 26, 2025 11:19 am    Post subject: Reply with quote

Thanks, but hmm, pactl shows no cards:

Code:
pactl list cards

<NOTHING>


I see I didn't install sof-firmware, but I didn't have that before and I didn't install it because I believe I have an older CPU. But I will give that a try.

EDIT:
Installing sof-firmware did NOT help. I went through the pipewire guide again: https://wiki.gentoo.org/wiki/PipeWire/en and changed my start-sway script from exec dbus-run-session sway to exec dbus-launch --exit-with-session. That didn't make any difference though.
Back to top
View user's profile Send private message
reith
n00b
n00b


Joined: 13 Nov 2015
Posts: 20

PostPosted: Sun Jan 26, 2025 7:39 pm    Post subject: Reply with quote

what does `aplay -l` say?
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Sun Jan 26, 2025 7:49 pm    Post subject: Reply with quote

It says 'no soundcards found...'
Back to top
View user's profile Send private message
reith
n00b
n00b


Joined: 13 Nov 2015
Posts: 20

PostPosted: Sun Jan 26, 2025 8:01 pm    Post subject: Reply with quote

o5gmmob8 wrote:
It says 'no soundcards found...'

can you confirm `snd_hda_intel` kernel module is loaded and `alsa-lib` is installed?

do you see cards in `ls /dev/snd` run by your regular user? If not, double check you're still a member of group `audio`. I know it was suggested otherwise in pipewire wiki.
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Sun Jan 26, 2025 10:36 pm    Post subject: Reply with quote

Yes, snd_hda_intel is loaded and alsa-lib is installed.
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Mon Feb 10, 2025 9:21 pm    Post subject: Reply with quote

I tried changing the permissions of /dev/snd to pipewire (it was audio) as well as reverting back to audio and then making myself a member of the audio group, logging out and logging back in. I still only see 'Dummy Output' in pavucontrol.
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Tue Feb 11, 2025 2:30 am    Post subject: Reply with quote

I figured it out, I ended up coming back to this thread again:
https://forums.gentoo.org/viewtopic-p-8854369.html#8854369

EDIT: I had to kill existing pipewire instances. I changed my sway config to:

Code:
exec gentoo-pipewire-launcher restart &


It was:
Code:
exec gentoo-pipewire-launcher &


So, though it seems like marginal gains, I don't like the idea of my pipewire session lingering in the background once I exit sway. The lifetime for this is small since I log into the console and then spend 99.995% of my time there. I suspect that I must have copied the xinit settings since I have i3 on my mind.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3504

PostPosted: Tue Feb 11, 2025 11:50 am    Post subject: Reply with quote

You can try running pw daemon as an actual system service rather than having a bunch of per-user instances stepping on each others' toes. You know, the old-school way. There is a simple conversion guide in tips & tricks
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
o5gmmob8
Guru
Guru


Joined: 17 Oct 2003
Posts: 531

PostPosted: Tue Feb 11, 2025 12:52 pm    Post subject: Reply with quote

Would you mind sharing a link? I'm not finding that on the wiki page:
https://wiki.gentoo.org/wiki/PipeWire
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3504

PostPosted: Tue Feb 11, 2025 3:03 pm    Post subject: Reply with quote

Guide for open-rc: https://forums.gentoo.org/viewtopic-t-1152524.html
I think systemd users can get a similar result by just flipping a USE flag, but with information from that topic you could as well write your own unit files (or scripts for any other init of choice) if necessary.
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum