Skip to contentSkip to conversation

Wake-up from APM suspend state by /dev/rtc ?

DISCUSSION Frantisek Dufka 2 participants 3 messages Oct 16, 2001

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Frantisek Dufka

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

#2 lore raw
In reply to Frantisek Dufka
Quoted 7 lines

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