LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-17-2006, 11:59 AM   #1
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Rep: Reputation: 15
Debian keeps forgetting what time it is


Hi (again). I've been having trouble ever since my last install trying to get my system to keep track of time. Right now it's 1255 local time (EST) but my kde clock says "new york 7:55am" I went into "adjust date and time" and THAT window says the current time is 1255, but also says current timezone is UTC. This despite the fact that the drop down timezone menu is set to new york. It seems that the computer is reading the time from the bios and interpreting that as UTC. I think I told the installer that system time was not utc, but since it's confused (or I messed up) is there a way to "remind" it? Also, I don't know if this is relevent since the minutes of time are right, but whenever I boot up or shut down, I see a message saying something like "error setting system clock from hardware. /dev/rtc wait for tick timed out"
Any ideas much appreciated!
 
Old 01-17-2006, 12:06 PM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
One thing you could do is to install the ntpdate deb package. This will go out and query an NTP server and set the time for you.

Another thing you could do (I guess) is to set the hardware clock to the proper time using the hwclock command.
 
Old 01-17-2006, 05:06 PM   #3
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
apart from seting the hardware clock to proper time in your bios, maybe if the computer is a little old the battery on your mother board has run flat. Check it because if that is the case all your bios setting wouldn't be remembered either as the battery keeps the cmos working as well.
 
Old 01-17-2006, 06:56 PM   #4
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
The computer's only a year old, and the clock is consistently off by 5 hours to the minute. I think I'll try setting the hardware clock to UTC (since that's what debian thinks it is) and just tell Windows to get used to it

I've experimented with ntp, but I'm on a campus network and either the time responses are blocked or we've got too much lag for it to be at all accurate

Thanks for the tips guys.
 
Old 01-17-2006, 08:55 PM   #5
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Easiest way to set your clock is to use Rdate. There is no configuration required. To do it manually you would open a terminal and issue a command similar to the following:

# rdate -s time.iastate.edu

You can create a simple script to run at boot if you want the time set on each startup, and/or make an hourly cronjob to continue syncing with the correct time while your system is running. Just be sure you have your TZ set properly.
 
Old 01-18-2006, 05:16 PM   #6
LeftyAce
Member
 
Registered: Oct 2005
Distribution: Debian
Posts: 69

Original Poster
Rep: Reputation: 15
unfortunately rdate seems to time out trying to find a server (quite possible given my experience of the latency of the internet conn. here :-(
When I set the BIOS clock to utc, linux was happy and displayed the correct time and timezone. Alas, as is often hte case WIndows screwed everything up. AFter booting into windows I think it "fixed" the bios time... So for the time being I've just set my timezone to London (which results in the "raw" clock time being displayed) If anyone knows how to configure debian to accept that the bios is NOT set to utc, I'd be interested to know, but for now I guess I'll have to live w/it. (another reason to ditch my windows installation entirely.....)

Thanks for your suggestions guys, unfortunately my network situation makes the ntp fix (which looks quite appealing) unworkable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forgetting Root Authorization duane534 Fedora 0 09-16-2005 05:26 PM
kernel compile -- What am I forgetting? WingNut Slackware 4 12-25-2004 10:52 PM
debian keeps forgetting my NIC chrull Linux - Hardware 0 04-22-2004 12:31 PM
'Open With...' forgetting Micro420 Mandriva 1 10-03-2003 10:55 AM
Why does Xconfigurator keep forgetting my XConfig? Bert Linux - Software 2 09-11-2002 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration