That tells me that /etc/apm/suspend is not being called.

logger is a command, which takes either a message or reads from stdin.
"logger suspend" on my laptop gives me:

    $ logger suspending
    $ grep suspending /var/log/messages
    Apr 12 08:50:42 dante phessler: suspending
    $

So, for some reason this file is not being ran.

Lets focus on that for now.

Can you run /etc/apm/suspend by itself?  NOT with "sh" in front, but like:

    $ /etc/apm/suspend
    $

That should do two things.  That should generate a syslog message, and
activate your screensaver.  If it only does a syslog message, then that
is a good first step.


On 2016 Apr 12 (Tue) at 11:42:09 +0200 (+0200), Pau Amaro-Seoane wrote:
:did you actually mean logger suspending?
:
:$ cat /etc/apm/suspend
:#!/bin/sh
:logger suspending
:pkill -USR1 xidle
:
:or simply logger?
:
:In any case, this is not producing output in /var/log/messages
:
:In the case in which I have
:$ cat /etc/apm/suspend
:#!/bin/sh
:logger
:pkill -USR1 xidle
:
:the /var/log/messages is what I have pasted here:
:
:http://pastebin.com/7faQqpfs
:
:I do not see any output from suspend... when I had the logger
:suspending line, it didn't produce anything either
:
:Thanks for your time
:
:2016-04-12 8:52 GMT+02:00 Peter Hessler <phess...@theapt.org>:
:> Ok.  Let's start debugging.
:>
:> Can you add "logger suspending" to the top of /etc/apm/suspend, do a few
:> suspend/resume cycles and verify that is printed in /var/log/messages.
:> That will tell us if the suspend script is running or not.
:>
:>
:>
:> On 2016 Apr 12 (Tue) at 07:02:13 +0200 (+0200), Pau Amaro Seoane wrote:
:> :yes, because I have it in rc.conf.local running with flags = -C
:> :
:> :El 12 abr 2016, a les 1:26, Raf Czlonka <rafal.czlo...@gmail.com> va 
escriure:
:> :> On Mon, Apr 11, 2016 at 07:59:50PM BST, Pau Amaro-Seoane wrote:
:> :>> $ ls -lrt /etc/apm/suspend
:> :>> -rwxr-xr-x  1 root  wheel  49 Apr 10 00:47 /etc/apm/suspend
:> :>>
:> :>> Still not locking...
:> :>
:> :> Is apmd(8) running at all?
:> :>
:> :> Raf

-- 
"Go to Heaven for the climate, Hell for the company."
                -- Mark Twain
_______________________________________________
Openbsd-newbies mailing list
Openbsd-newbies@sfobug.theapt.org
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to