• suspend xscreensaver auto-lock

    From Marco Moock@mm+usenet-es@dorfdsl.de to alt.os.linux.slackware on Fri Feb 28 17:41:22 2025
    From Newsgroup: alt.os.linux.slackware

    Hello!

    Is there a way to automatically lock the screen when the system goes
    into suspend when using xscreensaver?
    --
    kind regards
    Marco

    Send spam to 1740760820muell@stinkedores.dorfdsl.de

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From John McCue@jmccue@magnetar.jmcunx.com to alt.os.linux.slackware on Fri Feb 28 23:45:59 2025
    From Newsgroup: alt.os.linux.slackware

    Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
    Hello!

    Is there a way to automatically lock the screen when the system goes
    into suspend when using xscreensaver?

    Yes, see below. This is a paired down script I use:

    SCRIPT START-----------------------------------------------
    #!/bin/bash
    #
    # This is File
    # /lib64/elogind/system-sleep/10_sleep.sh
    # on 64 bit systems, 32 bit, maybe /lib/ ?
    # do a chmod 755 on it
    #
    # Edit /etc/elogind/logind.conf (slackware 15.0)
    # You may need to add this:
    # HandleLidSwitch=suspend

    g_user_01=YOUR-USER-ID

    case $1/$2 in
    pre/*)
    logger "INFO ELOGIN: processing $1/$2 SLEEP"
    su $g_user_01 -c "(xscreensaver-command -lock)"
    # expirement with this setting
    sleep 2
    ;;
    post/*)
    logger "INFO ELOGIN: $1/$2 RESUME"
    ;;
    esac
    SCRIPT END -----------------------------------------------

    HTH
    --
    [t]csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Gamgee@gamgee@palantirbbs.ddns.net.remove-s21-this to John McCue on Fri Feb 28 18:14:57 2025
    From Newsgroup: alt.os.linux.slackware

    To: John McCue
    John McCue wrote to alt.os.linux.slackware <=-

    From Newsgroup: alt.os.linux.slackware

    Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
    Hello!

    Is there a way to automatically lock the screen when the system goes
    into suspend when using xscreensaver?

    Yes, see below. This is a paired down script I use:

    <SNIP>

    Paired down? What's it paired with?




    ... All the easy problems have been solved.
    --- MultiMail/Linux v0.52
    --- Synchronet 3.20c-Linux NewsLink 1.2
    Palantir BBS - telnet://palantirbbs.ddns.net
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Marco Moock@mm+usenet-es@dorfdsl.de to alt.os.linux.slackware on Sat Mar 1 14:54:58 2025
    From Newsgroup: alt.os.linux.slackware

    On 28.02.2025 23:45 Uhr John McCue wrote:

    Yes, see below. This is a paired down script I use:

    How is this script named? Where do I need to cause it to be executed?
    --
    kind regards
    Marco

    Send spam to 1740782759muell@stinkedores.dorfdsl.de

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Chris Elvidge@chris@internal.net to alt.os.linux.slackware on Sat Mar 1 14:42:00 2025
    From Newsgroup: alt.os.linux.slackware

    On 28/02/2025 at 16:41, Marco Moock wrote:
    Hello!

    Is there a way to automatically lock the screen when the system goes
    into suspend when using xscreensaver?



    Have you looked at /usr/bin/xscreensaver-settings?
    --
    Chris Elvidge, England
    I WILL NOT DRAW NAKED LADIES IN CLASS

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Marco Moock@mm+usenet-es@dorfdsl.de to alt.os.linux.slackware on Sat Mar 1 19:31:13 2025
    From Newsgroup: alt.os.linux.slackware

    On 01.03.2025 14:42 Uhr Chris Elvidge wrote:

    On 28/02/2025 at 16:41, Marco Moock wrote:
    Hello!

    Is there a way to automatically lock the screen when the system goes
    into suspend when using xscreensaver?



    Have you looked at /usr/bin/xscreensaver-settings?

    Yes, there is an option, but it doesn't work like the other suspend
    settings too there.

    See this thread:
    Message-ID: <vdespj$2bbnt$2@dont-email.me>
    --
    kind regards
    Marco

    Send spam to 1740836520muell@stinkedores.dorfdsl.de

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From John McCue@jmccue@qball.jmcunx.com to alt.os.linux.slackware on Sat Mar 1 22:59:12 2025
    From Newsgroup: alt.os.linux.slackware

    Marco Moock <mm+usenet-es@dorfdsl.de> wrote:
    On 28.02.2025 23:45 Uhr John McCue wrote:

    Yes, see below. This is a paired down script I use:

    How is this script named? Where do I need to cause it to be executed?

    Instructions are in the comments, the name is /lib64/elogind/system-sleep/10_sleep.sh

    It is for slackware 15.0
    --
    [t]csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From John McCue@jmccue@qball.jmcunx.com to alt.os.linux.slackware on Sat Mar 1 23:14:52 2025
    From Newsgroup: alt.os.linux.slackware

    Gamgee <gamgee@palantirbbs.ddns.net.remove-s21-this> wrote:
    <snip>
    Paired down? What's it paired with?

    I to not know what you are asking.

    On my system I have a few custom processes running, so when
    it goes into sleep, I cancel them to prevent issues should
    resume fail. I removed that logic before posting.
    --
    [t]csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Marco Moock@mm+usenet-es@dorfdsl.de to alt.os.linux.slackware on Sun Mar 2 15:19:30 2025
    From Newsgroup: alt.os.linux.slackware

    On 01.03.2025 22:59 Uhr John McCue wrote:

    Instructions are in the comments, the name is /lib64/elogind/system-sleep/10_sleep.sh

    It is for slackware 15.0

    Thanks, so it is directly being called by elogind.
    --
    kind regards
    Marco

    Send spam to 1740866352muell@stinkedores.dorfdsl.de

    --- Synchronet 3.21d-Linux NewsLink 1.2