[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Laptop waking up in bag



2008/6/30 Paolo <oopla@users.sf.net>:
> On Sun, Jun 29, 2008 at 05:30:16PM +0300, Dotan Cohen wrote:
>> >
>>
>> Well, I'd rather avoid playing with system files. Is there a trigger
>> that I can use to run a script when the laptop wakes? I could run a
>
> same as above then, wrap acpi_listen in a script, use option -c to make it
> yield on 1 event, eg
>
> ! while true;do
> !   e=`acpi_listen -c 1`
> !   logger -t acpi-event "=== $e (`hwclock`) ==="
> !#  or simply write on terminal:
> !   echo "=== $e (`hwclock`) ==="
> ! done
>
> likewise, another similar script in another terminal, running as simple
> timestamper:
>
> ! while true;do
> !   logger -t timestamp "=== MARKER (`hwclock`) ==="
> !#  or simply write on terminal:
> !   echo "=== `date +%s` MARKER (`hwclock`) ==="
> !   sleep 5
> ! done
>
> again, add `hwclock` if you suspect system-time skew.
>
> HTH


Thanks, Paolo. I have a little bash to learn before I am able to
implement that, but I will get on it.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Reply to: