You are not logged in.

#1 2009-07-19 20:26:31

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Clock / date changes, don't know why

Hi community, I'm new to Arch Linux (former Ubuntu user) and have a couple of questions.

When I start up my Laptop (ThinkPad SL300) the clock and the date is wrong.
So I set it to the right time / date. But the next time I use my Laptop its again a wrong time / date.

Anybody an idea what is wrong?


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

#2 2009-07-19 20:32:06

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Clock / date changes, don't know why

Hi, what is the timezone set to in /etc/rc.conf?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2009-07-19 20:52:01

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Re: Clock / date changes, don't know why

"Europe/Berlin", so its the right time zone for me.
By now i noticed, that if i just restart my system the time / date is still right.
So it might be a problem with the battery, right? But the crazy thing is, all the other BIOS settings are saved correctly...


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

#4 2009-07-19 20:55:30

10wattmindtrip
Member
Registered: 2009-06-18
Posts: 28

Re: Clock / date changes, don't know why

Are you dual booting with another OS?


which would you choose: A god that never answers you or a society that embraces you?

Offline

#5 2009-07-19 20:57:02

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: Clock / date changes, don't know why

If the first number in /var/lib/hwclock/adjtime is very big, you might want to try changing it to 0. That number is the amount of seconds your clock is adjusted on every boot to account for the natural drift of your hardware clock.

Offline

#6 2009-07-19 21:23:59

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Re: Clock / date changes, don't know why

Yes, I'm dualbooting with Vista, but I usually never boot it.

My /var/lib/hwclock/adjtime lokks like that:

-9047.252027 1248037133 0.000000
1248036007
LOCAL

so should i change it to
-0 1248......(and so on)?


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

#7 2009-07-19 21:30:56

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Clock / date changes, don't know why

Don't mess with the contents. Just remove /var/lib/hwclock/adjtime, make sure your clock has been properly set, restart and check its contents again. It should now feature a rather low value. Otherwise you might have a problem with your hardwre clock.


To know or not to know ...
... the questions remain forever.

Offline

#8 2009-07-19 22:27:07

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: Clock / date changes, don't know why

Become root then do the following:

date -s 00:24 # to set the time
hwclock --systohc # to synchronize hwclock with current time. Nothing should change after reboot.

Last edited by orschiro (2009-07-19 22:28:07)

Offline

#9 2009-07-19 22:39:53

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Re: Clock / date changes, don't know why

Ok. I did what bernarcher told me to do. Now my /var/lib/hwclock/adjtime looks like that:

0.000000 1248042640 0.000000
1248042640
LOCAL

I hope that fixed the problem.
Thanks so far!


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

#10 2009-09-01 16:15:03

paketillo2k
Member
Registered: 2009-06-11
Posts: 11

Re: Clock / date changes, don't know why

Same error. Didn't fix

Offline

#11 2009-09-01 16:28:31

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Clock / date changes, don't know why

In your rc.conf, are you using localtime or UTC?


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#12 2009-09-01 17:22:19

arunix
Member
From: /home/kurali
Registered: 2009-04-08
Posts: 93

Re: Clock / date changes, don't know why

i was Facing the Same problem at mine desktop
i tried it.

Just Remove the file 
/var/lib/hwclock/adjtime

and reboot ur system
after reboot it will create a new file with new values..


or tyr it.
http://bbs.archlinux.org/viewtopic.php? … 16#p545016


Minds are like parachutes. They only function when they are open.

Offline

#13 2009-09-15 19:49:57

paketillo2k
Member
Registered: 2009-06-11
Posts: 11

Re: Clock / date changes, don't know why

arunix wrote:

i was Facing the Same problem at mine desktop
i tried it.

Just Remove the file 
/var/lib/hwclock/adjtime

and reboot ur system
after reboot it will create a new file with new values..


or tyr it.
http://bbs.archlinux.org/viewtopic.php? … 16#p545016

Works for me, thx

Offline

Board footer

Powered by FluxBB