18.10 MATE 上的 xscreensaver - 无法启动

18.10 MATE 上的 xscreensaver - 无法启动

我的两台机器都出现了同样的问题。这是最近才开始出现的——大约在最近几周,更新频率很高,甚至每天都有更新。

18.04 的机器运行良好。

任何日志中都没有错误。

评论中要求:

$ dpkg -l | grep ^ii | grep screensaver
ii  libopengl-xscreensaver-perl           0.05-1build4                               amd64        Perl module for writing OpenGL-based XScreenSaver hacks
ii  mate-screensaver-common               1.20.2-1                                   all          MATE screen saver and locker (common files)
ii  xscreensaver                          5.36-1ubuntu1                              amd64        Screensaver daemon and frontend for X11
ii  xscreensaver-data                     5.36-1ubuntu1                              amd64        Screen saver modules for screensaver frontends
ii  xscreensaver-data-extra               5.36-1ubuntu1                              amd64        Extra screen saver modules for screensaver frontends
ii  xscreensaver-gl                       5.36-1ubuntu1                              amd64        GL(Mesa) screen saver modules for screensaver frontends
ii  xscreensaver-gl-extra                 5.36-1ubuntu1                              amd64        Extra GL(Mesa) screen saver modules for screensaver frontends
ii  xscreensaver-screensaver-bsod         5.36-1ubuntu1                              amd64        BSOD screen saver module from XScreenSaver
ii  xscreensaver-screensaver-dizzy        0.3-3                                      all          Graphics demo that makes you dizzy (XScreenSaver hack)
ii  xscreensaver-screensaver-webcollage   5.36-1ubuntu1                              amd64        Webcollage screen saver module from XScreenSaver

删除 mate-screensaver 后更新

在一台 18.10 机器上,xscreensaver 正在运行。在某个时候,由于我忘记的原因,我创建了一个启动桌面文件服务文件所以我删除了启动。

在另一台 18.10 机器上它不起作用。

现在的情况:

 $ dpkg -l | grep ^ii | grep screensaver | grep -v xscreen
 $ 

 $ systemctl --user status xscreensaver
 ● xscreensaver.service - XScreenSaver
    Loaded: loaded (/home/stephen/.config/systemd/user/xscreensaver.service; enabled; vendor preset: enabled)
    Active: active (running) since Sun 2019-02-03 18:00:25 PST; 14h ago
  Main PID: 1264 (xscreensaver)
    CGroup: /user.slice/user-1000.slice/[email protected]/xscreensaver.service
            └─1264 /usr/bin/xscreensaver -nosplash

答案1

首先,您应该从系统中删除其他屏幕保护程序(在您的情况下是 MATE 屏幕保护程序)以防止干扰:

sudo apt purge mate-screensaver mate-screensaver-common

然后通过以下方式启用 XScreenSaver 自动启动systemd用户服务

systemctl --user enable xscreensaver.service
systemctl --user start xscreensaver.service

   注意:您可以使用 来进行调试systemctl --user status xscreensaver.service

然后等待超时和屏幕保护程序激活。

相关内容