FS#31758 - [openntpd] Time a few minutes ahead after suspend/resume
Attached to Project:
Community Packages
Opened by Olivier Mehani (shtrom) - Tuesday, 02 October 2012, 02:06 GMT
Last edited by Balló György (City-busz) - Saturday, 14 September 2013, 18:42 GMT
Opened by Olivier Mehani (shtrom) - Tuesday, 02 October 2012, 02:06 GMT
Last edited by Balló György (City-busz) - Saturday, 14 September 2013, 18:42 GMT
|
Details
Description:
After suspend, with OpenNTPd running, the machine clock ends up being too fast by a few minutes. This seems linked to time gaps disturbing NTP estimates [0]. http://forums.fedoraforum.org/showpost.php?s=542c33c6be19e850f2be69917375d3a6&p=1438830&postcount=4| Additional info: * community/openntpd 3.9p1-19 * extra/pm-utils 1.4.1-5 Steps to reproduce: * Install OpenNTPd * Suspend the machine * Go have lunch (or a nap, or a beer, or whatever takes some time) * Resume the machine * Behold the future A fix to the problem seems to be to restart the daemon when resuming. The attached script, to be put in /etc/pm/sleep.d/90openntpd seems to fix the problem. Perhaps it should be included with the package? |
This task depends upon
Closed by Balló György (City-busz)
Saturday, 14 September 2013, 18:42 GMT
Reason for closing: Works for me
Saturday, 14 September 2013, 18:42 GMT
Reason for closing: Works for me
* local/pm-quirks 0.20100619-3
* local/pm-utils 1.4.1-6
Tested with 'systemctl suspend' for my 20-odd min lunch break; no time shift.
(I'll try some more times and report here, to be sure.)
I have
HandlePowerKey=hibernate
uncommented in my /etc/systemd/logind.conf, and replaced my /etc/acpi/handler.sh by a no-op (it only issues calls to logger, and I cannot see these messages anywher anyway; it's probably no longer used.).
$ tail /var/log/pm-suspend.log
And check the last line. If it's an old date, then you are probably using systemd.
> $ tail /var/log/pm-suspend.log
> Running hook /usr/lib/pm-utils/sleep.d/01grub resume suspend:
>
> /usr/lib/pm-utils/sleep.d/01grub resume suspend: success.
> Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:
>
> /usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
> Running hook /usr/lib/pm-utils/sleep.d/00logging resume suspend:
>
> /usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
> Sun Jul 21 21:39:05 CEST 2013: Finished.
> $ ls -l /var/log/pm-suspend.log
> -rw-r--r-- 1 root root 451528 Jul 22 05:39 /var/log/pm-suspend.log