#Pipewire is no longer working

1 messages · Page 1 of 1 (latest)

boreal karma
#

For some reason my pipewire is refusing to output any sound whatsoever. When I try to restart it I get a bunch of errors:
https://rentry.org/y8ey5

charred wave
#

Is xdg-desktop-portal running?

boreal karma
charred wave
#

ps aux | grep portal

boreal karma
# charred wave `ps aux | grep portal`
~ ❯ ps aux | grep portal
leandro+ 27191  0.0  0.0   6400  2208 pts/0    S+   16:43   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox portal```
#

wait

#

my user should be leandrobg...?

charred wave
#

so no /usr/libexec/xdg-desktop-portal

#

0:00 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal

boreal karma
#

zsh: no such file or directory: /usr/libexec/xdg-desktop-portal

#

nice

charred wave
#

also that error happens when you have two instances of pipewire running

charred wave
boreal karma
#

the no such file or directory?

charred wave
boreal karma
charred wave
#

Desktop Environment

#

Window Manager

#

(or Wayland Compositor)

boreal karma
charred wave
#

hm some thoughts going through my brain

#

another instance of pipewire running (check ps aux or htop)

#

XDG_RUNTIME_DIR not set

#

just doing some quick googling

boreal karma
charred wave
#

it may be hanging

#

this is an annoying error that I haven't had to deal with lol

#

most like issues here are

#

the other instance or permissions for your runtime dir

boreal karma
#

Ok, killed all pipewires and then:

gentoo-pipewire-launcher &        
[1] 8172
[W][03161.070786] mod.rt       | [     module-rt.c:  254 pw_rtkit_check_xdg_portal()] Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
[W][03161.070821] mod.rt       | [     module-rt.c: 1015 pipewire__module_init()] found session bus but no portal
[W][03161.072223] mod.rt       | [     module-rt.c:  254 pw_rtkit_check_xdg_portal()] Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
[W][03161.072255] mod.rt       | [     module-rt.c: 1015 pipewire__module_init()] found session bus but no portal
    ~ ❯ M 16:56:07.173073             mod.rt ../pipewire-0.3.67/src/modules/module-rt.c:254:pw_rtkit_check_xdg_portal: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
M 16:56:07.173102             mod.rt ../pipewire-0.3.67/src/modules/module-rt.c:1015:pipewire__module_init: found session bus but no portal
C 16:56:07.191956               GLib (null):(null):(null): Failed to set scheduler settings: Operation not permitted
M 16:56:07.197661          wp-device ../wireplumber-0.4.14/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.v4l2.enum.udev' could not be loaded; is it installed?
M 16:56:07.197694        script/v4l2 v4l2.lua:164:chunk: PipeWire's V4L SPA missing or broken. Video4Linux not supported.
M 16:56:07.198037          wp-device ../wireplumber-0.4.14/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 16:56:07.198048   script/libcamera libcamera.lua:173:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
W 16:56:07.852733         spa.bluez5 ../pipewire-0.3.67/spa/plugins/bluez5/bluez5-dbus.c:4538:get_managed_objects_reply: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner```
#

still no audio

#
~ ❯ LANG=C pactl info | grep "Server Name"
Server Name: PulseAudio (on PipeWire 0.3.67)
charred wave
#

I wonder if your XDG_RUNTIME_DIR is not set properly

#

or lacking permissions

#
echo $XDG_RUNTIME_DIR```
#

but I had sound when that was unset. hm.

#

Xfce should automatically start xdg-desktop-portal

#

you can check if you have any of the versions installed using something like eix

boreal karma
#

I didn't have xdg installed, let me restart my PC

charred wave
#

how are you setting that, are the permissions correct?

#

also try that

boreal karma
charred wave
#

I think xfce would want the -gtk or -gnome variant but I'm unsure

boreal karma
#

the ammount of errors reduced tho

charred wave
#

I'm just gonna try to figure it out based on the error message as pipewire works just fine for me

#

oh?

boreal karma
#
~ > gentoo-pipewire-launcher &
M 17:09:01.966569          wp-device ../wireplumber-0.4.14/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.v4l2.enum.udev' could not be loaded; is it installed?
M 17:09:01.966644        script/v4l2 v4l2.lua:164:chunk: PipeWire's V4L SPA missing or broken. Video4Linux not supported.
M 17:09:01.971364          wp-device ../wireplumber-0.4.14/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 17:09:01.971406   script/libcamera libcamera.lua:173:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
W 17:09:02.000810         spa.bluez5 ../pipewire-0.3.67/spa/plugins/bluez5/bluez5-dbus.c:4538:get_managed_objects_reply: GetManagedObjects() failed: org.freedesktop.DBus.Error.NameHasNoOwner
[W][00162.888643] mod.protocol-pulse | [         reply.c:   53 reply_error()] client 0x55830a33f3e0 [Firefox]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error)```
charred wave
#

hm most of the errors I see that are similar to yours are still pipewire somehow being launched twice

#

there is no instance running right now right

#

when it comes to ensuring you have proper permissions this is what I have in my .zprofile

boreal karma
#
 ❯ ps aux|grep -E 'pipewire|wireplumber'
leandro+  9446  5.6  0.1 256004 18780 pts/0    S<l+ 17:17   0:00 /usr/bin/wireplumber
leandro+  9448  2.3  0.1  92508 17544 pts/0    S<l+ 17:17   0:00 /usr/bin/pipewire
leandro+  9449  3.3  0.0  73012 13404 pts/0    S<Ll+ 17:17   0:00 /usr/bin/pipewire -c pipewire-pulse.conf
leandro+  9489  0.0  0.0   6404  2208 pts/1    S+   17:17   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox -E pipewire|wireplumber```
This is after running
```sh
pkill -term wireplumber
pkill -term pipewire 
gentoo-pipewire-launcher &```
charred wave
#
unset XDG_RUNTIME_DIR
export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
#

idk if permissions will be the error here since it worked before

#

also those error messages

#

are harmless

#
[mia@Lain ~]$ PipeWire terminated.
M 19:17:51.125708          wp-device ../wireplumber-0.4.14/lib/wp/device.c:620:wp_spa_device_new_from_spa_factory: SPA handle 'api.v4l2.enum.udev' could not be loaded; is it installed?
M 19:17:51.125725        script/v4l2 v4l2.lua:164:chunk: PipeWire's V4L SPA missing or broken. Video4Linux not supported.
M 19:17:51.126357          wp-device ../wireplumber-0.4.14/lib/wp/device.c:620:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 19:17:51.126364   script/libcamera libcamera.lua:173:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
#

pipewire is running, if we know that permissions work for sure then we can check pulse audio server emulation and device settings

#

but these errors are meaningless and don't impact sound

boreal karma
#

so the true error is
[W][00655.196303] mod.protocol-pulse | [ reply.c: 53 reply_error()] client 0x55566bc0b6d0 [Firefox]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error)
[W][00655.196427] mod.protocol-pulse | [ reply.c: 53 reply_error()] client 0x55566bc0b6d0 [Firefox]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error)

charred wave
#

yes it is interesting

#

sry it's taking a while I don't know this issue off of the top of my head

#

I might ask someone that has worked with pipewire earlier but out of interest

#

can you emerge -pv pulseaudio pipewire wireplumber pulseaudio-daemon libpulse

charred wave
#

getting some issues with improper installation

#

interesting

boreal karma
#

that's odd

charred wave
#

actually

#

it's all good

boreal karma
#

Yeah, thought so, pulse audio should be not installed

charred wave
#

pulse audio should be installed

#

but not pulse-audio daemon

#

which isn't

boreal karma
#

yes, what I meant

#

let me try to reinstall them again

charred wave
#

looking through previous issues

#

#support-archive message

#

#chat-archive message

#

maybe try reading through some of these

charred wave
#

do you see any devices in pavucontrol

boreal karma
charred wave
#

out of sheer interest

#

your version of it is outdated, have you updated recently?

boreal karma
charred wave
#

I saw some genuine bug reports from other repos

#

I just hope that is it honestly

boreal karma
#

Yeah, that's how usually goes, when I cannot fix something, it's a bug or a no fix

#

yeah, pipewire has an update, let's hope

charred wave
#

there's two versions keyworded as stable

#

so this may have something to do with it

boreal karma
#

nope

#

also:

~ ❯ alsamixer 
cannot open mixer: Host is down```
charred wave
#

alsamixer -c 0 or -c 1 ?

boreal karma
#

that worked

charred wave
#

your asoundrc is fucked

boreal karma
#

how can I unfuck it

charred wave
#

do you have a / what's in your

#

/etc/asound.conf

#

seems like it's defaulting to a sound card

#

that doesnt exist or work

#

If you start alsamixer without "-c0", it will attach to the default device, which is by default also card 0. But in your .asoundrc, you define a different default device:

#

just a matter figuring out where it's setting the wrong default device

boreal karma
#

daheck cat: /etc/asound.conf: No such file or directory

charred wave
#

cat /etc/asound/cards

#

then make that asound.conf

#
defaults.ctl.card 2
boreal karma
#

cat: /etc/asound/cards: No such file or directory

charred wave
#

and replace 2 with your desired number

boreal karma
#

everything was working, when sudenly no more working

charred wave
#

this is

#

quite peculiar

boreal karma
#

I will just purge anything related to audio except players...

charred wave
#

Idk if this is the solution honestly

#

Does your sound card show up under lspci

boreal karma
#

yes, both of them

charred wave
#

are you on a custom kernel?

boreal karma
#

ish

charred wave
#

might be related to kernel modules for your sound card

boreal karma
#

it was working before, did not change anything in the kernel at all since first install

charred wave
#

are you still running that old kernel?

#

I am stupid.

#

I just realized I mistyped a directory

#

it's /proc/asound

#

not etc

#

idk why I did that

#

lmao.

boreal karma
#
~ ❯ ls /proc/asound
card0  card1  cards  devices  hwdep  modules  NVidia  oss  PCH  pcm  seq  timers  version```
charred wave
#

check /proc/asound/cards

charred wave
boreal karma
#
~ ❯ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xdd128000 irq 133
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xdd080000 irq 17
charred wave
#

should just be 0

#

idk why your default soundcard is overriden somewhere

#

if setting it here doesn't fix it some audio config is making it smth else

boreal karma
#

Nvidia stuff should not be there?

charred wave
#

no no tht's fine

#

as in your default sound card

#

is 0

#

and when you did

#

alsamixer -c 0

#

it worked

#

specifying card 0

#

if setting that as your default in the asound.conf doesn't work some place is changing thta

#

like if you have a .asoundrc or smth like that

#

maybe an update or something changed it

boreal karma
#

Ok, if I plug my headphone into my monitor, it works

#

but I want my speakers

charred wave
#

someplace is setting sound card 1

#

as your default

#

your nvidia

charred wave
boreal karma
#

and yes, the output was going to the intel card

charred wave
#

hm

boreal karma
#

let me change to arch to see if my damn speaker is working, although the headphones were not working either

charred wave
#

try setting your default soundcard with something like wpctl/pavucontrol

#

would be curious to see what sink wpctl status is showing

#

just seems like it set the wrong default output device

charred wave
#

it's just still playing through the wrong sink

boreal karma
#

`s off

#

Do you think it`s playing trough my monitor even though the nvidia card is set to off in pavucontrol

charred wave
#

for pipewire you can check with wpctl status

boreal karma
#

everything works in arch

charred wave
boreal karma
#

WHAT

#

changed to arch, then changed back to gentoo, immediately works

charred wave
#

maybe we changed a setting that wasn't reloaded

boreal karma
#

what

#

possible

charred wave
#

or restarts were needed

#

after your system update

#

as long as it works lmao

boreal karma
#

I did restart

charred wave
#

that is just

#

beyond interesting

#

LMAO

boreal karma
#

hmm, probably I hada file in my home that arch went like "Nah mate, here, let me fix for you"

charred wave
#

who knows

#

honestly

boreal karma
#

@charred wave well, anyways, thank you

charred wave
#

I tried my best with my tired brain MenheraNervousEhehe

boreal karma
#

@charred wave And now it`s not working even in arch xD