Outils pour utilisateurs

Outils du site


tech:notes_wayland

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:notes_wayland [2025/11/09 19:17] Jean-Baptistetech:notes_wayland [2026/05/29 18:22] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon X11}}
 +
 +# Notes Wayland
 +
 +Voir : 
 +* slurp
 +* X11
 +* PipeWire
 +* seat & seatd
 +* https://linuxfr.org/users/tarnyko/journaux/wayland-l-obsession-eternelle-du-carre-blanc
 +* https://gambaswiki.org/edit/doc/wayland
 +
 +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`
 +~~~ini
 +[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
 +
 +~~~bash
 +xhost +si:localuser:root
 +~~~
 +
 +`~/.bashrc`
 +~~~bash
 +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
 +
 +~~~bash
 +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)
 +~~~bash
 +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
 +
 +~~~bash
 +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
 +
 +~~~bash
 +mv /usr/lib/kitty/kitty/glfw-wayland.so{,.orig}
 +~~~
 +
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki