deepin深度桌面解决从睡眠resume之后部分白点、花屏问题(with NVIDIA)

sudo vim /etc/systemd/system/[email protected]

----------------------------------------------------------------------------------------------------
[Unit]
Description=User resume actions
After=suspend.target

[Service]
User=%I
Type=simple
ExecStart=/usr/bin/deepin-wm-restart.sh

[Install]
WantedBy=suspend.target
sudo vim /usr/bin/deepin-wm-restart.sh
--------------------------------------------------------------------------------------------------
#!/bin/bash
export DISPLAY=:0
deepin-wm --replace
  • 设置执行权限,设置开机自启服务,并立刻启动
chmod +x /usr/bin/deepin-wm-restart.sh
systemctl enable resume@user
systemctl start resume@user

你可能感兴趣的:(Linux,杂项)