Time on, since resumption from a suspend?

2006-04-13 Thread STeve Andre'
   I've been looking for a way to figure out how long my laptop has
been on since the waking from the last suspend, but I don't see
any way to do that.

   Am I missing something?  Thanks.

--STeve Andre'



Re: Time on, since resumption from a suspend?

2006-04-13 Thread Andrew Smith
How about using apmd to run a resume script where you touch a file and then
having sometime that simply subtracts the current time from the touched file
time? 

A simple script should be able to do that

-Andy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
STeve Andre'
Sent: 13 April 2006 20:45
To: misc@openbsd.org
Subject: Time on, since resumption from a suspend?

   I've been looking for a way to figure out how long my laptop has
been on since the waking from the last suspend, but I don't see
any way to do that.

   Am I missing something?  Thanks.

--STeve Andre'



Re: Time on, since resumption from a suspend?

2006-04-13 Thread STeve Andre'
On Thursday 13 April 2006 15:45, STeve Andre' wrote:
I've been looking for a way to figure out how long my laptop has
 been on since the waking from the last suspend, but I don't see
 any way to do that.

Am I missing something?  Thanks.

 --STeve Andre'

Thanks for the ideas, but I must have been on drugs when I was
looking at the apm stuff.  There is an /etc/apm dir which can have
a suspend, standby, resume, powerup or powerdown script which
could do anything.

I feel really stupid for not having comprehended what I read.  Once
again OpenBSD already has exacttly what I was looking for; I just 
didn't grok it..  Sorry for the noise...

--STeve Andre'