{{tag>Brouillon X11}}
= Notes Wayland
Voir :
* slurp
* X11
* PipeWire
* seat & seatd
* https://linuxfr.org/users/tarnyko/journaux/wayland-l-obsession-eternelle-du-carre-blanc
Voir aussi :
* Sway WM (Windows Manager)
* https://linuxfr.org/news/lxqt-2-2-0
* hyprland
== Désactiver Wayland et repasser à Xorg
''/etc/gdm3/daemon.conf''
[daemon]
WaylandEnable=false
[debug]
# Uncomment the line below to turn on debugging
#Enable=true
== Suis-je sous Xorg X11 ou sous Wayland
$ echo $XDG_SESSION_TYPE
x11
$ echo $XDG_SESSION_TYPE
wayland
# Xorg ou Xwayland ?
$ ps -e |grep X
1467 tty7 3-00:41:28 Xorg
jean@debian10:~$ loginctl
SESSION UID USER SEAT TTY
1 1000 jibe seat0
1 sessions listed.
jibe@debian10:~$ loginctl show-session 1
Id=1
User=1000
Name=jean
Timestamp=Wed 2019-12-18 15:33:31 CET
TimestampMonotonic=17592338
VTNr=7
Seat=seat0
Display=:0
Remote=no
Service=sddm-autologin
Scope=session-1.scope
Leader=589
Audit=1
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no
ou
$ loginctl
SESSION UID USER SEAT TTY STATE IDLE SINCE
1 1000 management - pts/1 active yes 2 weeks 1 day ago
1 sessions listed.
$ loginctl show-session 1 -p Type
Type=tty
$ echo $XDG_RUNTIME_DIR
/run/user/1000/
== Faire fonctionner Synaptic en root
xhost +si:localuser:root
''~/.bashrc''
alias synaptic="xhost +si:localuser:root ; sudo /usr/sbin/synaptic ; xhost -si:localuser:root"
== VNC
==== WayPipe
Le déport d'affichage X11 de ssh fonctionne sous Wayland comme auparavant pour les applications X11. Les applications Wayland natives ne fonctionnent pas en déport d'affichage.
Voir https://linuxfr.org/users/tarnyko/journaux/waypipe-affichage-distant-natif-pour-wayland
Concrètement, c’est aussi simple que de lancer ''waypipe ssh user@192.168.1.20 xterm'' entre deux machines équipées du binaire waypipe dans leur $PATH
waypipe ssh user@192.168.1.20 xterm
==== gnome-remote-desktop
Voir :
* https://wiki.gnome.org/Projects/Mutter/RemoteDesktop
* https://www.linuxtricks.fr/wiki/activer-le-bureau-distant-gnome-via-vnc
Install de Gnome Remote Desktop (dépend de PipeWire)
apt-get install gnome-remote-desktop
Enabling
Open Settings, select Sharing, and enable Screen sharing. This should automatically enable the service and you should immediately be able to connect via VNC.
== Autres
MOZ_ENABLE_WAYLAND=1 firefox
sudo flatpak override --socket=wayland org.mozilla.firefox
sudo flatpak override --env MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox
Voir https://linuxfr.org/users/antistress/journaux/parametrer-wayland-et-webrender-pour-firefox-sur-ma-distrib
== Pb
=== Err
$ kitty
[066 14:06:15.666193] [glfw error 65544]: Wayland: Failed to connect to display
==== Solution
https://github.com/glfw/glfw/issues/1390
mv /usr/lib/kitty/kitty/glfw-wayland.so{,.orig}