[arch-general] Xscreensaver is Active on Resume from Manual Suspend

Bastien Dejean nihilhill at gmail.com
Sat Dec 3 09:45:42 EST 2011


Mauro Santos:

> It might work or not, I don't know what takes precedence. After you
> resume i guess it will check the time and realize it has been longer
> than the defined inactivity period with no activity (it was suspended so
> there could be no activity) and lock the screen.

I've created /etc/pm/sleep.d/49xscreensaver:

    #! /bin/dash

    case $1 in
        resume | thaw)
            xscreensaver-command -deactivate >&- 2>&- &
            ;;
    esac

We'll see how it behaves...


More information about the arch-general mailing list