Answers:
在启动板上发布的一种解决方法是基于pm-utils挂钩的脚本:
sudo wget -O /etc/pm/sleep.d/20_kill-notify-osd https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1232454/+attachment/3942236/+files/20_kill-notify-osd
sudo chmod +x /etc/pm/sleep.d/20_kill-notify-osd
另一个解决方法可能是以下方法:
下载脚本并使其可执行:
wget -O ~/.suspendwarning.sh https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1232454/+attachment/3942095/+files/myscripts
chmod +x ~/.suspendwarning.sh
将其添加到~/.bashrc
:
echo "if [ -f ~/.suspendwarning.sh ]; then
. ~/.suspendwarning.sh
fi" >> ~/.bashrc
注销并登录后,恢复后将不再弹出通知。