Tiny Core Extensions > TCE Talk

Wayland

<< < (10/11) > >>

GNUser:
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.

Vaguiner:

--- Quote from: Juanito on October 13, 2023, 12:24:43 PM ---Ah - nvidia, that complicates things - perhaps it’s a question of loading the correct nvidia kernel module..

--- End quote ---
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.

aus9:
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: ---sudo killall <name of desktop>
--- End code ---
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: ---sudo rm -rf /run/seatd.sock
--- End code ---
and 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: ---sudo -- seatd -g staff -n /run/seatd.sock & XDG_SESSION_TYPE=wayland dbus-run-session weston
--- End code ---
but 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

hiro:
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.

aus9:
@hiro

--- Quote ---what is the problem with running both Xorg on one tty and wayland on another?
--- End quote ---
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
--- End quote ---
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

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version