On Sun, 03 Feb 2013 07:05:59 +0100 Dominic Fandrey <kamik...@bsdforen.de> said:

> The clock module misses day changes that happened while the system
> was in suspend. It currently says on my syste:
> 07:02 Sat, 2 Feb, 2013

how did you suspend? did you use e to suspend?

> In the calendar view it uses the correct date:
> 07:02 Sun, 3 Feb, 2013
> 
> System is FreeBSD stable/9 amd64 with enlightenment-0.17.1.
> Locale is en_GB.UTF-8 and timezone is CET.

in fatc after some puzzling.. the clock module is correct.

1. it listens to e's own E_EVENT_SYS_RESUME event which e detects *IF* it was
the one to do the suspending. on suspend e pulls out a spinning timer that
repeats ever 0.1 sec... if this is interrupted for > 0.2 sec between spins, it
"guesses" that the system was suspended between spins and produces a resume
event. this resume event then re-evaluates data... in fact it re-evaluates the
whole clock, and thus date.
2. it even listens for filesystem changes to /etc/localtime - it didnt look
at /etc/timezone though, so i added that, but it has a fs monitor to detect tz
changes so this all seems correct here. of course on os's that support file
monitoring this will be totally event based. 1 small thing missing for
alternate timzeon sources. fixed.
3. it has support for timerfd's that report system date changes via date -s ()
- of course this works on linux... you're probably totally out of luck on bsd
there as i have no idea if it has any such mechanism to detect date changes.
modern linux kernels do. clock module code handles it... BUT.. it forgot to
settime on it to activate the timerfd so it actually reports the change... i
fixed that too. :)

so if tis date change after a resume from suspend i can only guess that

1. u didnt suspend via e.. which means it wont detect resume. use e to do this
and u'll be fine.
2. e's resume detection is broken.. but that means you'll have all sorts of
other problems with backlight, compositor etc. that wont fade backlight back in
or fade compositor effects in as they both rely on this resume events for
that... same with the "suspending" dialog box too (comp replaces that with
screen fade out/in).

> Regards
> 
> -- 
> A: Because it fouls the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail? m
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to