WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Wayland  (Read 22213 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1773
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 »

Offline aus9

  • Jr. Member
  • **
  • Posts: 56
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 »