WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Wayland  (Read 22717 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1775
Re: Wayland
« Reply #45 on: November 10, 2023, 07:14:06 AM »
P.P.S. It's better to use gksudo for Xwayland apps as well. This way, if the Xwayland app tries to launch a wayland-native app, it will work.

Offline Vaguiner

  • Full Member
  • ***
  • Posts: 206
Re: Wayland
« Reply #46 on: December 07, 2023, 03:09:11 PM »
Ah - nvidia, that complicates things - perhaps it’s a question of loading the correct nvidia kernel module..
The problem really is with the drivers. I suppose this is because I decided to migrate absolutely everything into /usr/local. All the work that coreplayer2 had to do in the previous nvidia tcz to remove existing libraries was really necessary. I'll look into creating nvidia tcz correctly.

I also found it at least curious to be able to run Wayland inside a x session, as if it were a simple window.
« Last Edit: December 07, 2023, 03:14:43 PM by CardealRusso »

Online aus9

  • Jr. Member
  • **
  • Posts: 81
Re: Wayland
« Reply #47 on: January 02, 2026, 09:15:11 PM »
I am aware this is an old post....on 16x x86_64 we have labwc, weston or woodland.
The easiest way IMHO to get back to the tty to get back to your libX/Xorg desktop to run startx is
Code: [Select]
sudo killall <name of desktop> tested for weston, labwc and woodland. If you want to swap to try out a different
wayland compositor and you are seeing a seatd error then at the prompt input
Code: [Select]
sudo rm -rf /run/seatd.sockand try your launch command again. I am aware there may be other ways, I am trying to show an universal method.

Be aware that a number of applications expect a running dbus eg firefox so weston info suggests
Code: [Select]
sudo -- seatd -g staff -n /run/seatd.sock & XDG_SESSION_TYPE=wayland dbus-run-session westonbut I use a ~/.local/bin/west that is executable and because seatd is SUID I can get away with
###############
#!/bin/sh
tce-load -i weston xwayland dbus
seatd -g staff -n /run/seatd.sock & XDG_SESSION_TYPE=wayland dbus-run-session weston
############
and my others if you would like to cheat off

~/.local/bin/lab
############
#!/bin/sh
tce-load -i labwc xwayland dbus
export WLR_XWAYLAND=1
# wayland environments
GDK_BACKEND=wayland && export GDK_BACKEND
XDG_SESSION_TYPE=wayland && export XDG_SESSION_TYPE
seatd -g staff -n /run/seatd.sock & dbus-run-session labwc -s  lxterminal
###########

~/.local/bin/wood
#############
#!/bin/sh
tce-load -i woodland grim swayimg dbus
seatd-launch dbus-run-session woodland
##############

Obviously you will have more apps in your bootlist...above tce-load command is just to focus my mind that these may not be in my boot list as I swap between Xorg and wayland on a frequent basis

If you want to autostart into one of those compositors I cheated off the idea of GNUser to mod your
~/.profile
comment out the startx line with a # and add line
/home/tc/.local/bin/<wood or lab or west>
change tc to whatever you prefer to use....I am lazy so I still use tc...single user of my PC helps

If that .profile trick kicks you back to the console, as long as your libX/Xorg desktop is loaded startx will launch you back to it.  Good Luck
« Last Edit: January 02, 2026, 09:21:59 PM by aus9 »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1251
Re: Wayland
« Reply #48 on: January 05, 2026, 08:11:59 AM »
what is the problem with running both Xorg on one tty and wayland on another? i heard some people claim this would not be possible and wayland completely replaces Xorg, but as far as i can tell there is no basis to this.

Online aus9

  • Jr. Member
  • **
  • Posts: 81
Re: Wayland
« Reply #49 on: January 05, 2026, 07:18:51 PM »
@hiro
Quote
what is the problem with running both Xorg on one tty and wayland on another?
Only just tested...EDIT THERE IS A GLITCH for me....but is that how a normal member would  do things?
And initially I thought I might need to mod my /etc/inittab....so thanks for pointing out your observation

I opinion that some members are scared of wayland. So I try to offer them an easy way to try wayland desktops....and then an easy way to get back to Xorg.

Quote
wayland replacing Xorg
is not my call. It is up to members to make that call. I assume you are referring to some distros that have gone fully wayland?  Maybe Fedora?

EDIT with wayland on tty1
On tty2 Xorg...my web browser is working as expected....just tried to launch my file manager and GUI Apps
they not working in Xorg......these kb shortcuts are working on woodland!
so NO, I do not think you can run both at once without issues

EDIT2 killed woodland and my Xorg kb shortcuts are launching correctly
« Last Edit: January 05, 2026, 07:25:57 PM by aus9 »

Online aus9

  • Jr. Member
  • **
  • Posts: 81
Re: Wayland
« Reply #50 on: January 05, 2026, 08:11:18 PM »
and good timing on your post.....I have just seen my game submission (uzdoom with freedoom) on x86_64 16x has landed I am going to post in the forum shortly....to save you reading it....it runs well on Xorg and struggles without lots of Xorg stuff and xwayland to run on our current wayland desktops of labwc and woodland.
Does not launch after waiting 5 minutes on weston.
It works as fast as Xorg with sway....but I am going to submit sway for 17x

So I am not suggesting members move away from Xorg if they are gamers, for now