---
title: "Deepin&UOS安装Nvidia驱动后出现黑窗现象解决方法"
id: "3025"
type: "post"
slug: "deepinuos%e5%ae%89%e8%a3%85nvidia%e9%a9%b1%e5%8a%a8%e5%90%8e%e5%87%ba%e7%8e%b0%e9%bb%91%e7%aa%97%e7%8e%b0%e8%b1%a1%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95"
published_at: "2020-05-20T07:02:06+00:00"
modified_at: "2020-06-04T14:02:08+00:00"
url: "https://seq.ink/all/3025.html"
markdown_url: "https://seq.ink/all/3025.html.md"
excerpt: "参考地址1：Link 参考地址2：Link 参考地址3：Link sudo dedit /etc/profile.d/kwin.sh 加入内容 #!/bin/sh export KWIN_TRIPLE_BUFFER=1 或者直接执行这段： ..."
taxonomy_category:
  - "ALL"
  - "Linux"
---

参考地址1：[Link](https://www.reddit.com/r/kde/comments/88aejd/is_anyone_here_using_kde_on_proprietary_nvidia/)
  
 参考地址2：[Link](https://forum.manjaro.org/t/manjaro-deepin-blur-on-windows-turns-black-after-running-steam-games/93679)
  
 参考地址3：[Link](https://forums.developer.nvidia.com/t/black-or-incorrect-textures-in-kde/55110/26)

sudo dedit /etc/profile.d/kwin.sh  
 加入内容

```
#!/bin/sh
export KWIN_TRIPLE_BUFFER=1
```

或者直接执行这段：

```
sudo sh -c "cat > /etc/profile.d/kwin.sh" << EOF
#!/bin/sh
export KWIN_TRIPLE_BUFFER=1
EOF
```

编辑 `~/.config/kwinrc`

```
[Compositing]
Enabled=true
GLCore=false
OpenGLIsUnsafe=false
WindowsBlockCompositing=false
```

在家里，找到文件.config / plasmashellrc并添加以下行(可选)：  
 [QtQuickRendererSettings]  
 GraphicsResetNotifications=true

同样在家里，找到文件.config / kwinrc并添加以下行：  
 [QtQuickRendererSettings]  
 GraphicsResetNotifications=true
