Re: Laptop waking up in bag
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
--
paolo
Reply to: