Hi. Mutter is not ran separately. I am using gnome-shell (which uses /usr/lib/libmutter-0.so.0.0.0).
Mutter is a library that gnome-shell uses. I’m not running gnome-shell along with mutter.
1)install gjs from https://git.gnome.org/browse/gjs (master branch)
2) install mutter from https://git.gnome.org/browse/mutter/ (master branch). Run ‘NOCONFIGURE=1 ./autogen.sh’ and then ‘./configure --prefix=/usr --enable-egl-device’.
–enable-egl-device enable usage of egldevice (nvidia’s wayland mechanism).
3) install gnome-shell from https://git.gnome.org/gnome-shell.
make sure nvidia-drm is loaded with modeset=0
- Log onto an xorg session.
- ctrl+alt+f3 to tty and then ctrl+alt+f2 back to your gnome session.
- try hibernating and resuming.
- Press alt f2 on your keyboard and type ‘r’ in the ‘enter a command’ box. The press the return key. This reexecutes gnome-shell.
type dmesg in gnome-terminal and notice the Xid error.
- Recompile mutter without --enable-egl-device.
- log off and log back into gnome.
- The issue is gone.
To sum up, when mutter is compiled with --enable-egl-device, this issue happens on Xorg session.
When mutter is not compiled with --enable-egl-device, this issue does not happen on Xorg session.