[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Detection of hibernation wake-up
From: Thiago Macieira <thiago () kde ! org>
Date: 2008-10-22 8:39:10
Message-ID: 200810221039.11123.thiago () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Wednesday 22 October 2008 10:17:30 David Jarvie wrote:
> On Wednesday 22 October 2008 8:31, Kevin Ottens wrote:
> > Le Wednesday 22 October 2008, Thiago Macieira a écrit :
> >> Kevin Ottens wrote:
> >> >> Check if HAL emits any interesting signals.
> >> >
> >> >It doesn't
> >>
> >> Can't we ask them to do that?
> >
> > It's kind of in maintainance stage. Feel free to try though.
>
> This would be the best solution. The alternative, if it is to work on all
> systems, would be to regularly recalculate the timers, in case the clock
> has jumped due to hibernation. That means waking the program up
> frequently, which is probably not ideal on a laptop.
In order to calculate how long the system was in hibernation, you need to know
when it entered that mode. That means you need another signal too. And you
must be able to process that signal *before* your process is frozen by the
kernel, which is not guaranteed at all.
Furthermore, the clock may jump around, both during hibernation and during
normal system operation.
So, I have to ask: what problem are you trying to solve? Are you sure
adjusting alarm times is the correct thing to do?
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Software Engineer - Nokia, Qt Software
Qt Software is hiring - ask me
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic