Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE openGL compositor with nvidia drivers crashes Kwin
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Mon May 24, 2021 10:38 pm    Post subject: KDE openGL compositor with nvidia drivers crashes Kwin Reply with quote

can anyone help me get the kde compositor openGL mode working with the nvidia drivers.

it works fine with xrender, but that doesn't support blur effects, which makes transparent windows difficult to use.

i have verified that openGL is working with glxinfo.

when trying to switch to openGL, Kwin crashes

any help is appreciated

edit: here is the crash dump from Kwin
Code:

Application: KWin (kwin_x11), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f55de599816 in KConfigBase::group(char const*) () from /usr/lib64/libKF5ConfigCore.so.5
#5  0x00007f55dcf0ccc3 in ?? () from /usr/lib64/libkwin4_effect_builtins.so.1
#6  0x00007f55dcf0d3f7 in ?? () from /usr/lib64/libkwin4_effect_builtins.so.1
#7  0x00007f55dcea67a7 in ?? () from /usr/lib64/libkwin4_effect_builtins.so.1
#8  0x00007f55de78feff in ?? () from /usr/lib64/libkwin.so.5
#9  0x00007f55de794ea7 in ?? () from /usr/lib64/libkwin.so.5
#10 0x00007f55dd55a46a in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#11 0x00007f55ddf6415f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#12 0x00007f55dd5332e8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#13 0x00007f55dd535f6a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#14 0x00007f55dd57b6c1 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#15 0x00007f55d7b68bee in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#16 0x00007f55dd531d93 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#17 0x00007f55dd539730 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#18 0x0000557d47137fa9 in ?? ()
#19 0x00007f55dcf707fd in __libc_start_main () from /lib64/libc.so.6
#20 0x0000557d471384aa in _start ()
[Inferior 1 (process 16842) detached]
Back to top
View user's profile Send private message
Sheridan2021
n00b
n00b


Joined: 19 May 2021
Posts: 2
Location: Alchevsk

PostPosted: Fri May 28, 2021 12:45 pm    Post subject: Reply with quote

For me, too, the problem is that kde-frameworks was updated in the stable branch, kde-plasma remained 5.20.5, so the kwin_x11 composer remained old, the conflict between kde-frameworks and kwin_x11 5.20.5, this problem is not in the test branch.
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 263

PostPosted: Fri May 28, 2021 5:23 pm    Post subject: Reply with quote

I know this doesn't help, but OpenGL works for me, and I'm using the nvidia drivers.
I'm on stable
mesa-21.0.3
kde-frameworks/plasma-5.80.0
plasma-meta-5.20.5
kwin-5.20.5-r1
And I have OpenGL 3.1 selected in the kde settings.

I do vaguely recall having this problem a couple years ago. Make sure you've read through https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Fri May 28, 2021 11:54 pm    Post subject: Reply with quote

Shadow_Fury,

Does your machine only have an NVIDIA GPU, or does it have NVIDIA Optimus hardware? What model is it?

Perhaps a specific Desktop Effect is causing the problem. What happens if you disable all Desktop Effects and then switch the rendering backend to OpenGL 2.0?

What happens if you disable all Desktop Effects and then switch the rendering backend to OpenGL 3.1?

What is the output of the command 'glxinfo | grep render'?

Are there any error messages in /var/log/Xorg.0.log and/or /var/log/messages?

Also, in case it helps, the installation on my machine (which has Optimus hardware) is listed below for you to compare with the output on yours:

Code:
$ grep nvidia /var/log/Xorg.0.log
[    80.726] (II) Applying OutputClass "nvidia" to /dev/dri/card2
[    80.727]    loading driver: nvidia
[    80.727] (==) Matched nvidia as autoconfigured driver 1
[    80.767] (II) LoadModule: "nvidia"
[    80.768] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    80.828] (II) Module nvidia: vendor="NVIDIA Corporation"
[    80.925] (II) Loading sub module "glxserver_nvidia"
[    80.925] (II) LoadModule: "glxserver_nvidia"
[    80.925] (II) Loading /usr/lib64/xorg/modules/extensions/libglxserver_nvidia.so
[    81.616] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    82.914] (II) NVIDIA(G0): [DRI2]   VDPAU driver: nvidia


Code:
$ eix -I nvidia-drivers
[I] x11-drivers/nvidia-drivers
     Available versions:  390.141-r2(0/390) ~390.143-r1(0/390) 450.102.04-r1(0/450) ~450.119.03(0/450) 460.67(0/460) ~460.73.01(0/460) ~460.80(0/460) ~465.31(0/465) {+X dist-kernel (+)driver static-libs +tools ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="linux"}
     Installed versions:  460.67(0/460)(14:45:41 04/05/21)(X driver tools -dist-kernel -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="linux")
     Homepage:            https://www.nvidia.com/download/index.aspx
     Description:         NVIDIA Accelerated Graphics Driver


Code:
$ eix -I mesa
[I] media-libs/mesa
     Available versions:  20.3.5^t 21.0.3^t ~21.1.1^t **9999*l^t {+X +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan vulkan-overlay wayland xa xvmc zink +zstd ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="linux" VIDEO_CARDS="freedreno i915 i965 intel iris lima nouveau panfrost r100 r200 r300 r600 radeon radeonsi v3d vc4 virgl vivante vmware"}
     Installed versions:  21.0.3^t(21:47:42 28/05/21)(X classic dri3 egl gallium gbm gles2 llvm wayland zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa -selinux -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -xa -xvmc -zink ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="linux" VIDEO_CARDS="i965 intel -freedreno -i915 -iris -lima -nouveau -panfrost -r100 -r200 -r300 -r600 -radeon -radeonsi -v3d -vc4 -virgl -vivante -vmware")
     Homepage:            https://www.mesa3d.org/ https://mesa.freedesktop.org/
     Description:         OpenGL-like graphic library for Linux

[I] x11-apps/mesa-progs
     Available versions:  8.4.0 **9999*l {egl gles2}
     Installed versions:  8.4.0(13:53:51 02/05/19)(-egl -gles2)
     Homepage:            https://www.mesa3d.org/ https://mesa.freedesktop.org/ https://gitlab.freedesktop.org/mesa/demos
     Description:         Mesa's OpenGL utility and demo programs (glxgears and glxinfo)

Found 2 matches


Code:
$ eix -I xorg-server
[I] x11-base/xorg-server
     Available versions:  1.20.11(0/1.20.11)^t **9999(0/9999)*l^t {debug dmx doc +elogind ipv6 kdrive minimal selinux suid systemd test +udev unwind wayland xcsecurity xephyr xnest xorg xvfb}
     Installed versions:  1.20.11(0/1.20.11)^t(14:49:22 04/05/21)(elogind ipv6 udev wayland xorg -debug -dmx -doc -kdrive -minimal -selinux -suid -systemd -test -unwind -xcsecurity -xephyr -xnest -xvfb)
     Homepage:            https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/xserver/xorg-server
     Description:         X.Org X servers


Code:
$ eix -I xorg-drivers
[I] x11-base/xorg-drivers
     Available versions:  1.20-r2 **9999*l {INPUT_DEVICES="elographics evdev joystick libinput synaptics vmmouse void wacom" VIDEO_CARDS="amdgpu ast dummy fbdev freedreno geode glint i915 i965 intel mga nouveau nv nvidia omap qxl r128 radeon radeonsi siliconmotion tegra vc4 vesa via virtualbox vmware"}
     Installed versions:  1.20-r2(21:16:03 12/04/21)(INPUT_DEVICES="evdev synaptics -elographics -joystick -libinput -vmmouse -void -wacom" VIDEO_CARDS="i965 intel nvidia -amdgpu -ast -dummy -fbdev -freedreno -geode -glint -i915 -mga -nouveau -nv -omap -qxl -r128 -radeon -radeonsi -siliconmotion -tegra -vc4 -vesa -via -virtualbox -vmware")
     Homepage:            https://wiki.gentoo.org/wiki/No_homepage
     Description:         Meta package containing deps on all xorg drivers


Code:
$ eix -I libglvnd
[I] media-libs/libglvnd
     Available versions:  1.3.2-r2^t 1.3.3^t **9999*l^t {X test ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  1.3.3^t(20:50:58 28/05/21)(X -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://gitlab.freedesktop.org/glvnd/libglvnd
     Description:         The GL Vendor-Neutral Dispatch library


Code:
$ eix -I opengl
[I] dev-qt/qtopengl
     Available versions:  (5) 5.15.2(5/5.15)^t
       {debug gles2-only test}
     Installed versions:  5.15.2(5/5.15)^t(01:23:09 21/01/21)(-debug -gles2-only -test)
     Homepage:            https://www.qt.io/
     Description:         OpenGL support library for the Qt5 framework (deprecated)

[I] virtual/opengl
     Available versions:  7.0-r2 {ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  7.0-r2(13:58:07 12/04/21)(ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Description:         Virtual for OpenGL implementation

Found 2 matches


Code:
$ eix -I vdpau
[I] x11-libs/libvdpau
     Available versions:  1.4^t **99999*l^t {doc dri test ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  1.4^t(22:52:25 20/01/21)(dri -doc -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://www.freedesktop.org/wiki/Software/VDPAU
     Description:         VDPAU wrapper and trace libraries


Code:
$ eix -I kwin
[I] kde-frameworks/kwindowsystem
     Available versions:  (5) 5.80.0(5/5.80)^t ~5.82.0(5/5.82)^t
       {X debug doc nls test}
     Installed versions:  5.80.0(5/5.80)^t(14:44:12 12/04/21)(X nls -debug -doc -test)
     Homepage:            https://kde.org/products/frameworks/
     Description:         Framework providing access to properties and features of the window manager

[I] kde-plasma/kwin
     Available versions:  (5) 5.20.5-r1^t ~5.21.5^t
       {accessibility caps debug gles2-only +handbook multimedia plasma screencast test}
     Installed versions:  5.20.5-r1(5)^t(17:12:26 12/04/21)(handbook screencast -accessibility -caps -debug -gles2-only -multimedia -test)
     Homepage:            https://kde.org/plasma-desktop
     Description:         Flexible, composited Window Manager for windowing systems on Linux

Found 2 matches


Code:
$ eix -I plasma-meta
[I] kde-plasma/plasma-meta
     Available versions:  (5) 5.20.5 ~5.21.5
       {accessibility bluetooth +browser-integration colord +crash-handler crypt +desktop-portal discover +display-manager +elogind +firewall grub gtk +handbook +kwallet +legacy-systray +networkmanager plymouth pulseaudio qrcode +sddm sdk +smart systemd thunderbolt +wallpapers}
     Installed versions:  5.20.5(5)(15:12:59 24/01/21)(bluetooth browser-integration crypt desktop-portal display-manager elogind gtk handbook kwallet legacy-systray networkmanager pulseaudio smart wallpapers -discover -grub -plymouth -qrcode -sddm -sdk -systemd -thunderbolt)
     Homepage:            https://kde.org/plasma-desktop/
     Description:         Merge this to pull in all Plasma 5 packages


Code:
$ ls /etc/X11/xorg.conf # This file should not exist.
ls: cannot access '/etc/X11/xorg.conf': No such file or directory


Code:
$ ls -la /etc/X11/xorg.conf.d/01-nvidia-offload.conf
-rw-r--r-- 1 root root 93 Aug 14  2020 /etc/X11/xorg.conf.d/01-nvidia-offload.conf


Code:
$ cat /etc/X11/xorg.conf.d/01-nvidia-offload.conf   
Section "ServerLayout"
    Identifier "layout"
    Option "AllowNVIDIAGPUScreens"
EndSection


Code:
$ cat ~/.config/kwinrc
[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize,kwin.upd:animation-speed

[Compositing]
Backend=OpenGL
Enabled=true
GLColorCorrection=false
GLCore=true
GLPlatformInterface=glx
GLPreferBufferSwap=a
GLTextureFilter=1
HiddenPreviews=5
OpenGLIsUnsafe=false
UnredirectFullscreen=false
WindowsBlockCompositing=true
XRenderSmoothScale=false

[Desktops]
Id_1=89878c23-2b12-4066-9a0b-25a1ed5b4a59
Id_2=285403b0-237c-4d9a-9514-adb0f8ca5805
Id_3=90410aad-d886-41be-bd55-e73bf4be1d86
Id_4=3daa7d1c-c1a2-436d-9d3d-e88612a18db4
Number=4
Rows=1

[Effect-Cube]
BorderActivate=9
BorderActivateCylinder=9
BorderActivateSphere=9
Opacity=100
Wallpaper=file:///home/fitzcarralo/Pictures/Wallpaper/Sunset.jpg
ZOrdering=true
ZPosition=400

[Effect-CubeSlide]
UseWindowMoving=true

[Effect-DesktopGrid]
BorderActivate=9

[Effect-PresentWindows]
BorderActivate=9
BorderActivateAll=7
BorderActivateClass=9

[Effect-Zoom]
InitialZoom=1

[ElectricBorders]
Bottom=None
BottomLeft=None
BottomRight=None
Left=None
Right=None
Top=None
TopLeft=None
TopRight=None

[MouseBindings]
CommandActiveTitlebar1=Raise
CommandActiveTitlebar2=Start window tab drag
CommandActiveTitlebar3=Operations menu
CommandAll1=Move
CommandAll2=Toggle raise and lower
CommandAll3=Resize
CommandAllKey=Alt
CommandAllWheel=Change Opacity
CommandInactiveTitlebar1=Activate and raise
CommandInactiveTitlebar2=Start window tab drag
CommandInactiveTitlebar3=Operations menu
CommandTitlebarWheel=Switch to Window Tab to the Left/Right
CommandWindow1=Activate, raise and pass click
CommandWindow2=Activate and pass click
CommandWindow3=Activate and pass click
CommandWindowWheel=Scroll

[NightColor]
Active=true
LatitudeFixed=32.36417
LongitudeFixed=-64.67861
Mode=Location

[Plugins]
cubeEnabled=true
cubeslideEnabled=true
desktopchangeosdEnabled=false
kwin4_effect_fadedesktopEnabled=false
kwin4_effect_squashEnabled=false
magiclampEnabled=true
slideEnabled=false
windowgeometryEnabled=false
wobblywindowsEnabled=true

[Script-desktopchangeosd]
PopupHideDelay=1000
TextOnly=false

[TabBox]
BorderActivate=9
BorderAlternativeActivate=9
DesktopLayout=org.kde.breeze.desktop
DesktopListLayout=org.kde.breeze.desktop
LayoutName=org.kde.breeze.desktop

[Windows]
ActiveMouseScreen=false
AutoRaise=false
AutoRaiseInterval=750
AutogroupInForeground=true
AutogroupSimilarWindows=false
BorderSnapZone=10
CenterSnapZone=0
ClickRaise=true
DelayFocusInterval=300
ElectricBorderCooldown=1000
ElectricBorderCornerRatio=0.25
ElectricBorderDelay=150
ElectricBorderMaximize=false
ElectricBorderTiling=false
ElectricBorders=1
FocusPolicy=ClickToFocus
FocusStealingPreventionLevel=1
GeometryTip=false
HideUtilityWindowsForInactive=true
InactiveTabsSkipTaskbar=false
MaximizeButtonLeftClickCommand=Maximize
MaximizeButtonMiddleClickCommand=Maximize (vertical only)
MaximizeButtonRightClickCommand=Maximize (horizontal only)
NextFocusPrefersMouse=false
Placement=Smart
RollOverDesktops=true
SeparateScreenFocus=false
ShadeHover=false
ShadeHoverInterval=250
SnapOnlyWhenOverlapping=false
TitlebarDoubleClickCommand=Maximize
WindowSnapZone=10

[org.kde.kdecoration2]
BorderSize=Normal
BorderSizeAuto=false
ButtonsOnLeft=MS
ButtonsOnRight=HIAX
CloseOnDoubleClickOnMenu=false
library=org.kde.breeze

_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Sun May 30, 2021 11:44 pm    Post subject: Reply with quote

Fitzcarraldo,

It only has an NVIDIA GPU, no others. the card is an RTX 2080 TI.

turning off kvantum entirely, and setting to any openGL backends crashes kwin

glxinfo | grep render:
Code:

direct rendering: Yes
OpenGL renderer string: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_NVX_conditional_render, GL_NVX_gpu_memory_info, GL_NVX_nvenc_interop,
    GL_NV_compute_shader_derivatives, GL_NV_conditional_render,
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering,
    GL_NV_path_rendering_shared_edge, GL_NV_pixel_data_range,
    GL_NV_stereo_view_rendering, GL_NV_texgen_reflection,
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
    GL_NVX_conditional_render, GL_NVX_gpu_memory_info, GL_NVX_nvenc_interop,
    GL_NV_compute_shader_derivatives, GL_NV_conditional_render,
    GL_NV_parameter_buffer_object2, GL_NV_path_rendering,
    GL_NV_path_rendering_shared_edge, GL_NV_pixel_data_range,
    GL_NV_stereo_view_rendering, GL_NV_texgen_reflection,
    GL_EXT_multisample_compatibility, GL_EXT_multisampled_render_to_texture,
    GL_EXT_multisampled_render_to_texture2,
    GL_EXT_raster_multisample, GL_EXT_render_snorm, GL_EXT_robustness,
    GL_NV_conditional_render, GL_NV_conservative_raster,
    GL_NV_path_rendering, GL_NV_path_rendering_shared_edge,
    GL_NV_shadow_samplers_cube, GL_NV_stereo_view_rendering,
    GL_OES_fbo_render_mipmap, GL_OES_geometry_point_size,
    GL_OVR_multiview_multisampled_render_to_texture


as far as i can tell, no error messages in either file.

the only differences i can see, is that this file: 1-nvidia-offload.conf does not exist.
the only file in that folder is: nvidia.conf which has the following contents:
Code:

Section "Device"
        Identifier      "nvidia"
        Driver          "nvidia"
EndSection


xorg.conf does not exist (as should be the case)

the other difference is kwinrc ,
which looks like this:
Code:

[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize,kwin.upd:animation-speed,kwin.upd:desktop-grid-click-behavior,kwin.upd:no-swap-encourage

[Compositing]
Backend=XRender
GLTextureFilter=0
OpenGLIsUnsafe=false
XRenderSmoothScale=true

[Desktops]
Id_1=f41665ed-cb04-4b79-b32c-ac3c519a1186
Number=1
Rows=1

[org.kde.kdecoration2]
ButtonsOnLeft=MNS
library=org.kde.kwin.aurorae
theme=__aurorae__svg__ghost-deco-2_2


all the packages you shwed are installed on my machine too.

optimus is not installed because, as mentioned before, there is only ong GPU in the machine.

all the parts of the nvidia driver have loaded (as far as i can tell)
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Mon May 31, 2021 3:13 pm    Post subject: Reply with quote

Are all the enabled and disabled USE flags the same as mine too?

You could try changing the theme back to Breeze. I seem to recall reading in the past that some themes can cause problems in some installations.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Shadow_Fury
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2021
Posts: 138
Location: 11.435765792823453, 143.05926743686274

PostPosted: Wed Jun 02, 2021 2:42 pm    Post subject: Reply with quote

Fitzcarraldo,
some of the use flags are different, they are listed below (note: selinux is set as permissive, so it isn't actively blocking anything)
syntax: +<package that exists on mine but not yours> -<package that exists on yours but not mine>
Code:

mesa:
        +selinux
        +xvmc

xorg-server:
        +selinux
        +wayland

xorg-drivers:
        INPUT_DEVICES:
                +libinput
                -evdev
                -synaptics
        VIDEO_CARDS:
                -i965
                -intel
                +vesa

vdapu:
        ABI_X86:
                -32

kwin:
        +plasma
        -screencast

plasma-meta
        -bluetooth
        +crach-handler
        -gtk
        +sddm



here are the raw eix dumps, if you need them:

  • eix -I nvidia-drivers
    Code:

    [I] x11-drivers/nvidia-drivers
         Available versions:  390.141-r2(0/390) (~)390.143-r1(0/390) 450.102.04-r1(0/450) (~)450.119.03(0/450) 460.67(0/460) (~)460.73.01(0/460) (~)460.80(0/460) (~)465.31(0/465) {+X dist-kernel (+)driver static-libs +tools ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="linux"}
         Installed versions:  465.31(0/465)(06:08:49 02/06/21)(X driver tools -dist-kernel -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="linux")
         Homepage:            https://www.nvidia.com/download/index.aspx
         Description:         NVIDIA Accelerated Graphics Driver

  • eix -I mesa
    Code:

    [I] media-libs/mesa
         Available versions:  20.3.5^t 21.0.3^t (~)21.1.1^t **9999*l^t {+X +classic d3d9 debug +dri3 +egl +gallium +gbm gles1 +gles2 +llvm lm-sensors opencl osmesa selinux test unwind vaapi valgrind vdpau vulkan vulkan-overlay wayland xa xvmc zink +zstd ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" KERNEL="linux" VIDEO_CARDS="freedreno i915 i965 intel iris lima nouveau panfrost r100 r200 r300 r600 radeon radeonsi v3d vc4 virgl vivante vmware"}
         Installed versions:  21.1.1^t(18:15:45 01/06/21)(X classic dri3 egl gallium gbm gles2 llvm selinux wayland xvmc zstd -d3d9 -debug -gles1 -lm-sensors -opencl -osmesa -test -unwind -vaapi -valgrind -vdpau -vulkan -vulkan-overlay -xa -zink ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" KERNEL="linux" VIDEO_CARDS="-freedreno -i915 -i965 -intel -iris -lima -nouveau -panfrost -r100 -r200 -r300 -r600 -radeon -radeonsi -v3d -vc4 -virgl -vivante -vmware")
         Homepage:            https://www.mesa3d.org/ https://mesa.freedesktop.org/
         Description:         OpenGL-like graphic library for Linux

    [I] x11-apps/mesa-progs
         Available versions:  8.4.0 **9999*l {egl gles2}
         Installed versions:  8.4.0(20:44:25 11/05/21)(-egl -gles2)
         Homepage:            https://www.mesa3d.org/ https://mesa.freedesktop.org/ https://gitlab.freedesktop.org/mesa/demos                                                                                         
         Description:         Mesa's OpenGL utility and demo programs (glxgears and glxinfo)

  • eix -I xorg-server
    Code:

    [I] x11-base/xorg-server
         Available versions:  1.20.11(0/1.20.11)^t **9999(0/9999)*l^t {debug dmx doc +elogind ipv6 kdrive minimal selinux suid systemd test +udev unwind wayland xcsecurity xephyr xnest xorg xvfb}
         Installed versions:  1.20.11(0/1.20.11)^t(20:10:06 31/05/21)(elogind ipv6 selinux udev xorg -debug -dmx -doc -kdrive -minimal -suid -systemd -test -unwind -wayland -xcsecurity -xephyr -xnest -xvfb)
         Homepage:            https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/xserver/xorg-server
         Description:         X.Org X servers

  • eix -I xorg-drivers
    Code:

    [I] x11-base/xorg-drivers
         Available versions:  1.20-r2 **9999*l {INPUT_DEVICES="elographics evdev joystick libinput synaptics vmmouse void wacom" VIDEO_CARDS="amdgpu ast dummy fbdev freedreno geode glint i915 i965 intel mga nouveau nv nvidia omap qxl r128 radeon radeonsi siliconmotion tegra vc4 vesa via virtualbox vmware"}
         Installed versions:  1.20-r2(17:53:33 31/05/21)(INPUT_DEVICES="libinput -elographics -evdev -joystick -synaptics -vmmouse -void -wacom" VIDEO_CARDS="nvidia vesa -amdgpu -ast -dummy -fbdev -freedreno -geode -glint -i915 -i965 -intel -mga -nouveau -nv -omap -qxl -r128 -radeon -radeonsi -siliconmotion -tegra -vc4 -via -virtualbox -vmware")
         Homepage:            https://wiki.gentoo.org/wiki/No_homepage
         Description:         Meta package containing deps on all xorg drivers

  • eix -I libglvnd
    Code:

    [I] media-libs/libglvnd
         Available versions:  1.3.3^t **9999*l^t {X test ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
         Installed versions:  1.3.3^t(15:57:48 01/06/21)(X -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
         Homepage:            https://gitlab.freedesktop.org/glvnd/libglvnd
         Description:         The GL Vendor-Neutral Dispatch library

  • eix -I opengl
    Code:

    [I] dev-qt/qtopengl
         Available versions:  (5) 5.15.2(5/5.15)^t
           {debug gles2-only test}
         Installed versions:  5.15.2(5/5.15)^t(19:46:44 26/05/21)(-debug -gles2-only -test)
         Homepage:            https://www.qt.io/
         Description:         OpenGL support library for the Qt5 framework (deprecated)

    [I] virtual/opengl
         Available versions:  7.0-r2 {ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
         Installed versions:  7.0-r2(01:14:22 24/05/21)(ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
         Description:         Virtual for OpenGL implementation

  • eix -I vdapu
    Code:

    [I] x11-libs/libvdpau
         Available versions:  1.4^t **99999*l^t {doc dri test ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
         Installed versions:  1.4^t(14:10:56 05/05/21)(-doc -dri -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
         Homepage:            https://www.freedesktop.org/wiki/Software/VDPAU
         Description:         VDPAU wrapper and trace libraries

  • eix -I kwin
    Code:

    [I] kde-frameworks/kwindowsystem
         Available versions:  (5) 5.80.0(5/5.80)^t (~)5.82.0(5/5.82)^t
           {X debug doc nls test}
         Installed versions:  5.82.0(5/5.82)^t(11:50:13 01/06/21)(X nls -debug -doc -test)
         Homepage:            https://kde.org/products/frameworks/
         Description:         Framework providing access to properties and features of the window manager

    [I] kde-plasma/kwin
         Available versions:  (5) 5.20.5-r1^t (~)5.21.5^t
           {accessibility caps debug gles2-only +handbook multimedia plasma screencast test}
         Installed versions:  5.21.5(5)^t(12:22:57 01/06/21)(handbook plasma -accessibility -caps -debug -gles2-only -multimedia -screencast -test)
         Homepage:            https://kde.org/plasma-desktop
         Description:         Flexible, composited Window Manager for windowing systems on Linux

  • eix -I plasma-meta
    Code:

    [I] kde-plasma/plasma-meta
         Available versions:  (5) 5.20.5 (~)5.21.5
           {accessibility bluetooth +browser-integration colord +crash-handler crypt +desktop-portal discover +display-manager +elogind +firewall grub gtk +handbook +kwallet +legacy-systray +networkmanager plymouth pulseaudio qrcode +sddm sdk +smart systemd thunderbolt +wallpapers}
         Installed versions:  5.21.5(5)(12:34:11 01/06/21)(browser-integration crash-handler crypt desktop-portal display-manager elogind handbook kwallet legacy-systray networkmanager pulseaudio sddm smart wallpapers -accessibility -bluetooth -colord -discover -firewall -grub -gtk -plymouth -qrcode -sdk -systemd -thunderbolt)
         Homepage:            https://kde.org/plasma-desktop/
         Description:         Merge this to pull in all Plasma 5 packages

Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Thu Jun 03, 2021 11:42 am    Post subject: Reply with quote

Nothing stands out to me as problematic in your USE flags. I notice we are using different versions of x11-drivers/nvidia-drivers. I don't know how well the version you are using works with Plasma, KWin and OpenGL; hopefully someone using the same GPU as you with KWin will comment in this thread.

If only to rule it out as a factor, did you try setting the theme back to Breeze in all the following?:

System Settings > Appearance > Global Theme
System Settings > Appearance > Plasma Style
System Settings > Appearance > Application Style > Application Style
System Settings > Appearance > Application Style > Window Decorations
System Settings > Appearance > Application Style > Application Style > Configure GNOME/GTK Application Style...

Also, are there any pointers on the ADDITIONAL INFORMATION tab and the README link on the following NVIDIA page for your driver?: https://www.nvidia.com/Download/driverResults.aspx/175539/en-us

You could post a request for help in the KDE Community Forums and/or NVIDIA's forums.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Fri Jun 04, 2021 1:35 pm    Post subject: Reply with quote

Just in case it helps in your case, this is what I use, but in my case KWin only crashes at login and I can re-enable compositing with OpenGL:

Code:
#!/bin/bash
#
# OpenGL compositing usually crashes KWin when I login, and compositing is then disabled.
# I have to select 'System Settings' > 'Display and Monitor' > 'Compositor' and perform
# the following steps to get compositing to work in the session:
#
# 1. click 'Re-enable OpenGL detection'
# 2. deselect 'Enable compositor on startup'
# 3. click 'Apply'
# 4. select  'Enable compositor on startup'
# 5. click 'Apply
#
# This script enables me to avoid having to perform the above manual procedure.
# This script is configured to run automatically at Plasma Startup - see:
# 'System Settings' > 'Startup and Shutdown' > 'Autostart'
#
#########################################################################################
#
# Just for information:
# From Plasma 5.13, to restart Plasma you can use the command 'plasmashell --replace'
# Previously the only commands available to restart Plasma were:
# kquitapp5 plasmashell
# kstart5 plasmashell
#
# To suspend and resume compositing the commands would be:
# qdbus org.kde.KWin /Compositor suspend
# qdbus org.kde.KWin /Compositor resume
#
#########################################################################################
#
edit_kwinrc () {
                # Extract the [Compositing] section from kwinrc
                awk '/\[Compositing\]/,/^$/' $HOME/.config/kwinrc > /tmp/kwinrc-extract
                # Remove the header in the extracted section
                sed -i '/\[Compositing\]/d' /tmp/kwinrc-extract
                # Remove the empty line at the end of the extracted section
                sed -i '/^$/d' /tmp/kwinrc-extract
                # Change the state configured for next login
                if [ $1 == "disablecompositing" ]; then
                    sed -i 's/Enabled=true/Enabled=false/g' /tmp/kwinrc-extract
                elif [ $1 == "enablecompositing" ]; then
                    sed -i 's/Enabled=false/Enabled=true/g' /tmp/kwinrc-extract
                elif [ $1 == "openglunsafe" ]; then
                    sed -i 's/OpenGLIsUnsafe=false/OpenGLIsUnsafe=true/g' /tmp/kwinrc-extract
                elif [ $1 == "openglsafe" ]; then
                    sed -i 's/OpenGLIsUnsafe=true/OpenGLIsUnsafe=false/g' /tmp/kwinrc-extract
                fi
                # Replace the [Compositing] section in kwinrc
                awk 'BEGIN {p=1} /^\[Compositing\]/ {print;system("cat /tmp/kwinrc-extract");p=0} /^$/ {p=1} p' $HOME/.config/kwinrc > /tmp/kwinrc
                cp /tmp/kwinrc $HOME/.config/kwinrc
}
#
# Avoid backing up an incorrectly-edited file
if [ ! -f $HOME/.config/kwinrc.bak ]; then
    cp $HOME/.config/kwinrc $HOME/.config/kwinrc.bak
fi
#
sleep 120s
if $( grep -q "OpenGLIsUnsafe=true" $HOME/.config/kwinrc ); then
    edit_kwinrc openglsafe
    edit_kwinrc enablecompositing # Just in case it was disabled as well.
    kwin_x11 --replace & > /dev/null 2>&1
fi
exit 0


See Re-enabling OpenGL compositing automatically after it crashes KWin at login to KDE Plasma.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21624

PostPosted: Fri Jun 04, 2021 4:38 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
Code:
edit_kwinrc () {
                # Extract the [Compositing] section from kwinrc
                awk '/\[Compositing\]/,/^$/' $HOME/.config/kwinrc > /tmp/kwinrc-extract
                # Remove the header in the extracted section
                sed -i '/\[Compositing\]/d' /tmp/kwinrc-extract
                # Remove the empty line at the end of the extracted section
                sed -i '/^$/d' /tmp/kwinrc-extract
These 2 sed could be combined as one, or even eliminated by making the preceding awk more careful.
Fitzcarraldo wrote:
Code:

                # Change the state configured for next login
                if [ $1 == "disablecompositing" ]; then
                    sed -i 's/Enabled=true/Enabled=false/g' /tmp/kwinrc-extract
                elif [ $1 == "enablecompositing" ]; then
                    sed -i 's/Enabled=false/Enabled=true/g' /tmp/kwinrc-extract
                elif [ $1 == "openglunsafe" ]; then
                    sed -i 's/OpenGLIsUnsafe=false/OpenGLIsUnsafe=true/g' /tmp/kwinrc-extract
                elif [ $1 == "openglsafe" ]; then
                    sed -i 's/OpenGLIsUnsafe=true/OpenGLIsUnsafe=false/g' /tmp/kwinrc-extract
                fi
To make the code cleaner, you could load your edit into a shell local variable, then have one line at the end that calls sed, passing that variable as the action to take.
Fitzcarraldo wrote:
Code:
                # Replace the [Compositing] section in kwinrc
                awk 'BEGIN {p=1} /^\[Compositing\]/ {print;system("cat /tmp/kwinrc-extract");p=0} /^$/ {p=1} p' $HOME/.config/kwinrc > /tmp/kwinrc
Shelling out to system("cat") is almost never the right approach. In this case, I think you could have used getline instead.
Code:
awk 'BEGIN { while ((getline A < "/etc/issue") > 0) print A; }' < /dev/null
With some clever pattern matching, you could eliminate awk entirely and rely on sed.
Code:
$ cat -n kwinrc
     1  [A]
     2  OpenGLIsUnsafe=false    # This line will be ignored
     3  Enabled=false
     4
     5  [Compositing]
     6  OpenGLIsUnsafe=false
     7  Enabled=false
     8
     9  [B]
    10  OpenGLIsUnsafe=false
    11  Enabled=false
$ sed -e '/^\[Compositing\]$/,/^$/{/^OpenGLIsUnsafe=/s/false/true/;}' < kwinrc | cat -n
     1  [A]
     2  OpenGLIsUnsafe=false    # This line will be ignored
     3  Enabled=false
     4
     5  [Compositing]
     6  OpenGLIsUnsafe=true
     7  Enabled=false
     8
     9  [B]
    10  OpenGLIsUnsafe=false
    11  Enabled=false
Fitzcarraldo wrote:
Code:
    edit_kwinrc openglsafe
    edit_kwinrc enablecompositing # Just in case it was disabled as well.
These should probably be folded into a single edit. As written, you rewrite the file twice in quick succession.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum