openSUSE / SUSEPrime

Provide nvidia-prime like package for openSUSE
64 stars 11 forks source link

Prime select - unable to start MATE and xfce desktops with prime-select nvidia mode. #86

Open griha41 opened 1 year ago

griha41 commented 1 year ago

Greeting I'm using laptop Asus N73S. When I'm switching prime select to intel mode - every desktop works like a charm, but when I switch to nvidia mode, Gnome 2 (Mate, Cinnamon), xfce Desktop environments unable to load the desktop. Showed only desktop background and nothing else. Noway to start any application, no desktop menus just black screen only the one way through tty login, switch to intel card and kill X11 with CTRL+Alt+Backspace then you'll able to login with Mate desktop or any else DE. Also I didn't found any issues (with prime-select) with KDE Plasma DE.

Current Hardware configuration: CPU: 4x Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz nVidia card: NVIDIA Corporation GF108M [GeForce GT 540M] Intel card: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

Software: OpenGL Renderer: Mesa DRI Intel(R) HD Graphics 3000 (SNB GT2) [because I'm on the mate desktp] OS: openSUSE Leap 15.4 (x64) Kernel: Linux 5.14.21-150400.24.21-default (x86_64)

nVidia driver from repository: https://download.nvidia.com/opensuse/leap/15.4 Current nVidia pkgs: kernel-firmware-nvidia | 20220509-150400.4.8.1 libdrm_nouveau2 | 2.4.107-150400.1.8 libdrm_nouveau2-32bit | 2.4.107-150400.1.8 nvdock | 1.02-bp154.2.52 nvidia-computeG04 | 390.154-lp154.16.1 nvidia-computeG04-32bit | 390.154-lp154.16.1 nvidia-gfxG04-kmp-default | 390.154_k5.14.21_150400.22-lp154.16.1 nvidia-glG04 | 390.154-lp154.16.1 nvidia-glG04-32bit | 390.154-lp154.16.1 suse-prime | 0.8.6-150400.1.4 x11-video-nvidiaG04 | 390.154-lp154.16.1 x11-video-nvidiaG04-32bit | 390.154-lp154.16.1 xf86-video-nouveau | 1.0.15-5.26

If it's required additional information/logs/outputs please let me know.

With my regards.

sndirsch commented 1 year ago

So on KDE Plasma things are working in nvidia mode? Could you add output of 'glxinfo -B', please? Thanks!

griha41 commented 1 year ago

Here outputs of "glxinfo -B":

  1. MATE DE, (intel mode) name of display: :0.0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Intel Open Source Technology Center (0x8086) Device: Mesa DRI Intel(R) HD Graphics 3000 (SNB GT2) (0x116) Version: 21.2.4 Accelerated: yes Video memory: 1536MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 3.3 Max compat profile version: 3.0 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.0 OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 3000 (SNB GT2) OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.2.4 OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 21.2.4 OpenGL shading language version string: 1.30 OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.2.4 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

  1. KDE Plasma DE, (intel mode): name of display: :0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: Intel Open Source Technology Center (0x8086) Device: Mesa DRI Intel(R) HD Graphics 3000 (SNB GT2) (0x116) Version: 21.2.4 Accelerated: yes Video memory: 1536MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 3.3 Max compat profile version: 3.0 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.0 OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 3000 (SNB GT2) OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.2.4 OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile

OpenGL version string: 3.0 Mesa 21.2.4 OpenGL shading language version string: 1.30 OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.2.4 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

  1. KDE Plasma DE, (nvidia mode): name of display: :0 display: :0 screen: 0 direct rendering: Yes OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce GT 540M/PCIe/SSE2 OpenGL core profile version string: 4.5.0 NVIDIA 390.154 OpenGL core profile shading language version string: 4.50 NVIDIA OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 390.154 OpenGL shading language version string: 4.60 NVIDIA OpenGL context flags: (none) OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 390.154 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

As I written before on plasma no troubles at all, but xfce, Cinnamon and Mate DEs has troubles at start with prime-select setted to nvidia and not a single trouble if you switch back to intel.

sndirsch commented 1 year ago

glxinfo output in nvidia mode on KDE Plasma looks good. I don't know why xfce and others cannot cope with it. :-(

griha41 commented 1 year ago

Same here. Such amazing situation I'd first time met under Leap 15.2. and while KDE works well I had no need to change DE. But now I met situation around Plasma memory stuff (plasmashell eating in progression memory since DE was not active last 10 - 15 minutes). So that's why I placed here the issue.

sndirsch commented 1 year ago

Meanwhile G04 driver has been updated from 390.154 to 390.157. I think it would be worth a try to test it again. Our G04 packages have been updated.