View previous topic :: View next topic |
Author |
Message |
Antegentoo n00b
Joined: 15 Sep 2023 Posts: 15
|
Posted: Thu Oct 12, 2023 11:13 am Post subject: Pipewire detects sound card but does not play sound |
|
|
This is true for all applications. I am able to start pipewire, and it is detected as a sound system in alsamixer. However, no sound is played. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3918
|
Posted: Thu Oct 12, 2023 12:16 pm Post subject: |
|
|
What is the output of
Code: |
emerge -pv pipewire libpulse pulseaudio
|
?
How do you start pipewire?
Via DM, xinitrc or manually? _________________
|
|
Back to top |
|
|
Antegentoo n00b
Joined: 15 Sep 2023 Posts: 15
|
Posted: Thu Oct 12, 2023 12:29 pm Post subject: |
|
|
Code: | These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 3.38 s.
[ebuild U ~] media-video/pipewire-0.3.81:0/0.4::gentoo [0.3.80:0/0.4::gentoo] USE="X bluetooth dbus extra gstreamer pipewire-alsa readline sound-server ssl -doc -echo-cancel -ffmpeg -flatpak -gsettings -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -modemmanager -roc (-system-service) -systemd -test -v4l -zeroconf" ABI_X86="32 (64) (-x32)" 1,620 KiB
[ebuild U ~] media-libs/libpulse-16.1-r3::gentoo [16.1-r2::gentoo] USE="X asyncns dbus glib -doc -gtk (-selinux) -systemd -test -valgrind" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild N ] media-sound/pulseaudio-16.1::gentoo USE="bluetooth glib -daemon -jack -ofono-headset" ABI_X86="(64) -32 (-x32)" 0 KiB
Total: 3 packages (2 upgrades, 1 new), Size of downloads: 1,620 KiB
!!! The following installed packages are masked:
- dev-python/setuptools-scm-8.0.1::gentoo (masked by: package.mask)
/var/db/repos/gentoo/profiles/package.mask:
# Michał Górny <mgorny@gentoo.org> (2023-09-22)
# =dev-python/setuptools-scm-8.0.1 broke compatibility hard but reverted
# the changes in 8.0.2.
|
I start pipewire manually. Also, not sure if this would help but bluetooth audio works fine. It's just the sound from the speakers that is not working. I do not think it is a hardware issue.
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3918
|
Posted: Thu Oct 12, 2023 12:37 pm Post subject: |
|
|
Try
Code: |
emerge -1av pulseaudio
USE="-pipewire-alsa" emerge -1av pipewire
|
and see if it is solved.
Run as user
Code: |
LANG=C pactl info | grep "Server Name"
|
If yes add USE="pulseaudio" in make.conf and rebuild @world and remove USE "pipewire-alsa" from pipewire. _________________
|
|
Back to top |
|
|
Antegentoo n00b
Joined: 15 Sep 2023 Posts: 15
|
Posted: Thu Oct 12, 2023 12:48 pm Post subject: |
|
|
Wouldn't that install pulseaudio though? I want to use pipewire |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3918
|
Posted: Thu Oct 12, 2023 12:50 pm Post subject: |
|
|
It will just install it.But you will be using pipewire.
You will hopefully get
Code: |
LANG=C pactl info | grep "Server Name"
Server Name: PulseAudio (on PipeWire 0.3.39)
|
See https://wiki.gentoo.org/wiki/PipeWire#USE_flags _________________
|
|
Back to top |
|
|
Antegentoo n00b
Joined: 15 Sep 2023 Posts: 15
|
Posted: Thu Oct 12, 2023 1:11 pm Post subject: |
|
|
The output is as expected, but the sound is still not working. |
|
Back to top |
|
|
Antegentoo n00b
Joined: 15 Sep 2023 Posts: 15
|
Posted: Thu Oct 12, 2023 1:22 pm Post subject: |
|
|
Never mind, it's working. Thanks for the help! |
|
Back to top |
|
|
Antegentoo n00b
Joined: 15 Sep 2023 Posts: 15
|
Posted: Thu Oct 12, 2023 1:25 pm Post subject: |
|
|
Btw, could you tell what the -1 does? I have never seen it before.. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3918
|
Posted: Thu Oct 12, 2023 1:29 pm Post subject: |
|
|
It means (re)building a package without creating an entry for it in world file( /var/lib/portage/world).
Packages in that file are normally not un-merged during --depcleaning.
They are persistent either because they belong to the @system set or because you explicitly emerged them.
It is equivalent to
This is useful for rebuilding packages pulled in as a dependency by another package you explicitly emerged or by a USE flag.
Or for temporarily emerging a package that will be --depcleaned in next update.
Generally you should avoid having dependent packages in word file because it can potentially create problems in future updates
For example pulseaudio is pulled by USE="pulseaudio" in make.conf.
You do not need to explicitly emerge it like
Code: |
emerge -av pulseaudio
|
It will be pulled by the use flag @world update or rebuild.
Sometimes a common mistake is when you need to rebuild an already existing package for testing purposes or a changed USE flag you commonly do
You should always do
Code: |
emerge -1 <package>
|
Only use explicit emerging if a package is a major package you need and is not pulled by any dependency. _________________
Last edited by alamahant on Thu Oct 12, 2023 1:54 pm; edited 6 times in total |
|
Back to top |
|
|
Antegentoo n00b
Joined: 15 Sep 2023 Posts: 15
|
Posted: Thu Oct 12, 2023 1:37 pm Post subject: |
|
|
Alright. Thanks for the help! |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3918
|
Posted: Thu Oct 12, 2023 1:43 pm Post subject: |
|
|
Please see above.
Also when you wish to register a package in world file
do
Code: |
emerge --noreplace <package>
|
If you wish to remove it from world file without deleting it
do
Code: |
emerge --deselect <package>
|
You are welcome! _________________
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6148 Location: Dallas area
|
Posted: Thu Oct 12, 2023 1:52 pm Post subject: |
|
|
You should only use pipewire pulseaudio, if you were already using pulseaudio.
You don't need it to play audio through alsa, but alsa does require wireplumber and use flags for pipewire-alsa and sound-server.
When you are trying pipewire, open another terminal and run either "pw-link -l" or "pw-top" they both show info for pipewire.
You could also run "wpctl status" to see what devices wireplumber actually sees. _________________ UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
|