fedora 41 i can’t open gnome app(such as gnome-control-center) in wayland except use GDK_BACKEND=x11 gnome-control-center
In 555 ,i can see my T400 card,but in 560 i can’t see it ,the performance in dota2 is normal
zhanshime@fedora:~$ gnome-control-center
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
System Details Report
Report details
Date generated: 2024-08-07 16:59:33
Hardware Information:
Hardware Model: HP HP Pro Tower ZHAN 99 G9 Desktop PC
Memory: 16.0 GiB
Processor: 12th Gen Intel® Core™ i5-12500 × 12
Graphics: Intel® UHD Graphics 770 (ADL-S GT1)
Graphics 1: Intel® UHD Graphics 770 (ADL-S GT1)
Disk Capacity: 2.3 TB
Software Information:
Firmware Version: F.13
OS Name: Fedora Linux 41 (Workstation Edition Prerelease)
OS Build: (null)
OS Type: 64-bit
GNOME Version: 47
Windowing System: X11
Kernel Version: Linux 6.11.0-0.rc2.23.fc41.x86_64
nvidia-bug-report.log.gz (1.0 MB)
Selinux is blocking nvidia-modprobe
8月 07 16:25:30 fedora audit[1525]: AVC avc: denied { create } for pid=1525 comm="nvidia-modprobe" name="195:255" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=lnk_file permissive=0
Fix the selinux issue, it’s probably best to enable permissive mode for rawhide.
And adding these options should also help.
sudo grubby --upadte-kernel=ALL --args='nvidia-drm.modeset=1 nvidia-drm.fbdev=1'
the permissive mode can’t solve the problem
zhanshime@fedora:~$ sudo grubby --upadte-kernel=ALL --args=‘nvidia-drm.modeset=1 nvidia-drm.fbdev=1’
grubby: 未识别的选项 “–upadte-kernel=ALL”
zhanshime@fedora:~$ GDK_BACKEND=x11 gnome-control-center
src/nv_gbm.c:300: GBM-DRV error (nv_gbm_create_device_native): nv_common_gbm_create_device failed (ret=-1)
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
zhanshime@fedora:~$ gnome-tweaks
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
Gdk-Message: 08:46:12.385: Error 71 (协议错误) dispatching to Wayland display.
zhanshime@fedora:~$ gnome-control-center
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: …/src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
zhanshime@fedora:~$
nvidia-bug-report.log.gz (1.0 MB)
the right command is sudo grubby --update-kernel=ALL --args=‘nvidia-drm.modeset=1 nvidia-drm.fbdev=1’
after i run this ,i can’t boot to gnome gui,so i run the nvidia bug report sh,and uninstall nvidia driver
nvidia-bug-report.log.gz (1.0 MB)
gdm is crashing
[ 22.759645] traps: gdm[1381] trap int3 ip:7fc07669a0e8 sp:7ffdb8805720 error:0 in libglib-2.0.so.0.8101.0[460e8,7fc076654000+a6000]
You can try loading nvidia early by adding it to initramfs
sudo dracut -fvv --add-drivers " nvidia nvidia-drm nvidia-modeset nvidia-uvm "
If you change nvidia driver version, you will need to run the command again to purge the old version from initramfs.
You can reverse the kernel options by running
sudo grubby --upadte-kernel=ALL --remove-args='nvidia-drm.modeset=1 nvidia-drm.fbdev=1'
i find the problem of sudo grubby --update-kernel=ALL --args=‘nvidia-drm.modeset=1 nvidia-drm.fbdev=1’,your reply(wow) on Fedora 40: Nvidia driver running at random boots with kernel 6.8.9-300.fc40.x86_64, with 6.8.10 or 6.8.11 it doesn’t run at all - Fedora Discussion
But i still have the problem “Unable to open Gnome native applications using Wayland + Nvidia”,can you track it,thank you
opened 04:03PM - 19 Feb 23 UTC
# Issue description
In a Fedora 37 fresh installed + Gnome + Wayland + [RPMFu… sion NVidia](https://rpmfusion.org/Howto/NVIDIA), any native gnome application return this error:
```
$ LANG=C gnome-control-center
Gdk-Message: 12:41:50.763: Error 71 (Protocol error) dispatching to Wayland display.
```
Workarround provided at https://github.com/NVIDIA/egl-wayland/issues/41#issuecomment-930576969 works with a warning:
```
$ __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json LANG=C gnome-control-center
libEGL warning: egl: failed to create dri2 screen
$
```
At journalctl of session, there is a log of backtraces like the following:
```
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) glamor0: GL error: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
fev 19 12:39:38 miriam gnome-shell[3243]: (EE)
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) Backtrace:
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 0: /usr/bin/Xwayland (0x55f0bef56000+0x16b992) [0x55f0bf0c1992]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 1: /lib64/libnvidia-eglcore.so.525.89.02 (0x7f74f8800000+0x1107097) [0x7f74f9907097]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 2: /lib64/libnvidia-eglcore.so.525.89.02 (0x7f74f8800000+0x1107213) [0x7f74f9907213]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 3: /lib64/libnvidia-eglcore.so.525.89.02 (0x7f74f8800000+0x11073fa) [0x7f74f99073fa]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 4: /lib64/libnvidia-eglcore.so.525.89.02 (0x7f74f8800000+0x11ede6a) [0x7f74f99ede6a]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 5: /usr/bin/Xwayland (0x55f0bef56000+0x4eb3d) [0x55f0befa4b3d]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 6: /usr/bin/Xwayland (0x55f0bef56000+0x4f8db) [0x55f0befa58db]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 7: /usr/bin/Xwayland (0x55f0bef56000+0x17f7e4) [0x55f0bf0d57e4]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 8: /usr/bin/Xwayland (0x55f0bef56000+0x17fabe) [0x55f0bf0d5abe]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 9: /usr/bin/Xwayland (0x55f0bef56000+0xab6e8) [0x55f0bf0016e8]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 10: /usr/bin/Xwayland (0x55f0bef56000+0x38c39) [0x55f0bef8ec39]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 11: /lib64/libc.so.6 (0x7f74fc36c000+0x27510) [0x7f74fc393510]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 12: /lib64/libc.so.6 (__libc_start_main+0x89) [0x7f74fc3935c9]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE) 13: /usr/bin/Xwayland (0x55f0bef56000+0x3a465) [0x55f0bef90465]
fev 19 12:39:38 miriam gnome-shell[3243]: (EE)
fev 19 12:39:38 miriam gnome-shell[3243]: XXX fail to create fbo.
```
I'm attaching my [journalctl --boot=0](https://github.com/NVIDIA/egl-wayland/files/10777332/egl-wayland.journalctl.txt) log for complete issue investigation since boot.
EDIT: Also attaching [nvidia-bug-report.log.gz](https://github.com/NVIDIA/egl-wayland/files/10777613/nvidia-bug-report.log.gz) as stated on RPMFusion NVIDIA page.
# Environment
## Screenfetch
```
/:-------------:\ leonardo@miriam
:-------------------:: OS: Fedora
:-----------/shhOHbmp---:\ Kernel: x86_64 Linux 6.1.11-200.fc37.x86_64
/-----------omMMMNNNMMD ---: Uptime: 1h 1m
:-----------sMMMMNMNMP. ---: Packages: 1922
:-----------:MMMdP------- ---\ Shell: bash
,------------:MMMd-------- ---: Resolution: No X Server
:------------:MMMd------- .---: DE: GNOME 43.2
:---- oNMMMMMMMMMNho .----: WM: Not Found
:-- .+shhhMMMmhhy++ .------/ GTK Theme: Adwaita [GTK2/3]
:- -------:MMMd--------------: Icon Theme: Adwaita
:- --------/MMMd-------------; Font: Cantarell 11
:- ------/hMMMy------------: Disk: 238G / 1,1P (1%)
:-- :dMNdhhdNMMNo------------; CPU: Intel Core i7-7820X @ 16x 4.3GHz [37.0°C]
:---:sdNMMMMNds:------------: GPU: NVIDIA GeForce GT 1030, NVIDIA GeForce RTX 2060
:------:://:-------------:: RAM: 4007MiB / 31784MiB
:---------------------://
```
## Versions:
```
# rpm -qa | egrep -i '(nvidia|egl)'
libwayland-egl-1.21.0-1.fc37.x86_64
libglvnd-egl-1.5.0-1.fc37.x86_64
gegl04-0.4.38-1.fc37.x86_64
xorg-x11-drv-nvidia-cuda-libs-525.89.02-1.fc37.x86_64
xorg-x11-drv-nvidia-kmodsrc-525.89.02-1.fc37.x86_64
nvidia-persistenced-525.89.02-1.fc37.x86_64
egl-wayland-1.1.11-1.fc37.x86_64
egl-gbm-1.1.0-3.fc37.x86_64
xorg-x11-drv-nvidia-libs-525.89.02-1.fc37.x86_64
akmod-nvidia-525.89.02-1.fc37.x86_64
kmod-nvidia-6.1.11-200.fc37.x86_64-525.89.02-1.fc37.x86_64
mesa-libEGL-22.3.5-1.fc37.x86_64
qemu-ui-egl-headless-7.0.0-13.fc37.x86_64
xorg-x11-drv-nvidia-power-525.89.02-1.fc37.x86_64
xorg-x11-drv-nvidia-525.89.02-1.fc37.x86_64
nvidia-settings-525.89.02-1.fc37.x86_64
xorg-x11-drv-nvidia-cuda-525.89.02-1.fc37.x86_64
nvidia-gpu-firmware-20230210-147.fc37.noarch
```
```
# uname -a
Linux miriam 6.1.11-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 9 19:20:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
```
```
# cat /etc/*release
Fedora release 37 (Thirty Seven)
NAME="Fedora Linux"
VERSION="37 (Workstation Edition)"
ID=fedora
VERSION_ID=37
VERSION_CODENAME=""
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora Linux 37 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f37/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=37
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=37
SUPPORT_END=2023-11-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Fedora release 37 (Thirty Seven)
Fedora release 37 (Thirty Seven)
#
```
Maybe this will help
Gdk-Message: Error 71 (Protocol error) dispatching to Wayland display - Fedora Discussion
i found the solution
adding GSK_RENDERER=gl to /etc/environment
https://bbs.archlinux.org/viewtopic.php?id=294177