This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Bumblebee & Desktop Effects

Tags: None
(comma "," separated)
rsd
Registered Member
Posts
12
Karma
0

Bumblebee & Desktop Effects

Sat Nov 16, 2013 9:24 pm
Hello,

I have created a xsession entry for kde with bumblebee like:
Code: Select all
optirun startkde


This makes kde starts with Nvidia GL* stuff as default. I don't have to call optirun.

It works fine on every gl app I tried: games, glxgears, firefox, chrome (webgl) and so far. with great performance.

The only place I can't get it to work is with KDE Desktop.

Desktop Effects only accepts XRender backend. No OpenGL versio works.

Is there any caveat to get it to work?
(or what info do I need to provide)

nvidia drivers 331
bumblebee 3.2.1
kde 4.11.2 (kubuntu 13.10)
luebking
Karma
0

Re: Bumblebee & Desktop Effects

Sun Nov 17, 2013 12:23 am
The gl lib preload will likely not apply to kwin (through ksmserver through startkde...)

Try "optirun kwin --replace" to check whether this works in general.

If yes, try
export KDEWM="optirun kwin"
startkde

in your session script
rsd
Registered Member
Posts
12
Karma
0

Re: Bumblebee & Desktop Effects

Wed Nov 20, 2013 1:48 am
luebking wrote:The gl lib preload will likely not apply to kwin (through ksmserver through startkde...)

Try "optirun kwin --replace" to check whether this works in general.

If yes, try
export KDEWM="optirun kwin"
startkde

in your session script


Didn't work :(

Note that kwin runs happily over native nvidia.
I notice that there are a few different extensions when running under bumblebee:

Code: Select all
--- glxinfo.nvidia-331  2013-11-18 13:13:42.822702021 -0200
+++ glxinfo.bumblebee.primus    2013-11-19 23:44:34.358779426 -0200
@@ -1,5 +1,5 @@
-name of display: :8
-display: :8  screen: 0
+name of display: :0
+display: :0  screen: 0
 direct rendering: Yes
 server glx vendor string: NVIDIA Corporation
 server glx version string: 1.4
@@ -12,30 +12,15 @@
     GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
     GLX_NV_float_buffer, GLX_NV_multisample_coverage, GLX_SGIX_fbconfig,
     GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync
-client glx vendor string: NVIDIA Corporation
+client glx vendor string: primus
 client glx version string: 1.4
 client glx extensions:
     GLX_ARB_create_context, GLX_ARB_create_context_profile,
-    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
-    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age,
-    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
-    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
-    GLX_EXT_import_context, GLX_EXT_swap_control, GLX_EXT_swap_control_tear,
-    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
-    GLX_NV_copy_image, GLX_NV_float_buffer, GLX_NV_multisample_coverage,
-    GLX_NV_present_video, GLX_NV_swap_group, GLX_NV_video_capture,
-    GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
-    GLX_SGI_swap_control, GLX_SGI_video_sync
+    GLX_ARB_get_proc_address
 GLX version: 1.4
 GLX extensions:
     GLX_ARB_create_context, GLX_ARB_create_context_profile,
-    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
-    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age,
-    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
-    GLX_EXT_framebuffer_sRGB, GLX_EXT_swap_control, GLX_EXT_swap_control_tear,
-    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
-    GLX_NV_float_buffer, GLX_NV_multisample_coverage, GLX_SGIX_fbconfig,
-    GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync
+    GLX_ARB_get_proc_address
 OpenGL vendor string: NVIDIA Corporation
 OpenGL renderer string: GeForce GT 540M/PCIe/SSE2
 OpenGL core profile version string: 4.3.0 NVIDIA 331.20


Is it possible that kwin is looking for specific extensions?
luebking
Karma
0

Re: Bumblebee & Desktop Effects

Wed Nov 20, 2013 2:31 am
- GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is this completely absent from optirun glxinfo?
rsd
Registered Member
Posts
12
Karma
0

Re: Bumblebee & Desktop Effects

Wed Nov 20, 2013 2:26 pm
luebking wrote:- GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is this completely absent from optirun glxinfo?


Here are the complete glxinfos:
The primus (in use one): http://pastebin.com/uHghgi7b
nvidia (direct :8, no bumblebee ) glxinfo: http://pastebin.com/jqAuajr4
virtualgl bridge (bumblebee alternative) glxinfo: http://pastebin.com/kRbRbx2g

-rsd
luebking
Karma
0

Re: Bumblebee & Desktop Effects

Wed Nov 20, 2013 8:58 pm
Ok, nvidia has texture_from_pixmap (surprise ;-), bumblebee has the extension only in the server and virtualgl doesn't have it at all.
That's not gonna work.

Also see https://bugs.kde.org/show_bug.cgi?id=323134


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar