LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2021, 01:56 PM   #61
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309

Quote:
Originally Posted by tramtrist View Post
xdg-desktop-portal would be a much welcomed addition for us non KDE wayland users
Well, the addition of xdg-desktop-portal will solve certainly the stack for Plasma5, because there's already xdg-desktop-portal-kde

In practice, when an application wants to do screen recording on Wayland/Plasma5, the things works like this:

- the application asks xdg-desktop-portal for a video stream for screen recording
- the xdg-desktop-portal looks for a frontend, and finds running xdg-desktop-portal-kde, so asks it for the video stream
- the xdg-desktop-portal-kde show to user a confirmation dialog (if accepts or not) then asks KWin for the video stream.
- the Kwin setups a new PipeWire video stream and sends the handle to xdg-desktop-portal-kde
- the xdg-desktop-portal-kde sends the handle of video stream (and that information that the user accepted) to xdg-desktop-portal
- the xdg-desktop-portal sends the handle of video stream to application, which then do its job.

All communication is done via DBUS.

Even sounds complicated, this logic ensure that the applications talks always with xdg-desktop-portal no matter which desktop session and implementation runs on the desktop.

So, those who uses different desktop session on Wayland - non Plasma5, will need to run also particular implementations, like xdg-desktop-portal-wlr for WLROOTS based DEs or xdg-desktop-portal-gtk for Wayland/Gnome3.

Last edited by LuckyCyborg; 07-06-2021 at 01:57 PM.
 
1 members found this post helpful.
Old 07-06-2021, 01:58 PM   #62
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by LuckyCyborg View Post
Adding "OnlyShowIn=XFCE" on the XDG autostart files will make them to be executed only on XFCE sessions.

So, they will not work anymore on Plasma5 no mater if Wayland or X11.

As they are today, they will be executed no matter what DE session will run. Also this is verified practically by myself.
Interesting, I couldn't get pipewire to work in XFCE without using that in the desktop file.
 
Old 07-06-2021, 02:00 PM   #63
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Thanks @LuckyCyborg This is very interesting. Yes, -wlr is the drone I'm looking for. While I compiled and installed it manually I have virtually no idea how to properly set it up.
But I suppose we're getting off topic
 
Old 07-06-2021, 02:01 PM   #64
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by stormtracknole View Post
Interesting, I couldn't get pipewire to work in XFCE without using that in the desktop file.
Then, maybe you should look on how XFCE handle those XDG autostart files. Could be even a (new) bug.

I am quite sure that, months ago, I had no issues to start the PipeWire daemons on XFCE with those stock XDG autostart files.

Last edited by LuckyCyborg; 07-06-2021 at 02:05 PM.
 
1 members found this post helpful.
Old 07-06-2021, 02:09 PM   #65
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by LuckyCyborg View Post
Then, maybe you should look on how XFCE handle those XDG autostart files. Could be even a (new) bug.

I am quite sure that, months ago, I had no issues to start the PipeWire daemons on XFCE with those stock XDG autostart files.
When I first tested this, I did so under KDE. So I can't say for sure if this was working at any point with XFCE.
 
Old 07-06-2021, 02:30 PM   #66
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by stormtracknole View Post
When I first tested this, I did so under KDE. So I can't say for sure if this was working at any point with XFCE.
Well, I can confirm you that it works fine even today - with the stock XDG autostart files. I've just tested on full updated system.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2021-07-06_22-21-46.png
Views:	64
Size:	17.1 KB
ID:	36748  

Last edited by LuckyCyborg; 07-06-2021 at 02:42 PM.
 
2 members found this post helpful.
Old 07-06-2021, 02:41 PM   #67
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by tramtrist View Post
Thanks @LuckyCyborg This is very interesting. Yes, -wlr is the drone I'm looking for. While I compiled and installed it manually I have virtually no idea how to properly set it up.
But I suppose we're getting off topic
I have no idea how to setup xdg-desktop-portal-wlr on Slackware and your particular Wayland DE, BUT I am 100% certain that also xdg-desktop-portal is required.
 
1 members found this post helpful.
Old 07-06-2021, 02:46 PM   #68
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by LuckyCyborg View Post
Well, I can confirm you that it works fine even today - with the stock XDG autostart files. I've just tested on full updated system.
Well...I need to look at my set up again. I obviously missed something on that system. Thanks for checking your system.
 
Old 07-06-2021, 07:39 PM   #69
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
LuckyCybord,

Do you mind sharing one of your pipewire desktop files here? Just want to make sure I am not missing something. Thanks!
 
Old 07-07-2021, 05:27 AM   #70
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,022

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by stormtracknole View Post
LuckyCybord,

Do you mind sharing one of your pipewire desktop files here? Just want to make sure I am not missing something. Thanks!
Considering that he's the inventor of those XDG desktop files, probably he uses exactly the files described on this thread's first post.

Also myself I use them and if you want a second confirmation, I would like to inform you that the PipeWire daemons runs properly on XFCE also on my mini-PC MinisForum Z83-F.

I've tested this after upgrading to "Tue Jul 6 20:44:20 UTC 2021" updates.

Last edited by ZhaoLin1457; 07-07-2021 at 05:46 AM.
 
Old 07-07-2021, 06:18 AM   #71
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by ZhaoLin1457 View Post
Considering that he's the inventor of those XDG desktop files, probably he uses exactly the files described on this thread's first post.

Also myself I use them and if you want a second confirmation, I would like to inform you that the PipeWire daemons runs properly on XFCE also on my mini-PC MinisForum Z83-F.

I've tested this after upgrading to "Tue Jul 6 20:44:20 UTC 2021" updates.
Thanks ZhaoLin. This does help. I'm just perplexed as to why this wasn't working on this particular system. No big deal though. Thanks for chiming in.
 
Old 07-07-2021, 10:51 AM   #72
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
Quote:
Originally Posted by stormtracknole View Post
LuckyCybord,

Do you mind sharing one of your pipewire desktop files here? Just want to make sure I am not missing something. Thanks!
As @ZhaoLin1457 already supposed, I use exactly the XDG autostart files described on this thread. There's one, for the sake of fulfilling your request.

/etc/xdg/autostart/pipewire.desktop
Code:
[Desktop Entry]
Version=1.0
Name=PipeWire Media System
Comment=Start the PipeWire Media System
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire /usr/bin/pipewire
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
Honestly, I believe that your issues are in fact related to how you configured your XFCE - how about to start the XFCE on a new created user, with its default options?

I for one, I suspect that you modified the options of starting services on xfce4-session

https://docs.xfce.org/xfce/xfce4-session/preferences

Let's say that you disabled both the startup of Gnome and KDE services for whatever reasons, because looks like that the XFCE uses "OnlyShowIn" to identify its own services on XDG autostart.

Last edited by LuckyCyborg; 07-07-2021 at 11:17 AM.
 
1 members found this post helpful.
Old 07-07-2021, 11:46 AM   #73
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by LuckyCyborg View Post
As @ZhaoLin1457 already supposed, I use exactly the XDG autostart files described on this thread. There's one, for the sake of fulfilling your request.

/etc/xdg/autostart/pipewire.desktop
Code:
[Desktop Entry]
Version=1.0
Name=PipeWire Media System
Comment=Start the PipeWire Media System
Exec=/usr/bin/daemon -frB --pidfiles=~/.run --name=pipewire /usr/bin/pipewire
Terminal=false
Type=Application
X-GNOME-Autostart-Phase=Initialization
X-KDE-autostart-phase=1
Honestly, I believe that your issues are in fact related to how you configured your XFCE - how about to start the XFCE on a new created user, with its default options?

I for one, I suspect that you modified the options of starting services on xfce4-session

https://docs.xfce.org/xfce/xfce4-session/preferences

Let's say that you disabled both the startup of Gnome and KDE services for whatever reasons, because looks like that the XFCE uses "OnlyShowIn" to identify its own services on XDG autostart.
I think you are on to something. This particular account that I am using is old and has seen many instances of xfce. I obviously have something messed up there. I probably should have looked more into that before I chimed here. Thank for your tips.
 
Old 07-17-2021, 04:16 PM   #74
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,537

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Another data point, but XFCE, pipewire, and SuperCollider started right up. Latency was kind of ass, but I haven't really tuned my laptop for latency. (That is, just default jackdrc, no kernel params yet.)

ETA: I'm not using wayland. Just X.
 
Old 07-18-2021, 03:14 AM   #75
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
I tried out Pipewire on one of my Test Current installs and thought it might have shown me a way to simplify and improve ALSA interaction with JACK in a Pulse environment. turned out to not work. I suppose it was likely just a case of Premature Jack Elation
 
2 members found this post helpful.
  


Reply

Tags
pipewire, pulseaudio



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipewire pulseaudio emulation without pulseaudio installed (works) adcdam Slackware 18 04-02-2021 01:34 AM
Plasma 5.20 Beta? It is rock solid, excluding the taskbar thumbnails on Wayland - or rather because Pipewire needs "per user" init scripts LuckyCyborg Slackware 3 09-21-2020 02:50 PM
LXer: This Week in Linux 94: Mesa 20, PipeWire, Linux Be Scary, MyPaint, GTK, Microsoft Defender LXer Syndicated Linux News 0 02-26-2020 07:23 PM
LXer: Improved multimedia support with Pipewire in Fedora 27 LXer Syndicated Linux News 0 09-20-2017 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration