+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 4917 G /usr/bin/gnome-shell 194MiB |
| 0 N/A N/A 5143 G /usr/bin/Xwayland 97MiB |
| 0 N/A N/A 5817 G /usr/libexec/xdg-desktop-portal-gnome 5MiB |
| 0 N/A N/A 7942 G ...seed-version=20240623-180253.409000 89MiB |
+---------------------------------------------------------------------------------------+
The common aspect of the FLTK cube application and my viewer, is that they have two embedded OpenGL windows within the main Window.
The FLTK cube application works fine under X11 or XWayland.
Under Wayland, the application does not show up the main window (only the cogwheel icon shows on the dockbar). And, as such, it hangs on the main loop (waiting for the window to show).
Another FLTK application that opens just a single OpenGL window also works fine under Wayland.
My application, on the other hand, shows up the window properly, but off-screen textures are not created as it seems the proper GL context is not created. However, the information about GL setup is all messed up. It reports:
Monitors: 2 # This is broken -- I have only one monitor # (shows incorrectly under XWayland and Wayland)
Vendor: Unknown # This should be NVidia
Renderer: Unknown # Same here
Version: Unknown # Should be
Max. Texture Size:28968 x 28968 # Resolution should be 32768x32768 on
This is a fresh install taken from the official download of Ubuntu 24.04.4 LTS, not an upgrade from 22.04.4 LTS which broke everything.
First, I removed the unofficial ppa graphics repository with Software and Update graphically.
Then I did:
$ sudo bash egl-wayland1
# apt --purge remove nvidia-driver-555
# apt install nvidia-driver-535
# apt install libnvidia-
# reboot
I think you are right, the NVidia drivers are now no longer installed properly (the 555 drivers I was using were installed fine).
$ eglgears_wayland shows up, but stutters with the 535 drivers.
$ eglinfo reports it is using Mesa.
However, if I check:
$ nvidia-smi ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ------- ------- ------- ------- ------- +------ ------- ------- --+---- ------- ------- ----+ ======= ======= ======= ======= ======= +====== ======= ======= ==+==== ======= ======= ====| ------- ------- ------- ------- ------- +------ ------- ------- --+---- ------- ------- ----+
Mon Jun 24 04:20:02 2024
+------
| NVIDIA-SMI 535.171.04 Driver Version: 535.171.04 CUDA Version: 12.2 |
|------
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|======
| 0 NVIDIA GeForce RTX 3080 Off | 00000000:09:00.0 On | N/A |
| 0% 42C P8 29W / 370W | 409MiB / 10240MiB | 0% Default |
| | | N/A |
+------
+------ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ====| gnome-shell 194MiB | xdg-desktop- portal- gnome 5MiB | version= 20240623- 180253. 409000 89MiB | ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|======
| 0 N/A N/A 4917 G /usr/bin/
| 0 N/A N/A 5143 G /usr/bin/Xwayland 97MiB |
| 0 N/A N/A 5817 G /usr/libexec/
| 0 N/A N/A 7942 G ...seed-
+------
The common aspect of the FLTK cube application and my viewer, is that they have two embedded OpenGL windows within the main Window.
The FLTK cube application works fine under X11 or XWayland.
Under Wayland, the application does not show up the main window (only the cogwheel icon shows on the dockbar). And, as such, it hangs on the main loop (waiting for the window to show).
Another FLTK application that opens just a single OpenGL window also works fine under Wayland.
My application, on the other hand, shows up the window properly, but off-screen textures are not created as it seems the proper GL context is not created. However, the information about GL setup is all messed up. It reports:
Monitors: 2 # This is broken -- I have only one monitor
# (shows incorrectly under XWayland and Wayland)
Vendor: Unknown # This should be NVidia
Renderer: Unknown # Same here
Version: Unknown # Should be
Max. Texture Size:28968 x 28968 # Resolution should be 32768x32768 on
EGL client apis:OpenGL_ES OpenGL EGL_EXT_ platform_ base EGL_EXT_device_base EGL_EXT_ device_ enumeration EGL_EXT_ device_ query EGL_KHR_ client_ get_all_ proc_addresses EGL_EXT_ client_ extensions EGL_KHR_debug EGL_KHR_ platform_ x11 EGL_EXT_ platform_ x11 EGL_EXT_ platform_ device EGL_MESA_ platform_ surfaceless EGL_EXT_ explicit_ device EGL_KHR_ platform_ wayland EGL_EXT_ platform_ wayland EGL_KHR_ platform_ gbm EGL_MESA_ platform_ gbm EGL_EXT_ platform_ xcb create_ context_ robustness EGL_EXT_ image_dma_ buf_import EGL_EXT_ image_dma_ buf_import_ modifiers EGL_MESA_ image_dma_ buf_export EGL_EXT_output_base EGL_EXT_output_drm EGL_EXT_ protected_ content EGL_EXT_ stream_ consumer_ egloutput EGL_EXT_ stream_ acquire_ mode EGL_EXT_sync_reuse EGL_IMG_ context_ priority EGL_KHR_ config_ attribs EGL_KHR_ create_ context_ no_error EGL_KHR_ context_ flush_control EGL_KHR_ create_ context EGL_KHR_fence_sync EGL_KHR_ get_all_ proc_addresses EGL_KHR_ partial_ update EGL_KHR_ swap_buffers_ with_damage EGL_KHR_ no_config_ context EGL_KHR_ gl_colorspace EGL_KHR_ gl_renderbuffer _image EGL_KHR_ gl_texture_ 2D_image EGL_KHR_ gl_texture_ 3D_image EGL_KHR_ gl_texture_ cubemap_ image EGL_KHR_image EGL_KHR_image_base EGL_KHR_ reusable_ sync EGL_KHR_stream EGL_KHR_ stream_ attrib EGL_KHR_ stream_ consumer_ gltexture EGL_KHR_ stream_ cross_process_ fd EGL_KHR_stream_fifo EGL_KHR_ stream_ producer_ eglsurface EGL_KHR_ surfaceless_ context EGL_KHR_wait_sync EGL_NV_ nvrm_fence_ sync EGL_NV_ quadruple_ buffer EGL_NV_ stream_ consumer_ eglimage EGL_NV_ stream_ cross_display EGL_NV_ stream_ cross_object EGL_NV_ stream_ cross_process EGL_NV_ stream_ cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_ stream_ metadata EGL_NV_ stream_ remote EGL_NV_stream_reset EGL_NV_ stream_ socket EGL_NV_ stream_ socket_ inet EGL_NV_ stream_ socket_ unix EGL_NV_stream_sync EGL_NV_ stream_ fifo_next EGL_NV_ stream_ fifo_synchronou s EGL_NV_ stream_ consumer_ gltexture_ yuv EGL_NV_ stream_ attrib EGL_NV_ stream_ origin EGL_NV_system_time EGL_NV_ output_ drm_flip_ event EGL_NV_ triple_ buffer EGL_NV_ robustness_ video_memory_ purge EGL_EXT_ present_ opaque EGL_WL_ bind_wayland_ display EGL_WL_ wayland_ eglstream
EGL version:1.5
EGL vendor: NVIDIA
No display extensions:
Extensions: EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_
HW Stereo: Yes # This is also broken. I don't have HW Stereo support
HW Overlay: No