Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] kwin_screencast: Failed to connect PipeWire context
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 136

PostPosted: Sat Sep 14, 2024 7:14 pm    Post subject: [SOLVED] kwin_screencast: Failed to connect PipeWire context Reply with quote

Trying to get KDE6 working. The first thing to fix is obviously what spews enless lines of text to the log. Here is the last half minute:
Code:
sep 14 21:06:00 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:00 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:00 tor plasmashell[606]: error creating screencast "Misslyckades ansluta PipeWire-sammanhang"
sep 14 21:06:00 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:00 tor plasmashell[606]: error creating screencast "Misslyckades ansluta PipeWire-sammanhang"
sep 14 21:06:01 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:01 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:01 tor plasmashell[606]: error creating screencast "Misslyckades ansluta PipeWire-sammanhang"
sep 14 21:06:01 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:01 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:01 tor plasmashell[606]: error creating screencast "Misslyckades ansluta PipeWire-sammanhang"
sep 14 21:06:01 tor kwin_wayland_wrapper[512]: kwin_screencast: Failed to connect PipeWire context
sep 14 21:06:01 tor plasmashell[606]: error creating screencast "Misslyckades ansluta PipeWire-sammanhang"
sep 14 21:06:03 tor plasmashell[606]: kpipewire_logging: error: "Misslyckades ansluta till PipeWire-sammanhang" 0
sep 14 21:06:03 tor plasmashell[606]: received error while creating the stream "Misslyckades ansluta till PipeWire-sammanhang" Media monitor will not work.
sep 14 21:06:08 tor plasmashell[606]: kpipewire_logging: error: "Misslyckades ansluta till PipeWire-sammanhang" 0
sep 14 21:06:08 tor plasmashell[606]: received error while creating the stream "Misslyckades ansluta till PipeWire-sammanhang" Media monitor will not work.
sep 14 21:06:13 tor plasmashell[606]: kpipewire_logging: error: "Misslyckades ansluta till PipeWire-sammanhang" 0
sep 14 21:06:13 tor plasmashell[606]: received error while creating the stream "Misslyckades ansluta till PipeWire-sammanhang" Media monitor will not work.
sep 14 21:06:18 tor plasmashell[606]: kpipewire_logging: error: "Misslyckades ansluta till PipeWire-sammanhang" 0
sep 14 21:06:18 tor plasmashell[606]: received error while creating the stream "Misslyckades ansluta till PipeWire-sammanhang" Media monitor will not work.
sep 14 21:06:23 tor plasmashell[606]: kpipewire_logging: error: "Misslyckades ansluta till PipeWire-sammanhang" 0
sep 14 21:06:23 tor plasmashell[606]: received error while creating the stream "Misslyckades ansluta till PipeWire-sammanhang" Media monitor will not work.
sep 14 21:06:28 tor plasmashell[606]: kpipewire_logging: error: "Misslyckades ansluta till PipeWire-sammanhang" 0
sep 14 21:06:28 tor plasmashell[606]: received error while creating the stream "Misslyckades ansluta till PipeWire-sammanhang" Media monitor will not work.


Last edited by sigra on Sun Sep 15, 2024 10:44 am; edited 1 time in total
Back to top
View user's profile Send private message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 136

PostPosted: Sun Sep 15, 2024 9:02 am    Post subject: Reply with quote

The error message does not say how it tried to connect PipeWire. The following command did not work:
Code:
systemctl start PipeWire

emerge -s pipewire shows that acct-group/pipewire-0-r2, kde-plasma/kpipewire-6.1.4-r1 and media-video/pipewire-1.2.3 are installed. But it also shows that acct-user/pipewire is not installed. Should it be installed, and if so, why was it not installed as a dependency?

Searching for pipewire in systemsettings does not find anything (such as an option to disable it).
Back to top
View user's profile Send private message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 136

PostPosted: Sun Sep 15, 2024 9:26 am    Post subject: Reply with quote

Quote:
[ebuild R ~] media-video/pipewire-1.2.3:0/0.4::gentoo USE="X dbus doc extra ffmpeg readline ssl systemd v4l zeroconf -bluetooth -echo-cancel -flatpak -gsettings -gstreamer -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -man -modemmanager -pipewire-alsa -roc (-selinux) -sound-server (-system-service) -test" 0 KiB

Should the use flag system-service be enabled? If so, why was it not enabled as a dependency of plasmashell?
Back to top
View user's profile Send private message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 136

PostPosted: Sun Sep 15, 2024 10:24 am    Post subject: Reply with quote

While emerging pipewire separately, I noticed this message:
Code:
>>> Completed (1 of 1) media-video/pipewire-1.2.3::gentoo

 * Messages for package media-video/pipewire-1.2.3:

 * Please restart KWin/Mutter after upgrading PipeWire.
 * Screencasting may not work until you do.
 *
 * When switching from PulseAudio, you may need to disable PulseAudio:
 *
 *   systemctl --user disable pulseaudio.service pulseaudio.socket
 *
 * To use PipeWire, the user units must be manually enabled
 * by running this command as each user you use for desktop activities:
 *
 *   systemctl --user enable pipewire.socket pipewire-pulse.socket
 *
 * A reboot is recommended to avoid interferences from still running
 * PulseAudio daemon.
 *
 * Both new users and those upgrading need to enable WirePlumber
 * for relevant users:
 *
 *   systemctl --user disable pipewire-media-session.service
 *   systemctl --user --force enable wireplumber.service
 *
 * Root user may replace --user with --global to change system default
 * configuration for all of the above commands.
 *
 * For latest tips and tricks, troubleshooting information, and documentation
 * in general, please refer to https://wiki.gentoo.org/wiki/PipeWire
 *
 * The following can be installed for optional runtime features:
 *   sys-auth/rtkit for restricted realtime capabilities via D-Bus
 *   media-plugins/alsa-plugins[pulseaudio] for ALSA plugin to use PulseAudio interface for output

 * GNU info directory index is up-to-date.


I also read at https://wiki.gentoo.org/wiki/PipeWire about CONFIG_VERBOSE_PROCFS. But in my kernels, it is called SND_VERBOSE_PROCFS. I enable it, reinstall the kernel, run the systemctl commands suggested above and reboot now.
Back to top
View user's profile Send private message
sigra
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2006
Posts: 136

PostPosted: Sun Sep 15, 2024 10:43 am    Post subject: [SOLVED] kwin_screencast: Failed to connect PipeWire context Reply with quote

No more log spam after reboot (tried both 6.1.110-gentoo and 6.6.47-gentoo)!
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4865
Location: Bavaria

PostPosted: Sun Sep 15, 2024 11:08 am    Post subject: Reply with quote

sigra wrote:
[...] I also read at https://wiki.gentoo.org/wiki/PipeWire about CONFIG_VERBOSE_PROCFS. But in my kernels, it is called SND_VERBOSE_PROCFS. [...]

I have just corrected it in this wiki article.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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