Bug#443814: adjtimex: Busy CPU during upgrade: Adjusting system time by -380133 sec/day...

2008-07-28 Thread Alain Guibert
Hello, On Monday, October 1, 2007 at 17:38:23 +0200, Alain Guibert wrote: We can also try to make adjtimex less sensible to system load. The first step on this path [is commited into 1.23] Now a small second step: The first timestamp in a serie is less accurate than the following ones

Bug#474337: adjtimex: hangs waiting for interrupt in /dev/rtc mode

2008-07-28 Thread Alain Guibert
Hello Jim, On Friday, April 4, 2008 at 22:34:40 -0400, James R. Van Zandt wrote: One a Sony Vaio VGN-TXN27N, adjtimex hangs when run as adjtimex -c --verbose opened /dev/rtc for reading waiting for CMOS update-ended interrupt And discussing bug #460065 on Friday, April 4, 2008

Bug#277298: [util-linux] select() to /dev/rtc to wait for clock tick timed out

2008-04-13 Thread Alain Guibert
Hello Paul, On Thursday, April 10, 2008 at 9:42:45 +0200, Paul Menzel wrote: I am experiencing this problem, too. It can be a hardware bug, a kernel bug, or something else. What is your computer exactly? And what is the output of: | # hwclock --rtc=/dev/rtc0 --debug Since some people say,

Bug#411888: still same hwclock problem

2008-04-13 Thread Alain Guibert
On Friday, April 11, 2008 at 20:18:10 +0200, Michael Grosser wrote: | # hwclock --rtc=/dev/rtc0 --debug hwclock: unrecognized option `--rtc=/dev/rtc0' Indeed this old hwclock from util-linux-2.12r didn't have this option. However you can instead make /dev/rtc a symlink to rtc0, temporarily

Bug#411888: still same hwclock problem

2008-04-09 Thread Alain Guibert
Hello Michael, On Wednesday, April 9, 2008 at 10:58:23 +0200, Michael Grosser wrote: On a chip set NVIDIA nForce 630a the commans hwclock --show produces the output select() to /dev/rtc to wait for clock tick timed out. It can be a hardware bug, a kernel bug, or something else. What is the

Bug#411888: still same hwclock problem

2008-04-04 Thread Alain Guibert
Hello Matteo, On Thursday, April 3, 2008 at 16:39:02 +0200, Matteo SISA wrote: a Dell Latitude 120L laptop [...] # hwclock --show select() to /dev/rtc to wait for clock tick timed out I don't know this machine, so it depends: either you are lucky to get a better support (and perhaps even

Bug#471203: adjtimex: segfaults on armel

2008-03-29 Thread Alain Guibert
package adjtimex retitle 471203 adjtimex: --directisa segfaults on armel thanks On Monday, March 24, 2008 at 12:38:59 +0100, Tobias Frost wrote: The no-interrupts-fallback seems to do the trick Excellent, thank you for checking those patches. I could not try the rtc0-fallback, as the

Bug#471203: adjtimex: segfaults on armel

2008-03-22 Thread Alain Guibert
no-interrupt-fallback.patch. Alain. fallback to /dev/rtc0 when /dev/rtc fails Signed-off-by: Alain Guibert [EMAIL PROTECTED] diff -prud adjtimex-1.23.orig/adjtimex.c adjtimex-1.23/adjtimex.c --- adjtimex-1.23.orig/adjtimex.c Sat Mar 22 10:28:25 2008 +++ adjtimex-1.23/adjtimex.cSat Mar 22 15:09

Bug#460065: sytax error in awk in adjtimexconfig

2008-03-22 Thread Alain Guibert
On Friday, February 8, 2008 at 16:04:08 +0100, Alain Guibert wrote: Method #3 (second_change) is clean, and usable by non-root users if they have read rights on /dev/rtc. Accuracy is a little bit less good on good kernels, catastrophic on bad kernels. Bug #471203 revealed that the adjtimex

Bug#471203: adjtimex: segfaults on armel

2008-03-20 Thread Alain Guibert
On Tuesday, March 18, 2008 at 22:41:24 +0100, Tobias Frost wrote: Unfortuantly strace is not available on lenny. I Will install ist from sid, and then send the strace log too. Much thanks, it helps: | open(/dev/port, O_RDWR) = 3 | lseek(3, 112, SEEK_SET) = 112 |

Bug#471203: adjtimex: segfaults on armel

2008-03-18 Thread Alain Guibert
Hello Tobias, On Sunday, March 16, 2008 at 17:53:44 +0100, Tobias Frost wrote: When installing -- or invoking manually -- adjtimex segfaults on lenny/armel. Thank you for reporting. Could you please try if it works calling: | # adjtimex --compare=1 --directisa Please also show us the

Bug#460065: sytax error in awk in adjtimexconfig

2008-02-08 Thread Alain Guibert
On Sunday, February 3, 2008 at 23:44:18 +0100, Alain Guibert wrote: -3) Rename busy_wait() to busywait_uip_fall() only for --directisa mode. Write a new busywait_second_change() function only for /dev/rtc mode, looping around ioctl(RTC_RD_TIME) until the time changes. The attached

Bug#308863: adjtimex: --review suggests inaccurate RTC adjustment

2008-02-08 Thread Alain Guibert
Hello, On Thursday, May 12, 2005 at 16:33:55 +0200, Alain Guibert wrote: Adjtimex --review suggests a little inaccurate RTC adjustement (to put in /etc/adjtime): That needs to be expressed in seconds per day of CMOS time. Not of reference time, nor somewhere in between. The attached patch

Bug#370332: ntp: keep server list separate from other ntp.conf settings

2008-02-06 Thread Alain Guibert
Hello Drew, On Wednesday, February 6, 2008 at 14:43:08 +1100, Drew Parsons wrote: the server list could be read in from a separate file, /etc/ntp.servers say. This could be done either as an #include mechanism reading /etc/ntp.conf (bug #370332 says this does not yet exist) Note that

Bug#460065: sytax error in awk in adjtimexconfig

2008-02-05 Thread Alain Guibert
On Sunday, February 3, 2008 at 23:44:18 +0100, Alain Guibert wrote: -1) Rewrite busy_wait() to make it work in whatever using_dev_rtc mode, decouple cmos_fd for rtc and port, and fix some other minor probs. The attached patch implements this proposal. Klaus: Could you please check

Bug#460065: sytax error in awk in adjtimexconfig

2008-02-03 Thread Alain Guibert
Hello Klaus and Jim, On Saturday, February 2, 2008 at 14:02:23 +0100, Klaus Ethgen wrote: /dev/rtc doesn't allow user access to update interrupts - using busy wait instead Understood: This is printed when ioctl(RTC_UIE_ON) fails, because the kernel driver thinks that the interrupt is not

Bug#435102: confirmed here (/dev/rtc timeout)

2007-11-11 Thread Alain Guibert
Hello, a quick erratum: On Wednesday, September 19, 2007 at 17:39:04 +0200, Alain Guibert wrote: [When the RTC update interrupt cannot be enabled] the fallback method (busywait for change of time) seems to be much less accurate than with --directisa itself (busywait for UIP fall). Testing

Bug#435102: confirmed here (/dev/rtc timeout)

2007-11-11 Thread Alain Guibert
Hello Ondrej, Martin, David, and Paul. On Thursday, September 20, 2007 at 11:20:15 +0200, Ondrej Certik wrote: [bugs #435102, #439593, and #450686] [hwclock timeouts waiting for RTC interrupt] Where is the real problem, that it doesn't work for me without the --directisa? Is

Bug#445448: adjtimex: fails without /etc/adjtime

2007-10-05 Thread Alain Guibert
with other RTC date values, but is only simply incremented at midnight. The day meant is in the eye of the reader, which nearly always just ignores the value. Most common assumption is that 1 means Sunday. Signed-off-by: Alain Guibert [EMAIL PROTECTED] diff -prud adjtimex-1.22.orig/adjtimex.c

Bug#443814: adjtimex: Busy CPU during upgrade: Adjusting system time by -380133 sec/day...

2007-10-01 Thread Alain Guibert
machines the ioctl(RTC_UIE_ON) succeeds. Alain. Timestamp the tick of the CMOS clock at the closest possible, for better accuracy and lower dispersion of measures. Signed-off-by: Alain Guibert [EMAIL PROTECTED] diff -prud adjtimex-1.22/adjtimex.c adjtimex-1.22.mod/adjtimex.c --- adjtimex-1.22

Bug#435102: confirmed here (/dev/rtc timeout)

2007-09-27 Thread Alain Guibert
On Tuesday, September 25, 2007 at 1:27:12 +0200, Ondrej Certik wrote: hwclock: Open of /dev/rtc failed, errno=16: Device or resource busy. Using direct I/O instructions to ISA clock. This case works, as hwclock automatically fallbacks to --directisa by itself. However the script can't guess

Bug#443487: hwclock.sh is running too late

2007-09-26 Thread Alain Guibert
On Tuesday, September 25, 2007 at 13:42:36 -0600, LaMont Jones wrote: -rw-r--r-- root/root 2916 2007-09-21 22:12 ./usr/share/doc/util-linux/README.Debian.hwclock I see no .gz on that file as delivered. There was previously, and now there is not. Ok, I had not noticed. When I was

Bug#443487: hwclock.sh is running too late

2007-09-25 Thread Alain Guibert
bugs #435102 and #439593). Alain. fixes 3 minor quirks in hwclock.sh 2.13-7 see Debian bug #443487 Signed-off-by: Alain Guibert [EMAIL PROTECTED] --- ulng-7/debian/hwclock.sh.orig Tue Sep 25 13:37:30 2007 +++ ulng-7/debian/hwclock.shTue Sep 25 14:20:29 2007 @@ -12,7 +12,7

Bug#435102: confirmed here (/dev/rtc timeout)

2007-09-24 Thread Alain Guibert
On Thursday, September 20, 2007 at 11:20:15 +0200, Ondrej Certik wrote: Where is the real problem, that it doesn't work for me without the --directisa? Is it a kernel problem, or a hardware problem? Well, I don't know. There are several possible scenarios. Maybe a misdesigned RTC chip

Bug#443773: adjtimex: add a --directisa option

2007-09-23 Thread Alain Guibert
Package: adjtimex Version: 1.21.1-3 Severity: normal Tags: patch Hello, Reportedly, on some machines, adjtimex hangs with the /dev/rtc driver, because ioctl(RTC_UIE_ON) succeeds, but no interrupt never comes. The attached patch adds a --directisa option to adjtimex, named after the hwclock

Bug#435102: confirmed here (/dev/rtc timeout)

2007-09-20 Thread Alain Guibert
Hello Ondrej, On Tuesday, September 11, 2007 at 14:50:54 +0200, Ondrej Certik wrote: HWCLOCKPARS=--directisa How about using this by default so that I don't have to make this change manually? The --directisa RTC access method has some drawbacks: - It wastes processor cycles by

Bug#439593: Keep the option HWCLOCKPARS=--directisa in /etc/init.d/hwclock.sh

2007-09-20 Thread Alain Guibert
On Monday, September 3, 2007 at 15:55:14 +0100, David wrote: I *think* that, in a computer with Windows and Linux, the time must be saved in the hardware. Well no, it's not linked. The time should be written to the hardware clock in any case. # hwclock --systohc select() to /dev/rtc to

Bug#439593: Keep the option HWCLOCKPARS=--directisa in /etc/init.d/hwclock.sh

2007-08-31 Thread Alain Guibert
Hello David, On Saturday, August 25, 2007 at 20:52:32 +0100, David wrote: I have a dual boot with Windows Vista, so I need the option HWCLOCKPARS=--directisa in /etc/init.d/hwclock.sh. There is a link between the Vista dual boot and hwclock --directisa? I thought this option was only for

Bug#387042: hwclock: No need to call hwclock during boot and shutdown on i386

2006-09-15 Thread Alain Guibert
On Wednesday, September 13, 2006 at 8:06:40 +0200, Petter Reinholdtsen wrote: I do realise that hwclock have its purpose if the hardware clock is using local time, and not UTC, but am not equally convinced that it is useful if it is using UTC. What about drift correction? The RTC chip of my

Bug#387042: hwclock: No need to call hwclock during boot and shutdown on i386

2006-09-12 Thread Alain Guibert
Hello Petter, On Monday, September 11, 2006 at 22:41:24 +0200, Petter Reinholdtsen wrote: a lot of time is spent in hwclockfirst.sh and hwclock.sh. Dropping these from the boot reduced the boot time from 44 to 28 seconds. Are you sure? They are supposed to take between 1 and 2 seconds.

Bug#352970: radioclk: wrong sync on plain second offsets

2006-02-15 Thread Alain Guibert
Package: radioclk Version: 1.0-1 Severity: important Hello, When the offset between system time and radio time is around an integer number of seconds, radioclkd 1.0 wrongly calculates the offset to the nearest plain second. Examples: - If the real offset is +950 ms, radioclk will put into

Bug#163315: ntp: Using local clock as reference

2005-05-19 Thread Alain Guibert
Hello Yann, On Friday, October 4, 2002 at 3:43:47 PM +0200, Yann Droneaud wrote: I usualy use the local clock (RTC) as a fallback synchronization source. This source is quite always available on all computers, but should only use by ntpd if this clock is not modified by hands and set to

Bug#308863: adjtimex: --review suggests inaccurate RTC adjustment

2005-05-12 Thread Alain Guibert
Package: adjtimex Version: 1.20-5 Severity: normal Adjtimex --review suggests a little inaccurate RTC adjustement (to put in /etc/adjtime): That needs to be expressed in seconds per day of CMOS time. Not of reference time, nor somewhere in between. Example with this test-clocks.log file: |

Bug#308864: adjtimex: FTBFS without linux/rtc.h

2005-05-12 Thread Alain Guibert
Package: adjtimex Version: 1.20-5 Severity: normal Tags: upstream Hello, That's not a Debian package, but an upstream bug. And upstream BTS is right here, isn't it? On old systems without linux/rtc.h, making version 1.20 of adjtimex gives: | cc -g -O2 -Wall -I. -DVERSION=\1.20\ -o adjtimex

Bug#308396: adjtimex: hardware clock localtime and DST

2005-05-09 Thread Alain Guibert
Package: adjtimex Version: 1.16-1 Severity: normal Hello, Reading the localtime hardware clock with adjtimex is false by one hour when a to-DST or back transition occured since last CMOS clock write. Example here CMOS was last set (with hwclock 2.23) on March 22 CET +0100 winter time, and still