Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Computer Clock is allways late [Broken again =/ ]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Wed Aug 17, 2005 7:38 pm    Post subject: Computer Clock is allways late [Broken again =/ ] Reply with quote

Since ive installed 2005.1 on my box my clock is allways late doesnt matter how many times I check it. Ive looked on the reported bug and found nothing that matches with my problem.
here is the output of emerge --info that was requested on bug reports.
Code:
Version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://gentoo.ccccom.com http://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups curl eds emboss encode esd fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY



Ah im not having such problems in windows and the pc battery is new.


Last edited by Maragato on Sun Nov 06, 2005 1:07 am; edited 2 times in total
Back to top
View user's profile Send private message
nanoczar
Apprentice
Apprentice


Joined: 10 Dec 2002
Posts: 192
Location: Henderson, TN

PostPosted: Wed Aug 17, 2005 7:49 pm    Post subject: Reply with quote

How different is the time? I recently had this problem because Windoze made my timezone different and caused the shift in time. (Shift in time...rather funny). Make sure your BIOS time is correct, then make sure Windoze is right. Then boot into gentoo. If your gentoo system is borking your time then you need to set /etc/localtime (see the install docs).

Why do we continue to dual boot? :) Must be for the torture. ;)

-nanoczar
_________________
Don't fight the LaTeX. WORK with the LaTeX!! Become one with the LaTeX!!! - JIC
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Wed Aug 17, 2005 7:53 pm    Post subject: Reply with quote

nanoczar wrote:
How different is the time? I recently had this problem because Windoze made my timezone different and caused the shift in time. (Shift in time...rather funny). Make sure your BIOS time is correct, then make sure Windoze is right. Then boot into gentoo. If your gentoo system is borking your time then you need to set /etc/localtime (see the install docs).

Why do we continue to dual boot? :) Must be for the torture. ;)

-nanoczar


Windows time is right bios too, the problem is just with gentoo.
Back to top
View user's profile Send private message
jmja89
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2005
Posts: 144

PostPosted: Wed Aug 17, 2005 7:57 pm    Post subject: Reply with quote

Sometimes if DMA is not enabled on your harddrive(s) you will get clock drift. Perhaps that is the problem.
Back to top
View user's profile Send private message
nanoczar
Apprentice
Apprentice


Joined: 10 Dec 2002
Posts: 192
Location: Henderson, TN

PostPosted: Wed Aug 17, 2005 8:07 pm    Post subject: Reply with quote

So is there a constant difference or a drift? I too have seen both but it has been a while...
_________________
Don't fight the LaTeX. WORK with the LaTeX!! Become one with the LaTeX!!! - JIC
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Wed Aug 17, 2005 8:26 pm    Post subject: Reply with quote

nanoczar wrote:
So is there a constant difference or a drift? I too have seen both but it has been a while...

It is a drift, how do I check if I got dma enabled?
Back to top
View user's profile Send private message
jmja89
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2005
Posts: 144

PostPosted: Wed Aug 17, 2005 8:31 pm    Post subject: Reply with quote

Code:
/sbin/hdparm /dev/hda
and see if dma is on.
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Wed Aug 17, 2005 8:31 pm    Post subject: Reply with quote

jmja89 wrote:
Sometimes if DMA is not enabled on your harddrive(s) you will get clock drift. Perhaps that is the problem.


Oki I think DMA is disabled, how can I fix it?
Code:
/dev/hda:

 Model=Maxtor 6E040L0, FwRev=NAR61590, SerialNo=E167SDNE
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=80293248
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 udma6
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: (null):

 * signifies the current active mode
Back to top
View user's profile Send private message
rdk
n00b
n00b


Joined: 31 Jul 2005
Posts: 27
Location: Zadar, Croatia

PostPosted: Wed Aug 17, 2005 10:34 pm    Post subject: Reply with quote

Code:
/sbin/hdparm -d 1 /dev/hdX


where X is a letter of you hard disk.
_________________
Quote:
/* Would you like to try our SMCC Delux? */
/* Lettuce, tomato, buggy hardware (no extra charge)? */
/* Take care. */
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Wed Aug 17, 2005 10:44 pm    Post subject: Reply with quote

Done:
Code:

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Wed Aug 17, 2005 11:11 pm    Post subject: Reply with quote

Maragato,

You have a piece missing from your kernel - the chipset driver for your IDE chiip.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Wed Aug 17, 2005 11:21 pm    Post subject: Reply with quote

Maragato,

In make menuconfig navigate
Code:
Device Drivers
ATA/ATAPI/MFM/RLL support (IDE)
Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support (BLK_DEV_IDE)
PCI IDE chipset support (BLK_DEV_IDEPCI)
Use PCI DMA by default when available (IDEDMA_PCI_AUTO)
SiS5513 chipset support (BLK_DEV_SIS5513)

and turn on the last item as built in.

Now recompile and reinstall your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Thu Aug 18, 2005 3:03 am    Post subject: Reply with quote

Also note that Windows runs a time service (sntp) by default. Are you running ntpd or openntpd under Gentoo?
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
opqdan
Guru
Guru


Joined: 13 Dec 2004
Posts: 429
Location: Redmond, WA, USA

PostPosted: Thu Aug 18, 2005 1:16 pm    Post subject: Reply with quote

If the difference in time is constant (ie, a constant number of hours, probably equal to the change due to your time zone) then the problem is windows. Windows will reset the computers time to be its local time, causing Linux confusion when it thinks the computer is set to GMT. Just change the setting to LOCAL.

in /etc/conf.d/clock change
Code:
CLOCK="UTC"
to
Code:
CLOCK="local"
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Fri Aug 19, 2005 12:51 am    Post subject: Reply with quote

I had to recompile the kernel, it was a DMA problem. Thanks guys specially neddy who helped me via irc too. :)
Back to top
View user's profile Send private message
Maragato
Apprentice
Apprentice


Joined: 10 Mar 2005
Posts: 150

PostPosted: Sat Nov 05, 2005 10:13 pm    Post subject: Reply with quote

Guys Im having this very same problem again after a world update Ive checked all your comments but got no idea why clocks is drifting, dma is on since I havent touched the kernel. any ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum