La session gnome wayland ne s'ouvre plus

Tags: #<Tag:0x00007f63f11791f0> #<Tag:0x00007f63f1178f98> #<Tag:0x00007f63f1178e08>

Salut,
je ne peux plus ouvrir de session gnome wayland

Jan  3 11:34:48 debian sddm-helper[5500]: Starting: "/usr/share/sddm/scripts/wayland-session gnome-session"
Jan  3 11:34:49 debian systemd[5501]: Started D-Bus User Message Bus.
Jan  3 11:34:49 debian kernel: [  107.413721] [UFW BLOCK] IN=wlp3s0b1 OUT= MAC=01:00:5e:7f:ff:fa:00:25:15:72:0c:98:08:00 SRC=192.168.1.22 DST=239.255.255.250 LEN=32 TOS=0x10 PREC=0x80 TTL=1 ID=0 DF PROTO=2 
Jan  3 11:34:50 debian gnome-session[5517]: gnome-session-binary[5517]: WARNING: Could not parse desktop file xscreensaver.desktop or it references a not found TryExec binary
Jan  3 11:34:50 debian gnome-session-binary[5517]: WARNING: Could not parse desktop file xscreensaver.desktop or it references a not found TryExec binary
Jan  3 11:34:50 debian gnome-keyring-ssh.desktop[5546]: SSH_AUTH_SOCK=/run/user/1003/keyring/ssh
Jan  3 11:34:52 debian gnome-shell[5551]: Can't initialize KMS backend: could not find drm kms device
Jan  3 11:34:52 debian gnome-session[5517]: gnome-session-binary[5517]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan  3 11:34:52 debian gnome-session-binary[5517]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan  3 11:34:52 debian gnome-session-binary[5517]: Unrecoverable failure in required component org.gnome.Shell.desktop
Jan  3 11:34:52 debian sddm-greeter[5344]: The X11 connection broke: I/O error (code 1)

Une mise à jour a du casser l’environnement car fut un temps ça marchait

root@debian:/# apt list *wayland* -a | grep install

ibus-wayland/testing,now 1.5.17-1 amd64  [installé]
libva-wayland2/testing,unstable,now 2.0.0-2 amd64  [installé, automatique]
libwayland-client0/testing,unstable,now 1.14.0-1+b1 amd64  [installé, automatique]
libwayland-cursor0/testing,unstable,now 1.14.0-1+b1 amd64  [installé]
libwayland-egl1-mesa/testing,now 17.2.5-1 amd64  [installé, automatique]
libwayland-server0/testing,unstable,now 1.14.0-1+b1 amd64  [installé, automatique]
wayland-protocols/testing,testing,unstable,unstable,now 1.11-1 all  [installé]
xwayland/testing,unstable,now 2:1.19.5-1 amd64  [installé, automatique]
root@debian:/# 
root@debian:/# uname --all
Linux debian 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux
root@debian:/# 

debian:~$ gnome-shell --version
GNOME Shell 3.26.2
```

Ce qui est bizarre c'est que la session weston -wayland s'ouvre bien.
Mais je ne peux rien en faire il n'y a qu'une xterm

c'est bien le couple gnome-shell 3.26 + wayland qui veut plus jouer

Salut,

N’est-ce pas kms le nœud du problème ?

EDIT

Est-ce la version 3.26.2-2 du paquet gnome-shell ?

* Enable all hardening flags

EDIT 2

Dernier suspect : sddm. Le problème apparaît-il avec gdm ?

kms est ok

 cat /etc/initramfs-tools/modules
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
# KMS
drm
radeon modeset=1
debian kernel: [    2.136292] [drm] radeon kernel modesetting enabled.
debian kernel: [    2.150652] [drm] initializing kernel modesetting (RS880 0x1002:0x9712 0x103C:0x1443 0x00).

et j’ai bien les modules

root@debian:/etc/modprobe.d# lsmod | grep radeon
radeon               1474560  13
i2c_algo_bit           16384  1 radeon
ttm                    98304  1 radeon
drm_kms_helper        163840  1 radeon
drm                   376832  7 radeon,ttm,drm_kms_helper
root@debian:/etc/modprobe.d# lsmod | grep drm
drm_kms_helper        163840  1 radeon
drm                   376832  7 radeon,ttm,drm_kms_helper
 apt list gnome-shell
En train de lister... Fait
gnome-shell/testing,unstable,now 3.26.2-2 amd64  [installé]

c’est idem avec gdm

En fait j’utilise sddm et gnome-shell/xorg donc c’est pas bloquant et comme j’utilise très peu wayland je ne sais pas depuis quand ça ne marche plus

le bug est surement celui-la
an 3 11:34:52 debian gnome-session-binary[5517]: Unrecoverable failure in required component org.gnome.Shell.desktop

mais où?

il y a deux choix possible pour la carte graphique

lspci -nnk | grep -A2 VGA
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250] [1002:9712]
	Subsystem: Hewlett-Packard Company RS880M [Mobility Radeon HD 4225/4250] [103c:1443]
	Kernel driver in use: radeon
--
02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470] [1002:68e0]
	Subsystem: Hewlett-Packard Company Park [Mobility Radeon HD 5430/5450/5470] [103c:1443]
	Kernel driver in use: radeon
```

je voudrais n'utiliser que la deuxième 02:00.0 , comment faire pour blacklister facilement 01:05.0 ?

Est-ce que vga_switcheroo peut aider ?

D’après ce que je comprends c’est un systeme de bascule après le démarrage
https://01.org/linuxgraphics/gfx-docs/drm/gpu/vga-switcheroo.html
lè je vois que c’est la gpu 01:05.0 qui est en fonction

sudo cat /sys/kernel/debug/vgaswitcheroo/switch
0:IGD:+:Pwr:0000:01:05.0
1:DIS: :DynPwr:0000:02:00.0

ce que je voulais essayer c’est de tromper le noyau pour qu’il se comporte comme si un seul équipement existait

je vais voir du coté de https://packages.debian.org/buster/acpi-call-dkms
il y a un exemple qui m’interesse /usr/share/doc/acpi-call-dkms/examples/turn_off_gpu.sh

donc quand je lance

root@debian:/usr/share/doc/acpi-call-dkms/examples# ./turn_off_gpu.sh

il me fait plein de failed et un

Trying \_SB.PCI0.AGP.VGA.PX02: ./turn_off_gpu.sh: ligne 39: avertissement :command substitution: ignored null byte in input
works!

ce qui a change le résultat de lspci

 lspci | grep VGA
01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS880M [Mobility Radeon HD 4225/4250]
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470] (rev ff)

rev ff voulant dire desactivée? selon https://garyservin.wordpress.com/2012/01/06/disabling-discrete-gpu-in-debian-gnulinux-wheezy/

a suivre
Vendredi 5 janvier:
Même dans ces conditions avec il seul gpu, wayland ne s’ouvre pas, je vais attendre les prochaines m-a-j de gnome-shell et xwayland

A chaque fois que je vois passer des mise à jour gnome-shell ou wayland, je retente ma chance mais pas moyen, la session wayland ne veut pas jouer.
Même Ubuntu considère que ce n’est pas mature et revient à Xorg par défaut