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

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


Joined: 02 Sep 2004
Posts: 3441
Location: Canada

PostPosted: Tue Nov 07, 2023 5:22 pm    Post subject: Reply with quote

Anon-E-moose wrote:

I've been playing with linux/unix for a long time, and I remember when X was similar to the way wayland is now, lots of tinkering to get it to work right.
Persevere and things should get better.


Funny thing, I am using Unix since 1986, but first encountered X11 in 1992, on X-terminals, and Sun station, and it just worked without any tinkering (perhaps tinkering was done by somebody else).
Was blown away sitting in Cambridge, and windows opened from UC Berkeley, where I was making my graphs, and later in 1993 Toronto where I did not even now on what computer in the network my programs and data files resided (I just had X-terminal,)
Never had issues of X itself in XFree86 version either when LInux came along to me in 1998. All effort was spent on configuring window manager of a choice to suite the aesthetical preferences, but if you wanted a default, you had it. OK, adding fonts to X-configuration, and
in CRT era, spending a bit of time to design the crispiest video mode, but that was just for fun.
Back to top
View user's profile Send private message
kj184050
Apprentice
Apprentice


Joined: 29 Sep 2021
Posts: 164
Location: Devon

PostPosted: Wed Nov 08, 2023 5:52 am    Post subject: Reply with quote

Quote:
but that was just for fun.

Well, not for me :) Switching to Xorg was a nightmare for me for around a year.

Regarding chromium-based browsers sluggish full-screen YouTube playback.
I noticed that I don't have hardware acceleration + I cant force it.
But I will open a new topic.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6068
Location: Removed by Neddy

PostPosted: Wed Nov 08, 2023 9:23 am    Post subject: Reply with quote

Chromium-based might be running in Xorg mode via xwayland (you can check using xkill for instance...)
You need to enable OZONE for chromium stuff and then it is smooth and fast
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
kj184050
Apprentice
Apprentice


Joined: 29 Sep 2021
Posts: 164
Location: Devon

PostPosted: Wed Nov 08, 2023 9:48 am    Post subject: Reply with quote

Quote:
running in Xorg mode via xwayland

I dont have xwayland, and I removed xorg.
I use -X

Code:
eix-installed all | grep xorg
x11-base/xorg-proto-2023.2


I wonder if I proto is needed...

Code:
 emerge -cav xorg-proto

Calculating dependencies... done!
  x11-base/xorg-proto-2023.2 pulled in by:
    dev-python/pycairo-1.24.0 requires x11-base/xorg-proto
    gui-libs/gtk-layer-shell-0.8.0 requires x11-base/xorg-proto
    media-libs/freeglut-3.4.0 requires x11-base/xorg-proto
    media-libs/gegl-0.4.46 requires x11-base/xorg-proto
    media-libs/libglvnd-1.7.0 requires x11-base/xorg-proto
    media-libs/mesa-23.1.8 requires x11-base/xorg-proto
    x11-apps/xprop-1.2.6 requires x11-base/xorg-proto
    x11-apps/xset-1.2.5 requires x11-base/xorg-proto
    x11-drivers/nvidia-drivers-545.29.02 requires x11-base/xorg-proto
    x11-libs/cairo-1.17.8 requires x11-base/xorg-proto
    x11-libs/gtk+-2.24.33-r3 requires x11-base/xorg-proto
    x11-libs/gtk+-3.24.38 requires x11-base/xorg-proto
    x11-libs/libICE-1.1.1-r1 requires x11-base/xorg-proto
    x11-libs/libSM-1.2.4 requires x11-base/xorg-proto
    x11-libs/libX11-1.8.7 requires x11-base/xorg-proto
    x11-libs/libXScrnSaver-1.2.4 requires x11-base/xorg-proto
    x11-libs/libXau-1.0.11 requires x11-base/xorg-proto
    x11-libs/libXcomposite-0.4.6 requires x11-base/xorg-proto
    x11-libs/libXcursor-1.2.1 requires x11-base/xorg-proto
    x11-libs/libXdamage-1.1.6 requires x11-base/xorg-proto
    x11-libs/libXdmcp-1.1.4-r2 requires x11-base/xorg-proto
    x11-libs/libXext-1.3.5 requires x11-base/xorg-proto
    x11-libs/libXfixes-6.0.1 requires >=x11-base/xorg-proto-2021.4
    x11-libs/libXft-2.3.8 requires x11-base/xorg-proto
    x11-libs/libXi-1.8.1 requires >=x11-base/xorg-proto-2021.4.99.2
    x11-libs/libXmu-1.1.4 requires x11-base/xorg-proto
    x11-libs/libXrandr-1.5.4 requires x11-base/xorg-proto
    x11-libs/libXrender-0.9.11 requires x11-base/xorg-proto
    x11-libs/libXt-1.3.0 requires x11-base/xorg-proto
    x11-libs/libXv-1.0.12 requires x11-base/xorg-proto
    x11-libs/libXxf86vm-1.1.5 requires x11-base/xorg-proto
    x11-libs/libvdpau-1.5 requires x11-base/xorg-proto
    x11-libs/libxcb-1.16 requires x11-base/xorg-proto
    x11-libs/libxkbfile-1.1.2 requires x11-base/xorg-proto
    x11-libs/libxshmfence-1.3.2 requires x11-base/xorg-proto
    x11-libs/pango-1.50.14 requires x11-base/xorg-proto
    x11-misc/compose-tables-1.8.7 requires x11-base/xorg-proto


Do I really need all of these above...

Code:
eix-installed all | grep wayland
dev-libs/wayland-1.22.0
dev-libs/wayland-protocols-1.32
dev-util/wayland-scanner-1.22.0
gui-libs/egl-wayland-1.1.12_p20230718


So no XWayland.
Do I need this egl-wayland? It looks like Nvidia-drivers is pulling it?

Code:
Calculating dependencies... done!
  gui-libs/egl-wayland-1.1.12_p20230718 pulled in by:
    x11-drivers/nvidia-drivers-545.29.02 requires >=gui-libs/egl-wayland-1.1.10
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6169
Location: Dallas area

PostPosted: Wed Nov 08, 2023 10:52 am    Post subject: Reply with quote

Whoever is handling the ebuilds that are including xproto, is severely lacking in discernment,
as many of those packages do not need xproto, but the ebuilds pull them in whether needed or not.

Thus you either have a bunch of not needed libs on your system, or you learn to do what the ebuild devs are supposed to be doing and write an ebuild with PROPER dependencies.

Edit to add: as for the many other X libs, you would have to try and remove them to see what pulls them in.

Personally I have the X use flag off globally.
This is what is pulled in on my system
Code:
  x11-base/xorg-proto-2023.2 pulled in by:
    x11-apps/bdftopcf-1.1-r1 requires x11-base/xorg-proto
    x11-apps/mkfontscale-1.2.1 requires x11-base/xorg-proto
    x11-libs/libfontenc-1.1.4 requires x11-base/xorg-proto
    x11-misc/makedepend-1.0.6 requires x11-base/xorg-proto


3 are pulled in by font stuff
makedepend is used by cdrtools and I haven't checked and/or modified the ebuild yet
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
kj184050
Apprentice
Apprentice


Joined: 29 Sep 2021
Posts: 164
Location: Devon

PostPosted: Wed Nov 08, 2023 11:41 am    Post subject: Reply with quote

I have only
Code:
eix-installed all | wc -l
797

packages installed.
these are the remainders of X11 and gnome as I had to install it to figure it out why Hyprland was not working. I have to clear the system more to get rid most of them
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3441
Location: Canada

PostPosted: Wed Nov 08, 2023 9:42 pm    Post subject: Reply with quote

kj184050 wrote:
Quote:
but that was just for fun.

Well, not for me :) Switching to Xorg was a nightmare for me for around a year.

Regarding chromium-based browsers sluggish full-screen YouTube playback.
I noticed that I don't have hardware acceleration + I cant force it.
But I will open a new topic.


BYW, switching to Xorg from what ?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20498

PostPosted: Thu Nov 09, 2023 1:40 am    Post subject: Reply with quote

mv wrote:
pjp wrote:
[Wayfire emphasizes 3D

There is a "cube" extension which can be activated with a certain key/mouse combination, and IIRC, by default there are some extensions enabled which do some animations.
However, it is no problem to switch off all these extensions, and to configure the panel in a sane way.
What you have then is essentially something what you get with fvwm if you use some non-fancy fvwm-crystal theme, just less buggy.
Anon-E-moose wrote:
Mv is correct about wayfire, I turned off almost all animations, etc, when I was using it.

I can recommend labwc (wayland-desktop repo) as a pretty decent openbox clone (some things change given that it's wayland not X).
It's under constant development, though they don't chase wlroots, quite as hard as hyprland, but it's reasonable stable.
They're still adding pieces to it but that's pretty much the same with all wayland compositors, including kde/gnome.
Hmm. My last use of fvwm ensured that I'd never touch it again. Does wayfire have a --sacrifice-appearance option? :D

Years of not having had to play whack-a-mole with positioning windows has made me a convert to tiling, so going back isn't likely. With non-specific meaning, I'd consider some sort of hybrid tiling WM.

One way I gauge viability is by how much is available in ::gentoo. Because I maintain my laptop with binaries and squashfs ::gentoo, I'm inclined to go back to 0 external repositories.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6169
Location: Dallas area

PostPosted: Thu Nov 09, 2023 10:42 am    Post subject: Reply with quote

For those ebuilds in repos, I typically just copy the one ebuild I'm interested in, into my local repo, that way I don't have to keep any odd repos around.

Wayfire - stacking, able to turn off animations, etc.
Hyprland - dynamic tiling, able to turn off animations, etc
Labwc - stacking, no real animations, so nothing to turn off

Labwc has some rudimentary tiling being added
Hyprland has the ability to treat all windows as floating (stacking) or a combination with some workspaces floating, others tiling (global or per app)
Wayfire it's been too long since I've used it so not sure what the current state of it is.

All animation stuff no matter which compositor, should be able to be turned off with one or two keywords.
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Thu Nov 09, 2023 7:17 pm    Post subject: Reply with quote

Anon-E-moose wrote:
For those ebuilds in repos, I typically just copy the one ebuild I'm interested in, into my local repo, that way I don't have to keep any odd repos around.

Wayfire - stacking, able to turn off animations, etc.
Hyprland - dynamic tiling, able to turn off animations, etc
Labwc - stacking, no real animations, so nothing to turn off

Labwc has some rudimentary tiling being added
Hyprland has the ability to treat all windows as floating (stacking) or a combination with some workspaces floating, others tiling (global or per app)
Wayfire it's been too long since I've used it so not sure what the current state of it is.

Wayfire has a "Simple Ttile" extension "inspired by Sway. The plugin is intended to contain only the basics". I never tried it, because my family and I get confused by strange placing automatisms. The "Place" extension (with Cascading) and manual moving in some rare cases is more natural to me.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20498

PostPosted: Thu Nov 09, 2023 7:18 pm    Post subject: Reply with quote

I've done the copy an ebuild thing, but that seems like more work than using the repo. I've only automated creation of a ::gentoo squashfs image, not other repos. Someday I'll look into how to do that. Pulling the one-offs into one local repo might be nice, but I don't know how to determine dependencies that must also come from the non-gentoo:: repo without seeing a build failure. Anyway, that's not a big issue.

For now I'm mainly looking to familiarize myself with the wayland environment. I have sway installed, but haven't tried to do anything with it yet.

Since Wayfire is in ::gentoo, it can't hurt to see what it looks like. It does have a nice logo :). That requires wayland support for mesa and gtk+:3... I presume that won't break anything.

When I eventually update to GCC, I'll try hyrland. It's really the only one that I'm genuinely curious about. Maybe I'll do that sooner than later, after the next gcc-13 patch level is stabilized.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20498

PostPosted: Thu Nov 09, 2023 7:52 pm    Post subject: Reply with quote

mv wrote:
Wayfire has a "Simple Ttile" extension "inspired by Sway. The plugin is intended to contain only the basics". I never tried it, because my family and I get confused by strange placing automatisms. The "Place" extension (with Cascading) and manual moving in some rare cases is more natural to me.
Interesting. i3 doesn't automate placement at all. Unless you just mean where it puts a new window. That's mostly simple, but might take playing with to absorb it, and I presume you're not looking for guidance :). Also, I'd never expect the average computer user would care for it (worse is better). I hated the concept when I first tired ratpoison, but I didn't then learn how to use it, I just uninstalled it. I switched to i3 after one too many times of getting fed up with "normal" window managers.

Having given up manual tweaking of window size and placement, I rarely move them. The real pain with i3 (and presumably sway) is in restoring a window layout and loading an app into the appropriate window. It took me quite a while to get two virtual desktops with different layouts of 3 windows each. I recently tried adding a 4th window to one of the layouts, but couldn't get it to work. I didn't spend a lot of time on it though. That's the main reason I want to move away from i3 (and presumably wouldn't be any more satisfied with sway).
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3441
Location: Canada

PostPosted: Fri Nov 10, 2023 7:22 am    Post subject: Reply with quote

pjp wrote:


Having given up manual tweaking of window size and placement, I rarely move them.


Interesting how differently people use things. I constantly shuffle windows on my screen. Basically I treat them as paper on my desk - if I don't need it, it is moved into the corner, covered by other windows, etc. Tha't why I am missing old style virtual space, where you could continuously move window beside the boundaries of the screen, only with pieces/corners showing up
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6169
Location: Dallas area

PostPosted: Fri Nov 10, 2023 10:48 am    Post subject: Reply with quote

Workspaces/desktops allow one to separate windows cleanly, which is why I don't care so much about tiling or stacking.

I have one workspace for each app type - web, mail, p2p, music, and one for general purpose.

Some of the compositors allow one to move the window so only part shows on screen,
ie a type virtual space, not scrollable but window is easily moved back and forth
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20498

PostPosted: Sat Nov 11, 2023 5:03 pm    Post subject: Reply with quote

dmpogo wrote:
Interesting how differently people use things. I constantly shuffle windows on my screen. Basically I treat them as paper on my desk - if I don't need it, it is moved into the corner, covered by other windows, etc. Tha't why I am missing old style virtual space, where you could continuously move window beside the boundaries of the screen, only with pieces/corners showing up
Yeah, everyone comes to some semblance of what they can make work best for them, even if it's not their ideal (because they haven't discovered it).

i3 allows for 10 virtual desktops by default. So far that's more than enough for me. I use two for separate general browsing and a third for email and related uses. I use one for remote access with tmux. One for local general terminal uses (multiple terminals). And one for audio. That leaves me with 4 desktops for incidental / short term needs. When I need to use a particular application, I switch to that window and use it full screen. I've never needed more than one app visible at a time for anything but very short term use. i3 allows side-by-side or over-under layout, so drag-and-drop (I don't) or visual comparison is possible. That's the only use of multiple visible applications at the same time I can recall ever having needed.

I too move what I don't need "to the corner," but a bit differently. It's either in a different virtual desktop, or not visible (except a title bar) in the rare case I use multiple apps on the same desktop.

The only things I miss with i3 are: the lack of Alt+Tab to switch applications; dialog boxes aren't handled well; and the standard status bar doesn't support docking applications.

Restoring layout is a bonus I had never experienced, so that's a big improvement even though I haven't completely automated it. i3's layout management is really lacking in usability though, and is it's greatest area of "needs improvement."
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
kj184050
Apprentice
Apprentice


Joined: 29 Sep 2021
Posts: 164
Location: Devon

PostPosted: Tue Nov 14, 2023 12:33 pm    Post subject: Reply with quote

This is a quick update from my side.

I gave up with Wayland for some time.
I installed Xorg, Gnome, etc.
And?
EVERYTHING is OK. Smooth playback, etc. No issues.
But, as I said, I don't give up so easily, especially when I have time.
I decided to install Hyprland on a different distro.
I chose NixOS.
It was my first time with this distro. It took me less than 20 min. to install Hyprland using a graphical install without a desktop and then putting Hyprland into config.
And?
Well, everything is working fine! Smooth playback, etc.
I started playing with settings to figure out why it is not working on Gentoo.
I managed to "solve" one mystery regarding a blank screen with 120Hz and no display manager.
On NixOS, I had gdm set up. This worked.
When I switched auto login with gdm, I had no screen after reboot.
But, when I set the monitor in hyprelnad.conf to preferred (60Hz) it started with the picture.
So, in Gentoo (I can't use gdm), I have to do something to recognise a signal other than 60Hz.

Any ideas?
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6169
Location: Dallas area

PostPosted: Tue Nov 14, 2023 2:07 pm    Post subject: Reply with quote

Have you tried greetd with one of the greeters? Or just a shell script (set vars and then run hyprland"

As far as gdm, which version both gentoo and nix,
have you tried using nix's gdm config file (wherever it is) under gentoo?
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
NeglectedRudderPug
n00b
n00b


Joined: 04 Oct 2023
Posts: 29

PostPosted: Tue Nov 14, 2023 3:57 pm    Post subject: Reply with quote

Personally, for me Wayland has offered a better experience in the grand scheme of things. I bounced in and out of Wayland over the years watching its progress and it finally feels ready, for my use case.

Installing Wayland resolved the following issues:
1) Multiple monitors at different refresh rates, allowing a 144Hz monitor to run at 144Hz while the other ran at 60Hz.
2) I eventually swapped that 60Hz monitor for a new 144Hz monitor, which led me to another problem: With Xorg, enabling automatic sleep/suspend the monitors would go to sleep (show the no signal warning) and immediately wake back up to my lock screen, it would repeatedly do this from the lock screen as the timer was called each time. With Wayland, both monitors go to sleep and only wake up when I move a mouse or hit the shift key[1].
3) Variable Refresh Rate (VRR). It worked on Xorg for single monitors. But multiple monitors? No VRR for you. With Wayland I have VRR working on both monitors, at the same time. :)

So, for me personally Wayland just offers me a much better experience overall. Even the one thing that's often seen as a "complaint" is that with Wayland another application cannot auto-type or read the user input into another application. I personally prefer that though.

I've only been using Wayland for about a year or so at this point. And like many of you, I was skeptical and hesitant to switch over. But for me, personally, it just works and it works well. Granted, it cannot share applications over the network and such, but I never used that anyway. If I need to control another computer over the network, I'll just use SSH, as I do with business servers, where display servers and graphical applications simply aren't installed. I've never actually needed to forward X11 over a network.

So, out of my ~19 years with Xorg and ~1 years with Wayland, it's been a pleasant ride!

With all that said - I do hope Xorg continues to live on, and I hope it continues to be maintained in some manner. Wayland certainly doesn't fit every use case, and for those cases a tried and tested alternative should continue to exist. Xorg is not a bad display server, and it does the job it is meant to do. It's just in some cases, Wayland is a better fit. But they both have a place and both should continue to be an option for users. Freedom of choice and ability to set things up as you want/need are very important.

I realize my view is a little controversial, but it is my view. :D

[1] Just an old habit from CLI, I don't know what's behind a switched off monitor, so I'd rather not hit a key which is likely to do or trigger something, such as enter.
Back to top
View user's profile Send private message
kj184050
Apprentice
Apprentice


Joined: 29 Sep 2021
Posts: 164
Location: Devon

PostPosted: Thu Nov 16, 2023 10:33 am    Post subject: Reply with quote

Quote:
Have you tried greetd with one of the greeters? Or just a shell script (set vars and then run hyprland"

I just tried greetd this morning - the same thing - no screen.

In Gentoo, I am using dbus-run-session in .bashrc
Previously, I used sddm, and it was working fine.

Quote:
As far as gdm, which version, both Gentoo and nix,
have you tried using nix's gdm config file (wherever it is) under Gentoo?

I was not using gdm in Gentoo - it was pulling gnome (shell AFAIR) and gnome-portal, which was disturbing my Hyprland, so I couldn't have gdm and Hypralnd. On top of that, I love the idea of loading WM/DE directly. Faster with no login.

I found gdm.conf on NixOS, but it gave me 0 clues. BTW, I love the idea of generations and one file config, but the rest could be better. I don't see myself switching to NixOS anytime soon. It is not POSIX-complaint, and I have little control over it. On the other hand, Hypralnd is working out of the box. On Gentoo I still have some issues, e.g. no smooth fullscreen playback on chromium-based browsers and this issue with blank screen when I set up my TV with 120Hz.

I can test Gnome Wayland and direct loading on Gentoo. By doing this I can check if this is a Wayland or Hyprland's fault. .
Back to top
View user's profile Send private message
kj184050
Apprentice
Apprentice


Joined: 29 Sep 2021
Posts: 164
Location: Devon

PostPosted: Thu Nov 16, 2023 12:15 pm    Post subject: Reply with quote

OK. Log in with:
Code:
if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then
  MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session
fi

in .bashrc gives me no blank screen!
So this is a Hyprland-specific issue

For Hyprland I use:
Code:
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
 dbus-run-session Hyprland
fi


I found that @refresh-rate in hyprland.conf is responsible for my issues.
I have to leave it blank or set to 60Hz. If not my screen will be blank with no option to switch to the other tty.
this is really annoying BUT I think that I can write a simple script to start Hyprland with 60Hz and than switch to 120 :)

I put:

Code:
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
   sed -i 's/\@120/\@60/g' ~/.config/hypr/hyprland.conf
    exec dbus-run-session Hyprland
fi
in .bashrc
and then in hyprland.conf
a script to reverse it with sed.
I know it is very ugly but it works.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6169
Location: Dallas area

PostPosted: Thu Nov 16, 2023 3:14 pm    Post subject: Reply with quote

If not set, you might look at these

Code:
MOZ_DBUS_REMOTE=1
MOZ_ENABLE_WAYLAND=1

QT_QPA_PLATFORM=wayland

XDG_BACKEND=wayland
XDG_CACHE_HOME=/home/don/.cache
XDG_CONFIG_DIRS=/etc/xdg
XDG_CURRENT_DESKTOP=Hyprland
XDG_DATA_DIRS=/usr/local/share:/usr/share
XDG_DATA_HOME=/home/don/.local/share
XDG_RUNTIME_DIR=/tmp/.runtime-don
XDG_SESSION_DESKTOP=Hyprland
XDG_SESSION_TYPE=wayland


I know that there are others for GTK/GDK and QT but I don't need them.
_________________
UM780, 6.1 zen kernel, gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1471
Location: Earth

PostPosted: Thu Nov 16, 2023 9:15 pm    Post subject: Reply with quote

TLDR - did someone already said YES :D

i use the following mini patch (/etc/portage/patches/gui-wm/hyprland/hypr.patch) - using *.9999 ebuilds here, but it'll work with stable too.
Code:
diff --git a/example/hyprland.desktop b/example/hyprland.desktop
index 57ad076f..2a8a77db 100644
--- a/example/hyprland.desktop
+++ b/example/hyprland.desktop
@@ -1,5 +1,5 @@
 [Desktop Entry]
 Name=Hyprland
 Comment=An intelligent dynamic tiling Wayland compositor
-Exec=Hyprland
+Exec=dbus-run-session Hyprland
 Type=Application
\ No newline at end of file

this patch will add dbus-run-session to /usr/share/wayland-sessions/hyprland.desktop.

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 473
Location: Naarm/Melbourne, Australia

PostPosted: Thu Nov 16, 2023 11:13 pm    Post subject: Reply with quote

NeglectedRudderPug wrote:
Granted, it cannot share applications over the network and such


There's waypipe, "a proxy for Wayland clients, with the aim of supporting behavior like ssh -X", and wayvnc, "a VNC server for wlroots based Wayland compositors".
Back to top
View user's profile Send private message
wanne32
n00b
n00b


Joined: 11 Nov 2023
Posts: 69

PostPosted: Fri Nov 17, 2023 10:37 am    Post subject: Reply with quote

Quote:
I removed Xorg, and I am not even using Xwayland (-X USE).
How are you using browsers?
Chromium does not start without X at all. You can start it change the settings to wayland and then rerun it without. But you need X to disable it, since they had the most stupid idea to remove the command line option for wayland.
Firefox is slightly better: By default it crashes without X. But you can enable Wayland via environment variable. But then it will try 2 times (once before selecting your profile once after) try to connect to X until it gets a timeout after 3 seconds and only start afterwards. This is so annoying that I have X enabled purely for starting firefox.
Quote:
Do I need this egl-wayland? It looks like Nvidia-drivers is pulling it?
Open GL ES is accessed via egl. Since DirecX and Metal are not available for Linux, Open GL is not available for wayland and vulkan is only supported by a hand full of very active developed applications it is usually the only way of having 3D-Accelleration on wayland and heavily used by a lot of applications. (Other than vulkan all bigger graphic frameworks support it by default. If you are not using 3D applications at all I don't know why you are not going for the nouveau driver which is much less pain. If you are: you really want to have it.
Quote:
I constantly shuffle windows on my screen. Basically I treat them as paper on my desk - if I don't need it, it is moved into the corner, covered by other windows
Like I do not have paper on my desk, I put applications away if I do not use them usually just closing them. Ore if for some reason (usually because I forgot putting nohup on front of the command) it is needed to keep running it goes to desktop 9 where I never look again.
On modern screens you can easily put 4 windows side by side and have still multiple times the pixels per window than in the 00s. And you never need more than 3 windows at the same time: 2 for copy-paste and one for documentation. Maybe one free for a calculator or something. When I see other people in such scenarios they are usually not using a quarter of their screen (since all the used windows need to stay clickable) and still having all the time move a window since the wrong part is covered by an other window.
For real: Try it: Shuffling around windows is a horrible waste of time and screen area. Even if I use a old fashioned compositor again things have changed. Since it is more efficient more or less all modern compositors/wms support that kind of working by spiting/maximizing via gestures or key combinations. You just do not search for them until you recognized how big your windows could be if you would scale them in a more organized manner.
Quote:
I know that there are others for GTK/GDK and QT but I don't need them.
I don't now if it is an accident: But you didn't set GDK_BACKEND. Sure that there is no application that is also using media-libs/clutter media-libs/libsdl(2)? Lots of gtk applications do the first. A lot of applications use later for some small animation somewhere.
Quote:
I managed to "solve" one mystery regarding a blank screen with 120Hz and no display manager.
Most of this problems go away if you are using DP instead of HDMI. Sadly mist TVs have HDMI.
Quote:
Is "Wayland" The protocol still changing? There is no specific release like X11R4, X11R6 etc...?
From my reading of this thread I think you better follow one specific of implementation of Wayland protocol. Am my understand of this correctly?
Wayland consists of ~20 Interfaces with own versions. But newer versions only have additional functionality. So if your client was built for a smaller version it will work with any bigger version. But still these versions change only every few years for minor changes. In the end wayland is a really small protocol with very limited functionality most devs never get in touch with.
Here are a few examples where you had to fiddle with X protocols but not with wayland:
* Font rendering now totally up to the client. So if you are interested in font rendering: QT (or GTK) versions is relevant.
* Clipboard is not part of wayland. So it moved (like many other things) to the XDG. So there is much more development and inconsistency. But again as a dev you are not interested in the wayland protocol but in the xdg-portal provider.
* Networking is not the business of wayland. waypipe just transports the calls without understanding them. Applications won't recognize anything of it. No need to implement the tcp-based protocol on every application separately.
* What is called DRM on X11 is more or less the mode wayland is always working in. So you are doing just wayland no handling of different branches for more modern and older variants of X11.
* Putting things on the screen is totally up to the compositor. So it talks to the kernel driver. So differences have to be handled there. (Or just not doing it and demanding a consistent interface. See Open GL.) compositors and and kernel-divers have to react to their changes respectively but wayland is not involved at all. No different X11-drivers from different vendors.
In short: Wayland has outsourced more or less everything to other parts of the system. Main thing was defining who is doing what. Since it doesn't do much. It doesn't need that many changes. The real heavy lifting is done by the graphic frameworks and compositors. And they had to change a lot. But these are not one specific implementation. There are at least a dozen compositors and around as many graphic frameworks and they work together fine.
Back to top
View user's profile Send private message
kj184050
Apprentice
Apprentice


Joined: 29 Sep 2021
Posts: 164
Location: Devon

PostPosted: Fri Nov 17, 2023 11:30 am    Post subject: Reply with quote

Quote:
How are you using browsers?

As usual. Firefox is working OK but it is really slow ~20 in Speedometer 2, but it has a smooth YouTube full-screen 4K 60fps playback.
Chromium-based browsers don't have GPU hardware rendering, so I have no smooth full-screen playback.
But they are fast - over 220 (even 280) in speedometer 2.

Quote:
Chromium does not start without X at all

Now I have X, but previously I didn't. Chromium and Vivaldi were working fine.
I didn't have -X in my make.conf and physically, I didn't have Xorg.

Quote:
If you are: you really want to have it.

I need CUDA, so I have to stick to binary.

I am so in love with Hyprland that I decided to install it and Gentoo from scratch again :)
This time, It will be on a separate partition (not my primary), so I will have MORE time to configure it and NO PRESSURE.
I will make this thing work perfectly! :)
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 Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 7 of 9

 
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