Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907769 - Pipewire problems when restarting Kde Sessions
Summary: Pipewire problems when restarting Kde Sessions
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-03 15:00 UTC by Silvio
Modified: 2023-06-04 02:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silvio 2023-06-03 15:00:49 UTC
I've OpenRc and followed the News to update my system to Pipewire (with pulseaudio).
It works but when I close an X session (KDE) and login again my Volume control says that there is no audio and in "system settings" I cannot see any audio.
I have to reboot the PC and it appears again.
There is something that is lost in closing and reopening the session.

I tried:

1) Putting this in ~\.bash_profile

# Ensure XDG_RUNTIME_DIR is set
unset XDG_RUNTIME_DIR
export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
ing 

2) Putting this in .xprofile
gentoo-pipewire-launcher &

nothing changes.






Reproducible: Always
Comment 1 Silvio 2023-06-03 15:10:45 UTC
I've made this test.

I run

# ps -ef | grep wire


1) During a pipewire functioning session
2) After logout to that session
3) After second login when audio doesn't work anymore.

Each time I got the same:

silvio    2723     1  0 16:55 ?        00:00:00 /usr/bin/wireplumber
silvio    2727  2723  0 16:55 ?        00:00:00 /usr/bin/pipewire
silvio    2728  2723  0 16:55 ?        00:00:00 /usr/bin/pipewire -c pipewire-pulse.conf

So problably daemon has to be killed after the session?

BTW: restarting display-manager doesn't solve the problem:
# /etc/init.d/display-manager restart
I have to reboot the notebook.
Comment 2 Silvio 2023-06-03 22:27:40 UTC
I've solved with this workaround:

in ~\.xprofile
I put:
gentoo-pipewire-launcher restart &

Adding "restart" it forces the pipewire to restart and it works fine.

Another solution could be to stop/kill all processes at the end of the X session.

However I think it has to be handled by the system.

In the meantime one could use my workaround.