Weird problem with mate-screensaver

MR ZenWiz mrzenwiz at gmail.com
Thu Dec 2 18:42:21 UTC 2021


On Thu, Dec 2, 2021 at 1:47 AM Adam Funk <a24061 at ducksburg.com> wrote:
>
:
>
> Interesting. If I double-check (while using a terminal in the GUI) and
> run `mate-screensaver &`, it works, but if I ssh in (while it's locked
> up with a black screen) then
>
> export DISPLAY=:0.0
> mate-screensaver &
>
> won't make the screensaver appear so I can unlock it.
>
Here is the script I use (this is specific to xscreensaver - can't say
how well it might work wit others).  There is more in the actual
script, but it's boilerplate that never gets used.

#!/usr/bin/env bash

[[ -z "$(/bin/ps -efw | /bin/grep -i 'xscreensaver -nosplash' 2>
/dev/null | /bin/grep -v grep)" ]] &&
  $(nohup xscreensaver -no-splash &>/dev/null &)

Mark




More information about the ubuntu-users mailing list