Mailing List archive

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

[linux-dvb] Re: Wakeup Problem (was: Re: Video Disk Recorder version 0.94



Hello!

look at http://www.seyringer.priv.at

Peter
----- Original Message -----
From: "Rainer Zocholl" <Usenet-372110@zocki.toppoint.de>
To: <linux-dvb@linuxtv.org>
Sent: Wednesday, September 05, 2001 8:58 PM
Subject: [linux-dvb] Wakeup Problem (was: Re: Video Disk Recorder version
0.94


> Klaus.Schmidinger@cadsoft.de(Klaus Schmidinger)  02.09.01 17:52
>
> Once upon a time Klaus Schmidinger shaped the electrons to say...
>
> >The new version 0.94 of the Video Disk Recorder project
> >is now available at
>
> >    http://www.cadsoft.de/people/kls/vdr/download.htm
>
> >- Implemented automatic shutdown (see INSTALL and MANUAL for details).
>
> real nice feature!
> Thanks a lot.
>
>
> After writing a smal script and editing "runvdr"
>
> file VDR/runvdr:
> ...
> VDRCMD="$VDRPRG -w 60 -s ./pwroff $*"
> ...
>
>
> file VDR/pwroff:
> #!/bin/sh
> # setRTCwakeup $(($1 - 300))
> logger VDR shutdown 1:$1 2:$2
> sync
> /sbin/poweroff
>
>
> the machine beautifully shuts down.
>
>
>
> But:
> How to wake up?
>
> Tried a hacked rtctest, the apmsleep (out of apm 3.0)
> to enter a alarm time, but with little sucess.
> rtctest runs, and the interrupt occurs (see below).
>
> The BIOS (AMI MS-6351 V1.4 of MSI MS-6215 LAN-PC)
> knows a Alarm Clock wait up.
> This works flawlessly, when set im BIOS.
>
> The i815-Chipset (ICH 82801AA) of the MS-6351 mobo has
> an "enhanced RTC" which allows alarms 30 days in future,
> not just everyday as the MC146818A did.
> Setting the Alarm Date day to "Every day" is required
> to make rtctest run at all, because the current rtc-driver do not
> set/touch the "Date Alarm". The "date alarm" value is located
> in the former "spare" bit 5..0 of REG D. Else the day the BIOS
> set remain in the bits, cause a delay of several days...so
> rtctest seems to hang.
>
>
>
> The BIOS overwrites the RTC-Alarm register when APM "powers down"
> with value it may find some wher in it's NVRAM.
> So the changesto the RTC Alaram register  apmsleep or rtctexst did
> are all lost, the expanend rtctest shows the BIOS Alarm time in rtc
> alarm register!
>
> Turning BIOS Alarm off:
> rtc alarm register now holds the value previously written by rtctest.
> But: The PC does not wake up in the programmed moment.
>
> So the only way seems to be to modify the NVvalues the BIOS writes
> into the RTC...
>
>
>
> apmsleep -S is only turning fans off (they stay off!) and
> tries to sent the dvb to sleep:
> Sep  5 18:41:03 msi kernel: dvb_suspend()
> Sep  5 18:41:03 msi kernel: dvb_suspend()
> Sep  5 18:41:03 msi kernel: saa7146_suspend()
> Sep  5 18:41:03 msi kernel: dvb_suspend()
> but not for long:
> Sep  5 18:41:10 msi kernel: saa7146_resume()
> Sep  5 18:41:10 msi kernel: dvb_resume()
> Sep  5 18:41:10 msi kernel: saa7146_resume()
> Sep  5 18:41:10 msi kernel: dvb_resume()
>
>
>
> msi:~/video/VDR# apmsleep -d +00:04
> Current RTC time is 18:41:03.
> Current local time is 18:41:03.
> Setting RTC alarm time to 18:45:03.
> RTC alarm time now set to 18:45:03.
> Waiting until clock jumps
> <60secs>
> Time out -- no time leap happened
>
>
>
> Someone already solved this problem?
> It may be only one single bit ;-)
>
> ("Normal" APM users are talking only about notebooks and do
> not care a lot iabout inmobiles...
> Two i already asked at ACPI, but "wake up" is currently no feature,
> their seems to a lot of problems to sleep.)
>
>
>
> --
> Info:
> To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe
linux-dvb" as subject.
>



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.


Home | Main Index | Thread Index