Other Using wayland/sway , which software can I remove ?

Alain De Vos

Son of Beastie

Reaction score: 783
Messages: 2,563

I'm using wayland/sway.
Which specific software packages eg xorg related , can I safely remove ?
 

eternal_noob

Aspiring Daemon

Reaction score: 719
Messages: 990

Maybe i get something wrong but if you are using Wayland, why would you need any Xorg packages? I thought Wayland was independent?
 
OP
Alain De Vos

Alain De Vos

Son of Beastie

Reaction score: 783
Messages: 2,563

Can i remove the package xorg-server ?
It takes this with it :
Code:
Installed packages to be REMOVED:
xf86-input-keyboard: 1.9.0_4
xf86-input-libinput: 0.30.0_1
xf86-input-mouse: 1.9.3_3
xf86-video-amdgpu: 19.1.0_2
xf86-video-ati: 19.1.0_4,1
xf86-video-dummy: 0.3.8_3
xf86-video-scfb: 0.0.5_2
xf86-video-vesa: 2.5.0
xorg: 7.7_3
xorg-drivers: 7.7_6
xorg-server: 1.20.11_3,1
I'm using a accelerated radeon/ati card ...
 

eternal_noob

Aspiring Daemon

Reaction score: 719
Messages: 990

I never used Wayland on FreeBSD nor i am at a FreeBSD machine at the moment. The best hint i can give is: Try it and see.
If it does not work without these packages, install them again.
 
OP
Alain De Vos

Alain De Vos

Son of Beastie

Reaction score: 783
Messages: 2,563

With your advice i did the test. It works. I was afraid my system would not boot.

I needed only to keep 2 xorg packages :
Code:
xorg-fonts-truetype-7.7_1      X.Org TrueType fonts
xorgproto-2021.4               X Window System unified protocol definitions
 

tuxador

Active Member

Reaction score: 57
Messages: 134

Just a stupid question.
How do you manage to launch your session?
 

Holger

Member

Reaction score: 16
Messages: 24

Be aware that Wayland (respectively the compositor you are using) might have XWayland compiled in (i.e. support for legacy Xorg software). That support might require some Xorg packages (maybe even xorg-server).
 
OP
Alain De Vos

Alain De Vos

Son of Beastie

Reaction score: 783
Messages: 2,563

Be aware that Wayland (respectively the compositor you are using) might have XWayland compiled it (i.e. support for legacy Xorg software). That support might require some Xorg packages (maybe even xorg-server).
It's ok, i only need two packages.
Code:
pkg info | grep -i xorg                                                                                            0
xorg-fonts-truetype-7.7_1      X.Org TrueType fonts
xorgproto-2021.4               X Window System unified protocol definitions
 
OP
Alain De Vos

Alain De Vos

Son of Beastie

Reaction score: 783
Messages: 2,563

Just a stupid question.
How do you manage to launch your session?
cat ./startsway
Code:
#!/usr/local/bin/zsh
export XDG_RUNTIME_DIR=/home/x/TMP
export XDG_SESSION_TYPE=wayland
export XKB_DEFAULT_LAYOUT="be(nodeadkeys)"
export XKB_DEFAULT_RULES=evdev
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export SDL_VIDEODRIVER=wayland
export MOZ_ENABLE_WAYLAND=1
export WM=sway
export CLUTTER_BACKEND=wayland
export BEMENU_BACKEND=wayland
exec dbus-launch --sh-syntax --exit-with-session sway
 

tuxador

Active Member

Reaction score: 57
Messages: 134

cat ./startsway
Code:
#!/usr/local/bin/zsh
export XDG_RUNTIME_DIR=/home/x/TMP
export XDG_SESSION_TYPE=wayland
export XKB_DEFAULT_LAYOUT="be(nodeadkeys)"
export XKB_DEFAULT_RULES=evdev
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export SDL_VIDEODRIVER=wayland
export MOZ_ENABLE_WAYLAND=1
export WM=sway
export CLUTTER_BACKEND=wayland
export BEMENU_BACKEND=wayland
exec dbus-launch --sh-syntax --exit-with-session sway
thank you, i will give it a try after work.
I guess i have de remove sddm before .
 

kpedersen

Son of Beastie

Reaction score: 2,167
Messages: 3,006

Code:
export XDG_SESSION_TYPE=wayland
export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export MOZ_ENABLE_WAYLAND=1
export CLUTTER_BACKEND=wayland
export BEMENU_BACKEND=wayland

Wayland is not exactly new anymore. Is there any good reason why this has not been standardized yet?

Imagine if X11 didn't support a consistent DISPLAY env variable? It would be a mess (like this).
 

macbias

Member

Reaction score: 2
Messages: 60

You don't need anything from xorg. xwayland is used to run X clients in wayland sessions, but it can even be disabled when building from ports for 'pure wayland' installs. But that is if you didn't use any x client whatsoever, or had a wayland alternative. (I don't think we are at that point yet).
 
Top