You are not logged in.
hi, i'm not sure if this is the right place to post but here we go..
I've just installed arch on my laptop and now everything seems to work pretty well, although the clock in gnome/cinnamon is 2 hours off hwclock/localtime. Does anyone have a suggestion how to fix this? I don't seem to be able to edit it manually through the gui
Last edited by frmi (2012-08-21 15:29:45)
Offline
Is your timezone off from UTC by 2 hours? Set up your timezone, obviously.
I believe Arch should run "hwclock -s" at startup - haven't checked. It's what I do (different distro though).
Offline
i have already set the local
# ln -s /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
On my old laptop i didn't have to do hwclock -s on start up if i remember right..
Offline
When you did the install, did you do this step: https://wiki.archlinux.org/index.php/Be … clock_time
the clock in gnome/cinnamon is 2 hours off hwclock/localtime
Does this mean your hardware clock is set to local time?
What does
sudo hwclockreturn (and is that local time)?
and what is in /etc/adjtime?
Last edited by 2ManyDogs (2012-08-19 11:40:37)
Offline
To get your system to use localtime with systemd, you need the following in /etc/adjtime:
[dean@PsyMadness etc]$ cat adjtime
0.0 0.0 0.0
0
LOCALCheck the systemd wiki pages if you want to know more.
Offline
When you did the install, did you do this step: https://wiki.archlinux.org/index.php/Be … clock_time
frmi wrote:the clock in gnome/cinnamon is 2 hours off hwclock/localtime
Does this mean your hardware clock is set to loacal time?
What does
sudo hwclockreturn (and is that local time)?
and what is in /etc/adjtime?
This just made me realise that it's the hwclock which is off localtime.
Would
# hwclock --systohc --utcSet the clock properly or should i use localtime instead of utc?
anyway here's the output:
[fm@fm-lap ~]$ sudo hwclock
Password:
2012-08-19T15:39:23 CEST -0.145579 seconds
[fm@fm-lap ~]$ cat /etc/adjtime
0.000000 0 0.000000
0
UTCLast edited by frmi (2012-08-19 11:50:01)
Offline
You should probably adapt /etc/adjtime as I said:
https://wiki.archlinux.org/index.php/Sy … clock_time
Offline
Okay, should i just edit i manually and should i have hwclock in my daemon list, i'm kind of confused at that point?
Offline
# hwclock --systohc --utcSet the clock properly or should i use localtime instead of utc?
It should. Run it and then check /etc/adjtime again.
Offline
i ran it with --utc and the output is now:
0.000000 1345383973 0.000000
1345383973
UTCthough it's still 2 hours infront of my local time
Offline
Try rebooting.
Offline
I have rebooted and the hwclock is in front of local time still. The warning at https://wiki.archlinux.org/index.php/Be … clock_time about using localtime, is scaring me a bit. But might it be the way to fix it or should i do as Terminator says and just edit adjtime manually?
Offline
Fixed with NTP
Offline