Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clock keeps resetting despite using ntpd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6347
Location: /usr/lib64/lv2

PostPosted: Mon May 09, 2011 7:31 pm    Post subject: Clock keeps resetting despite using ntpd Reply with quote

Why does my machine keep resetting the clock when I've set the timezone to GMT and use ntpd? It seems like after every update, I have to cp /usr/share/zoneinfo/GMT /etc/localtime and restart ntp-client.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon May 09, 2011 7:46 pm    Post subject: Reply with quote

audiodef,


cp /usr/share/zoneinfo/GMT ... looks wrong. Unless you are in the GMT timezone and don't have daylight saving time.

Your BIOS should be set to UTC time and your timezone to <Continent/BigTown>
e.g. I sse Europe/London as I'm in the UK
_________________
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
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7447

PostPosted: Mon May 09, 2011 7:50 pm    Post subject: Reply with quote

as neddy forgot to tell you where :
Code:
cat /etc/timezone
Europe/Paris
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6347
Location: /usr/lib64/lv2

PostPosted: Mon May 09, 2011 7:58 pm    Post subject: Reply with quote

See, the thing is, I want my machines on GMT anyway. That's just my personal preference.

So if something's trying to match my "local" time zone, I want to turn it off.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7447

PostPosted: Mon May 09, 2011 8:10 pm    Post subject: Reply with quote

Code:
/etc/conf.d/hwclock
# Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time).  If that clock is set to the local time, then
# set CLOCK to "local".  Note that if you dual boot with Windows, then
# you should set it to "local".
clock="UTC"


and i'm not sure /etc/timezone is still use, might be an error, sorry
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon May 09, 2011 8:14 pm    Post subject: Reply with quote

krinn,

/etc/timezone is the baselayout2 file for your timezone
/etc/localtime is the copy of your timezone file from /usr/share/zoneinfo/...
_________________
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
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6347
Location: /usr/lib64/lv2

PostPosted: Tue May 10, 2011 2:09 pm    Post subject: Reply with quote

I wonder if I've had this problem because I had clock_systohc="YES". I changed it to NO. We'll see what happens.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Wed May 11, 2011 4:44 pm    Post subject: Reply with quote

clock_systohc (if I remember it right) really ought to be defaulted to off.
The update path is NTP clock => hardware clock => system clock,
and the system clock shouldn't be used to source the hardware clock,
except on a specific NTP-sourced update sequence.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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