# Kwin and nvidia issues

**URL:** <https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006>\
**Category:** Newbie\
**Created:** [June 7, 2021, 7:42pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006 "2021-06-07T19:42:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 7:42pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/1 "2021-06-07T19:42:05Z")

</div>

Hi guys I recently installed endevour os **endeavouros-2021.04.17-x86\_64.iso** using the online installer and with the KDE Desktop option. Upon install everything seems fine when using the breeze-dark. However I noticed a notification of kwin having a graphics reset everytime I wake up the system.

This issue is more prevelant if I use a theme that uses kwin’s blur effect in which the title bar and close, minimize, and maximize buttons will either become warped (very enlarged or significantly shrunk). Closing and repoening the affeced app windows seems to fix the issue but putting my computer to sleep and waking it brings back the issues. Another alternative I tried is running kwin\_x11 --replace via kde shortcut (idk if there is a way to run this when waking up from sleep) which does resolve the issue.

As a more perminant resolution I did attempt to run nvidia-installer-check and got the following reply.

```auto
Your graphics card (id: 13c2) is supported by the nvidia-dkms driver.
To install a driver for this card, you can use nvidia-installer-dkms.

```

I then ran nvidia-installer-dkms and rebooted after the script finished. On the bright side updating the drivers did help graphics resets and title bar warping. Unfortunately I noticed the blur effect was disabled after the update. I when renabling it I noticed kwin’s cpu usage starting to spike. On ideal it would consume 10-30% of my cpus and if I move any windows it can use 50-70% of cpu. Windows move ment became choppy and if playing any videos say from youtube in fire fox or a mp4 in vlc I noticed a high degree of stutter. I tried forced compesisiton piple in nvidia settings (no dice), I tried the [anti tear guide in the arch wiki](https://wiki.archlinux.org/title/NVIDIA/Troubleshooting#Avoid_screen_tearing) (no dice). Only rolling back the update with time shift seemed to fix the cpu but brought back the graphics resets.

At this point I’m kind of at a loss, before Endavour OS I used to use Manjaro and had similar issues with kwin (the title bar and graphics resets). Not sure if this is even an endevour os bug or if I should post the bug in bugzilla for kwin. Please advice and sorry for the long post 🙁

KDE versions:

```
KDE Plasma Version: 5.21.5

KDE Frameworks Version: 5.82.0

Qt Version: 5.15.2

Kernel Version: 5.12.8-arch1-1

OS Type 64-bit

Graphics Platform: X11

```

Hardware:

```
Intel Core i7-4790

GPU GTX 970 (proprietary drivers)
```

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 7:56pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/2 "2021-06-07T19:56:45Z")

</div>

Hello @rihcus  
Could you use post the output for the following command.

inxi -Ga

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 8:13pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/3 "2021-06-07T20:13:52Z")

</div>

```auto
Graphics: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics 
           vendor: Gigabyte driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0412 
           class-ID: 0300 
           Device-2: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: nvidia v: 465.31 
           alternate: nouveau,nvidia_drm bus-ID: 02:00.0 chip-ID: 10de:13c2 class-ID: 0300 
           Display: x11 server: X.org 1.20.11 compositor: kwin_x11 driver: loaded: intel,nvidia 
           unloaded: fbdev,modesetting,vesa alternate: nouveau,nv resolution: <missing: xdpyinfo> 
           Message: Unable to show advanced data. Required tool glxinfo missing.

```

Should I instal glxinfo?

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 8:51pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/4 "2021-06-07T20:51:48Z")

</div>

You could install mesa-demos, xorg-xdpyinfo. This would just give you more info from the command. I usually always install these and also dmidecode. Your choice and when you run the command you will see more info.

It’s hybrid graphics running on Intel currently. It could be the Intel driver causing the issue maybe?  
Maybe remove xf86-video-intel

The anti tear you are referring to is related to nvidia. It’s not running on nvidia. You would have to install optimus-manager in order to switch to nvidia. So most likely it’s an Intel issue.

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:05pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/5 "2021-06-07T21:05:53Z")

</div>

Interesting running on a desktop and all displays are connected to my GPU (I don’t use the integrated graphics). I guess I could try nuking the intell graphics (I have time shift as a backup)

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:08pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/6 "2021-06-07T21:08:21Z")

</div>

That’s great because it could cause an issue. Maybe? You have other external monitors?

Edit: It would be a good idea to try this before installing optimus-mamnger. I’m not sure what issues you may run into then.

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:10pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/7 "2021-06-07T21:10:57Z")

</div>

I have two moniters one is outputtting to HDMI one outputing via DVI

Updated output with mesa-demos, xorg-xdpyinfo

```auto
Graphics: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics 
           vendor: Gigabyte driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0412 
           class-ID: 0300 
           Device-2: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: nvidia v: 465.31 
           alternate: nouveau,nvidia_drm bus-ID: 02:00.0 chip-ID: 10de:13c2 class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: intel,nvidia 
           unloaded: fbdev,modesetting,vesa alternate: nouveau,nv display-ID: :0 screens: 1 
           Screen-1: 0 s-res: 3520x1080 s-dpi: 92 s-size: 972x301mm (38.3x11.9") 
           s-diag: 1018mm (40.1") 
           Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 92 size: 530x290mm (20.9x11.4") 
           diag: 604mm (23.8") 
           Monitor-2: DVI-D-0 res: 1600x900 hz: 60 dpi: 92 size: 443x249mm (17.4x9.8") 
           diag: 508mm (20") 
           OpenGL: renderer: NVIDIA GeForce GTX 970/PCIe/SSE2 v: 4.6.0 NVIDIA 465.31 
           direct render: Yes 

```

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:12pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/8 "2021-06-07T21:12:05Z")

</div>

That gives you way more info as you see.  
Edit:  
So it may be running on the nvidia. Some hybrid graphics automatically output the dedicated graphics when hooked to another monitor via HDMI. I’m not an expert on this. I just try to help where i can. I do have Nvidia desktop card which is a GTX 1060.

Edit: I’m just looking at the display x11 server and it shows Intel as the driver. So i’m assuming you would need optimus-manager to switch.

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:23pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/9 "2021-06-07T21:23:15Z")

</div>

window bar issue still there I tried uninstalling the intell graphics drivers

```auto
yay -R xf86-video-intel

```

output for inxi -Ga

```auto
Graphics: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics 
           vendor: Gigabyte driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0412 
           class-ID: 0300 
           Device-2: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: nvidia v: 465.31 
           alternate: nouveau,nvidia_drm bus-ID: 02:00.0 chip-ID: 10de:13c2 class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
           loaded: modesetting,nvidia unloaded: fbdev,vesa alternate: intel,nouveau,nv 
           display-ID: :0 screens: 1 
           Screen-1: 0 s-res: 3520x1080 s-dpi: 92 s-size: 972x301mm (38.3x11.9") 
           s-diag: 1018mm (40.1") 
           Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 92 size: 530x290mm (20.9x11.4") 
           diag: 604mm (23.8") 
           Monitor-2: DVI-D-0 res: 1600x900 hz: 60 dpi: 92 size: 443x249mm (17.4x9.8") 
           diag: 508mm (20") 
           OpenGL: renderer: NVIDIA GeForce GTX 970/PCIe/SSE2 v: 4.6.0 NVIDIA 465.31 
           direct render: Yes 

```

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:23pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/10 "2021-06-07T21:23:37Z")

</div>

I think you are fortunate to have the two monitors working. Many users have issues with that.

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:24pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/11 "2021-06-07T21:24:40Z")

</div>

Out of curiosity do you use a high blur theme like ant-dark? I’m gonna try running the nvidia driver update and see if high cpu usage will reoccur.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:24pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/12 "2021-06-07T21:24:44Z")

</div>

Excellent. It’s now running modesetting kernel driver. So you can see if that makes any difference for your current issue.

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:25pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/13 "2021-06-07T21:25:12Z")

</div>

how do you modesett the kernel driver?

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:25pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/14 "2021-06-07T21:25:48Z")

</div>

No i don’t. I’m not sure what setting that is?

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:27pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/15 "2021-06-07T21:27:12Z")

</div>

![image](https://forum.endeavouros.com/uploads/default/original/3X/1/4/141503a5999f85509a460b3eacb255e41571eece.png)  
 ![image](https://forum.endeavouros.com/uploads/default/original/3X/9/9/99240cc28b78b3fd5682a3bc4f77cdbd865ffee2.png)

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:27pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/16 "2021-06-07T21:27:38Z")

</div>

What do you mean? You uninstalled the intel driver so it is running now on modesetting kernel driver instead.

```auto
Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
           loaded: **modesetting** ,nvidia unloaded: fbdev,vesa alternate: intel,nouveau,nv 

```

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:28pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/17 "2021-06-07T21:28:41Z")

</div>

Where is blur?

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:29pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/18 "2021-06-07T21:29:29Z")

</div>

Sry wasn’t sure of the term modesetting (bit new to arch).

Blur is a kde desktop effect:  
 ![image](https://forum.endeavouros.com/uploads/default/original/3X/8/b/8bea5119834a9967f19923d06e7685c8ae30e277.png)

Edit: Earlier this is what I meant by title bar bug:

![image](https://forum.endeavouros.com/uploads/default/original/3X/f/2/f2642467c0edbbafa6a7384a5fac079cb3d97a07.png)

Normally:  
 ![image](https://forum.endeavouros.com/uploads/default/original/3X/f/a/fa9d56c8dbaed2fca2fb1e1513423798b5173419.png)

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [June 7, 2021, 9:33pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/19 "2021-06-07T21:33:23Z")

</div>

Oh okay. I see. Is it doing it now since removing the Intel driver?

Edit: This is my blur setting and output of konsole.

![Screenshot_20210607_173230](https://forum.endeavouros.com/uploads/default/original/3X/4/b/4b98f8487022f1ad5620e471f1a8a8ad6b047042.png)  
 ![Screenshot_20210607_173437](https://forum.endeavouros.com/uploads/default/original/3X/c/d/cd428b3163d73ef4ccbef9dbcd38ab5c39362def.png)

Edit: This is on my Ryzen with Amd Graphics though.

Edit2: My blur settings.

![Screenshot_20210607_173753](https://forum.endeavouros.com/uploads/default/original/3X/9/e/9e336c05e272a3214f64dbbba8ff3b8af26aec7a.png)

---

<div class="post-metadata">

**Author:** ![rihcus](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/r/87869e/32.png) [@rihcus](https://forum.endeavouros.com/u/rihcus)\
**Post date:** [June 7, 2021, 9:39pm UTC](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006/20 "2021-06-07T21:39:13Z")

</div>

Unfortunatly this happend before and after uninstalling the intel driver.

Edit: In the past running:

```auto
nvidia-installer-check

Your graphics card (id: 13c2) is supported by the nvidia-dkms driver.
To install a driver for this card, you can use nvidia-installer-dkms.

```

and

```auto
sudo nvidia-installer-dkms

```

fixed that issue but as a consiquence kwin started to hog cpu (when the intel gpu drivers where installed, I could try the same process again and see if the high cpu usage issue goes away`

Edit:  
To clarify no high cpu usage now but have the title bar issue

[Next page](https://forum.endeavouros.com/t/kwin-and-nvidia-issues/15006.md?page=2)
