2001-10-16 14:51:47

by Frantisek Dufka

[permalink] [raw]
Subject: Wake-up from APM suspend state by /dev/rtc ?

Hello people,

I wanted to record my favourite Simpsons series from TV via my ATI TV wonder
card. It works fine automatically, no X needed, just framebuffer
(nuppelvideo 0.4, nuv2divx, v4lctl from xawtv). I wanted to have my machine
suspended when waiting for the recording to spare some trees.

There is setting in a bios for turning on interrupts which should cause
wake-up. I turned interrupt 8 on. I modified code from
linux/Documentation/rtc.txt To set alarm to some time. Then I tried 'apm -S'
or 'apm -s' and waited.
Unfortunately it doesn't work. When I wake it up by mouse later, the
modified code from rtc.txt gets the interrupt and finishes fine. But it
doesn't wake up itself by RTC interrupt :(

I also tried to turn on kernel compile flag which enables interrupts when
calling APM bios but it didn't help.

I suppose it's a bios bug, so probably I can't do anything with it.

Anyone tried this successfully? Should it work? Can using ACPI instead of
APM help me with this?

I've got Soyo 6VBA133 motherboard (Slot1) with VIA Apollo 133 chipset,
Celeron 900. Kernel 2.4.12.

Thanks for any helpful reply.

Frantisek



2001-10-16 15:14:30

by Xavier Bestel

[permalink] [raw]
Subject: Re: Wake-up from APM suspend state by /dev/rtc ?

le mar 16-10-2001 ? 16:53, Frantisek Dufka a ?crit :
> Anyone tried this successfully? Should it work? Can using ACPI instead of
> APM help me with this?

I remember a little prog called apmsleep, written by Peter Englmaier
<[email protected]> which did exactely that. I don't remember seeing it
working on my laptop though.

Xav

2001-10-16 15:21:51

by Frantisek Dufka

[permalink] [raw]
Subject: Re: Wake-up from APM suspend state by /dev/rtc ?

>
> I remember a little prog called apmsleep, written by Peter Englmaier
> <[email protected]> which did exactely that. I don't remember seeing it
> working on my laptop though.
>
> Xav
>

Thank you for the info. I will search the web for the source. I think there
is a better chance with laptop than normal ATX box for this to work. If it's
fault of the bios I probably can't do anything about it. But thanks anyway.
At least I know that it can work for someone.

Frantisek