使用 VLC 时,为什么我的屏幕保护程序不断唤醒?

使用 VLC 时,为什么我的屏幕保护程序不断唤醒?

XScreenSaver 使用 DPMS 关闭我的笔记本电脑屏幕。我想找出为什么它再次醒来时出现提示。我启用了日志记录log,但它没有显示任何有用的信息,

xscreensaver:22:04:21:于 2018 年 4 月 26 日星期四 22:04:21 登录到“/tmp/f”

这就是日志中的全部内容。检查一下/var/log/kern.log,我明白了

xscreensaver: pam_ecryptfs: seteuid 错误

我该如何调试这个问题,XScreenSaver 唤醒我的显示器的可能原因是什么。我正在使用 xscreensaver 5.36。

答案1

我遇到了这个问题。杀死 xscreensaver,然后运行

xscreensaver -verbose

给了我一堆:

xscreensaver: 01:23:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:24:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:24:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:25:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:25:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:26:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:26:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:27:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:27:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:28:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:28:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:29:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:29:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:30:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:30:58: ClientMessage DEACTIVATE received while inactive: resetting idle timer.
xscreensaver: 01:31:28: ClientMessage DEACTIVATE received while inactive: resetting idle timer.

然后我开始寻找可以杀死的东西。 xfce4-power-manager 是其中一件事,但这并没有解决问题。

没有打开 vlc 窗口,但我发现一个任务正在运行

$ ps aux | grep vlc
poleguy   5568  0.1  0.0 1983844 12476 ?       Sl   Jan04  27:43 /usr/bin/vlc --started-from-file

它通常不会杀死所以我做了一个

kill -kill 5568

DEACTIVATE 消息消失了!不容易追踪,所以我希望这能帮助那些试图追踪类似问题的人。

我的显示器今晚会睡觉!

答案2

我在中找到了答案XScreenSaver 常见问题解答

如果您使用的是 VLC,请选择“禁用屏幕保护程序”VLC 首选项中的某处。 (它往往会四处移动。)这可能会在 VLC 运行时禁用屏幕保护程序,并且不仅是在播放时。我不知道。

对我来说,它位于“视频”首选项下。或者在文件中~/.config/vlc/vlcrc您会看到一行

# Disable screensaver (boolean)
#disable-screensaver=1

取消注释并将其设置为0, disable-screensaver=0,或者您可以简单地运行,

echo "disable-screensaver=0" >> ~/.config/vlc/vlcrc

如果完成上述操作后未能解决您的问题,也许您正在使用 XFCE 并遇到了xfce4-power-manager?

相关内容