Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
worth switching to wayland?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Wed Mar 15, 2023 2:40 am    Post subject: worth switching to wayland? Reply with quote

Hi.
I have been thinking if it is already good time to switch to Wayland or not.

How about the performance with NVIDIA graohics card, is it working worse, equal or better than with xorg?

Thanks.
Back to top
View user's profile Send private message
s0ulslack1
n00b
n00b


Joined: 06 Mar 2022
Posts: 21

PostPosted: Wed Mar 15, 2023 3:49 am    Post subject: Reply with quote

Absolutely! Running a 1050 TI with Wayfire and I regret not checking things out sooner.

As with anything new it can be a pita to get working but glad this dinosaur jumped
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Wed Mar 15, 2023 12:27 pm    Post subject: Reply with quote

Which driver should i pick for
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)

for Wayland?

And does that driver work with DaVinci Resolve (which currently works with X11 for me and nvidia closed source drivers)
Back to top
View user's profile Send private message
mistah_monocle
n00b
n00b


Joined: 04 Mar 2023
Posts: 12
Location: Southern US

PostPosted: Wed Mar 15, 2023 6:37 pm    Post subject: Reply with quote

Man I wanna try Wayland, but I'm just nervous about the stability of dwl. I am way too attached to dwm to switch lol
_________________
doogenhaj
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1816

PostPosted: Fri Mar 17, 2023 4:29 pm    Post subject: Reply with quote

Personally I couldn't have less desire to switch to anything than I do for Wayland...with the exception of systemd. I'm hoping that at some point someone picks up support for X11 if the freedesktop.org devs drop that. Why should Wayland be stable after only being around for 13 years right?
The lack of anything like X11 forwarding alone is enough to ice that one for me. On my LAN I use that all the time.

Tom
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Mon Apr 03, 2023 6:14 pm    Post subject: Reply with quote

ok, i switched to Wayland (keeping the X11 also)
and now i cannot seem to get some programs or features working with wayland, like Zoom video conferencing app can't share screen.

so, i switched back to X11

Altho i would like to use waydroid, which only works on wayland... :(

un saludo...
Back to top
View user's profile Send private message
spica
Apprentice
Apprentice


Joined: 04 Jun 2021
Posts: 287

PostPosted: Mon Apr 03, 2023 6:57 pm    Post subject: Reply with quote

heikkikk wrote:
Zoom video conferencing app can't share screen.
Zoom has a browser version (however browser experience is not user friendly)
KDE and GNOME provide both X11 and Wayland sessions, and it is easy to switch between them via re-login.
Regarding performance of NVIDIA – I think performance is the same. I do not see a difference in FPS numbers when I run 3D applications on my PRIME card.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2009

PostPosted: Tue Apr 04, 2023 8:37 am    Post subject: Reply with quote

spica wrote:
heikkikk wrote:
Zoom video conferencing app can't share screen.
Zoom has a browser version
....

In my experience (firefox), the browser version merely runs the zoom app from inside the browser, and hence the same restriction - no screen sharing under wayland - remains.
_________________
Greybeard
Back to top
View user's profile Send private message
spica
Apprentice
Apprentice


Joined: 04 Jun 2021
Posts: 287

PostPosted: Tue Apr 04, 2023 1:03 pm    Post subject: Reply with quote

Goverp wrote:
firefox

Try with www-client/google-chrome or something else chromium-based. zoom does not support FF. But the experience is not good: comparing to skype, zoom does not provide single page experience (or I had no luck to find it), they return the whole website instead, and therefore it is not usable when started in chrome in app mode. And no trayicon with missed messages notification.

These are examples how to run them in app mode:
Code:
google-chrome-stable --disable-extensions --disable-plugins --disable-sync -–no-experiments --app=https://join.zoom.us
google-chrome-stable --disable-extensions --disable-plugins --disable-sync -–no-experiments --app=https://teams.microsoft.com
google-chrome-stable --disable-extensions --disable-plugins --disable-sync -–no-experiments --app=https://web.skype.com

Another issue, if you decided to prepare three *.desktop files with different icons, then all three windows will have the icon of the first started window. If teams was started first, then skype and zoom will have the teams icon. It is hard to find the needed messenger window on the overview screen if it has a wrong icon. This is caused by a known bug in chromium.

So, it is possible, but sometimes it is not user friendly. I prefer official clients, and when I know that I will need to share my screen then I switch to X11 beforehand.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Thu Apr 06, 2023 4:42 am    Post subject: Reply with quote

tld wrote:
Personally I couldn't have less desire to switch to anything than I do for Wayland...with the exception of systemd.

That's a rather different story: While systemd is a decrease in security (due to its complexity), wayland is a gain in security. The fact that you cannot - in principle - avoid that your browser is reading the root password you type in another window alone is a reason to switch.
Quote:
The lack of anything like X11 forwarding alone is enough to ice that one for me.

There are meanwhile tools which do that, AFAIK much more efficient than plain X, but I never tried. What you cannot do is share the whole screen due to mentioned security improvements.
Back to top
View user's profile Send private message
rab0171610
Apprentice
Apprentice


Joined: 24 Dec 2022
Posts: 299

PostPosted: Thu Apr 06, 2023 7:26 am    Post subject: Reply with quote

"wayland is a gain in security. The fact that you cannot - in principle - avoid that your browser is reading the root password you type in another window alone is a reason to switch. "
Please explain to me how a browser is going to capture me typing my root password in a terminal when that password is not even visible or in clear text? I do need that much security. There are other ways to make sure you are not being snooped and spied upon. Wayland is not clearly better for everyone. Maybe that is necessary and works in your use case but that doesn't make it true for everyone.
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Thu Apr 06, 2023 8:42 am    Post subject: Reply with quote

rab0171610 wrote:
"wayland is a gain in security. The fact that you cannot - in principle - avoid that your browser is reading the root password you type in another window alone is a reason to switch. "
Please explain to me how a browser is going to capture me typing my root password in a terminal when that password is not even visible or in clear text? I do need that much security. There are other ways to make sure you are not being snooped and spied upon. Wayland is not clearly better for everyone. Maybe that is necessary and works in your use case but that doesn't make it true for everyone.

If you are interested in giving xorg less privileges, you can do the things I describe here.
Don't be put off by the static /def stuff. It should be possible with udev rules too.
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21638

PostPosted: Thu Apr 06, 2023 3:25 pm    Post subject: Reply with quote

By default, Xorg allows processes to monitor keystroke events for windows other than their own. Therefore, if you type your root password in the xterm running /bin/su, other X11 clients can see it. Since it is a keylogger, rather than a screenscraper, the lack of echo does not impact it.
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 922
Location: Romania

PostPosted: Thu Apr 06, 2023 4:15 pm    Post subject: Reply with quote

Hu wrote:
By default, Xorg allows processes to monitor keystroke events for windows other than their own. Therefore, if you type your root password in the xterm running /bin/su, other X11 clients can see it. Since it is a keylogger, rather than a screenscraper, the lack of echo does not impact it.

You say this it the default, how can it be turned off.
Then again, does it really mater that other programs can get your root password this way on a single-user system?
_________________
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Back to top
View user's profile Send private message
rab0171610
Apprentice
Apprentice


Joined: 24 Dec 2022
Posts: 299

PostPosted: Thu Apr 06, 2023 7:49 pm    Post subject: Reply with quote

Quote:
By default, Xorg allows processes to monitor keystroke events for windows other than their own

Thanks!
Back to top
View user's profile Send private message
user
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 202

PostPosted: Fri Apr 07, 2023 12:34 pm    Post subject: Reply with quote

stefan11111 wrote:
Hu wrote:
By default, Xorg allows processes to monitor keystroke events for windows other than their own. Therefore, if you type your root password in the xterm running /bin/su, other X11 clients can see it. Since it is a keylogger, rather than a screenscraper, the lack of echo does not impact it.

You say this it the default, how can it be turned off.
Then again, does it really mater that other programs can get your root password this way on a single-user system?


There is an attack vector difference between
entering sudo pass at already maniplulated xterm code
or running trusted-gentoo-source-compiled x11 application which is enabled by drive-by to sniff keystrokes (e.g. untrusted payload at browser runtime)
or running untrusted/binary x11 application and still do not know how easy this application can sniff all keystrokes because of X11 design from decades ago.

How to mitigate? Do X11 sandboxing.
For example with bubblewrap and xpra or for easy usage but less learning curve with firejail
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri Apr 07, 2023 3:06 pm    Post subject: Reply with quote

stefan11111 wrote:
]You say this it the default, how can it be turned off.

Practically, it cannot be turned off for an X application.
Quote:
Then again, does it really mater that other programs can get your root password this way on a single-user system?

Yes. Attack scenario: You click a bad webpage which uses some of the regular browser exploits to read the keyboard from another window. Then if you type your root password, the compromised browser gets even root access for free on your machine.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri Apr 07, 2023 3:08 pm    Post subject: Reply with quote

stefan11111 wrote:
If you are interested in giving xorg less privileges.

The main problem is not the privilege of xorg on your machine but across xorg apps.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri Apr 07, 2023 3:18 pm    Post subject: Reply with quote

user wrote:
How to mitigate? Do X11 sandboxing.
For example with bubblewrap and xpra or for easy usage but less learning curve with firejail

X11 sandboxing is quite resource intensive and inconvenient, though of course better than nothing if you are forced to use X.
Section 5.2 of https://wiki.archlinux.org/title/Bubblewrap is worth reading: Essentially, they strongly recommend wayland for security reasons.
Back to top
View user's profile Send private message
Ja.KooLit
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2022
Posts: 99
Location: Somewhere Over There!

PostPosted: Wed Apr 12, 2023 1:51 pm    Post subject: Reply with quote

check out hyprland if you go for wayland :)
Back to top
View user's profile Send private message
allistarM
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jul 2004
Posts: 138

PostPosted: Tue Apr 18, 2023 4:36 am    Post subject: Reply with quote

I'm curious about Wayland too, but I don't want to break my production rig. I have a two GPU, 6 monitor setup and KDE (in particular Plasma) doesn't work across more than one xscreen. Annoyingly it ignores the DISPLAY= variable so I can't limit it to one xscreen, and I can't run more than one instance of it. As it is I have a hand modified version of plasma-workspace to get it to ignore the monitors on the second xscreen (they used the xrandr output name as a way to identify monitors but this doesn't work as these are not unique when you have more than one GPU).

Right now I'm using X11 and Compiz and it works very well. There will come a time when compiz stops working though. I hope Wayland (and Plasma) work with a multiple GPU environment.
Back to top
View user's profile Send private message
enhaced
n00b
n00b


Joined: 10 Mar 2022
Posts: 26

PostPosted: Tue May 09, 2023 1:25 am    Post subject: Re: worth switching to wayland? Reply with quote

heikkikk wrote:
Hi.
I have been thinking if it is already good time to switch to Wayland or not.

How about the performance with NVIDIA graohics card, is it working worse, equal or better than with xorg?

Thanks.


Big Wayland fan here, if you have the opportunity to switch to Wayland, DO IT!
I personally can't do it on my main machine since most software I use has poor compatibility with Wayland :(
but as I've said, if you have the opportunity, DO IT!

BUT WAIT!

try it out for a couple of days and keep X installed, if you come to the conclusion that you like it more than X and your software works, you can safely uninstall X and daily-drive Wayland!
_________________
addict with a pen
Back to top
View user's profile Send private message
greyspoke
Apprentice
Apprentice


Joined: 08 Jan 2010
Posts: 171

PostPosted: Wed Jun 07, 2023 9:02 am    Post subject: Reply with quote

Well I have used the Plasma Wayland session uneventfully until I switched to tty1 and then switched back to tty7. Instead of my Plasma session I got the ssdm log-in screen, greyed out and inactive. So back to the Plasma X session for now.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Wed Jun 07, 2023 9:58 am    Post subject: Reply with quote

Works fine for me. Are you sure your Plasma session had been on tty7 in the first place?
Back to top
View user's profile Send private message
wjb
l33t
l33t


Joined: 10 Jul 2005
Posts: 609
Location: Fife, Scotland

PostPosted: Wed Jun 07, 2023 3:59 pm    Post subject: Reply with quote

I tried it for a weekend. Mostly nothing different, but VirtualBox VMs didn't work, which is a deal-breaker for me. Yes I know it's VirtualBox being arse, but it's still 'nope'.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
Page 1 of 8

 
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