You are not logged in.

#1 2013-11-01 03:50:09

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Can't change hwclock for e17 [solved]

hello,
So I was trying to change hwclock to show the correct time my bios and date are both correct. I tried three commands so far

 sudo hwclock -w
sudo hwclock --systohc
sudo hwclock --set --date "x/x/x 00:00:00"

all seemed to process without error but the time will not change. It is off by 5 hours. I have also tried to set utc using

 sudo hwclock --utc

The clock is really annoying me please help opennptd is not installed

Last edited by mich04 (2013-11-06 13:20:17)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#2 2013-11-01 03:59:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Can't change hwclock for e17 [solved]

You say your BIOS is correct, correct how? Correct UTC or correct local time. If you have the BIOS set to localtime, you need to tell the system that.

Offline

#3 2013-11-01 04:00:11

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Can't change hwclock for e17 [solved]

I fixed it here is what I did

sudo pacman -S ntp
sudo ntpd -qg
sudo hwclock --systohc

I am not sure as to why --systohc was not working before date has always showed the correct time, but that is how I got it to work.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#4 2013-11-01 04:01:21

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Can't change hwclock for e17 [solved]

I can not specify if bios uses utc or local time on my laptop.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#5 2013-11-01 04:01:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Can't change hwclock for e17 [solved]

Did you fix it or just cover it up? It's very possibly the latter.

Last edited by Scimmia (2013-11-01 04:03:47)

Offline

#6 2013-11-01 04:02:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Can't change hwclock for e17 [solved]

mich04 wrote:

I can not specify if bios uses utc or local time on my laptop.

You specify that with hwclock, not in the BIOS. The BIOS time is just set.

Offline

#7 2013-11-01 04:15:43

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Can't change hwclock for e17 [solved]

What does timedatectl give?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2013-11-06 01:45:06

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Can't change hwclock for e17 [solved]

sorry for the late reply I have been harvesting corn, late nights. @crf here is the output of the command


[A@A ~]$ timedatectl 
      Local time: Tue 2013-11-05 19:43:58 CST 
  Universal time: Wed 2013-11-06 01:43:58 UTC 
        Timezone: America/Chicago (CST, -0600) 
     NTP enabled: no 
NTP synchronized: no 
 RTC in local TZ: no 
      DST active: no 
 Last DST change: DST ended at 
                  Sun 2013-11-03 01:59:59 CDT 
                  Sun 2013-11-03 01:00:00 CST 
 Next DST change: DST begins (the clock jumps one hour forward) at 
                  Sun 2014-03-09 01:59:59 CST 
                  Sun 2014-03-09 03:00:00 CDT 

the current time on my cell phone is 7:43 pm central standard


@Scimmia

I am not sure if I covered up, could you provide more info on that subject?

Last edited by mich04 (2013-11-06 01:46:20)


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

#9 2013-11-06 07:53:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Can't change hwclock for e17 [solved]

Looks like you're ok. Too often people just rely on NTP to set the clock instead of actually fixing the RTC, but you got it fixed.

Offline

#10 2013-11-06 13:19:53

mich04
Member
From: Illinois - United States
Registered: 2011-10-25
Posts: 390

Re: Can't change hwclock for e17 [solved]

Ahh ok, that makes sense thanks for the help.


I love computers, networking and Arch Linux. Sometimes I might ask a stupid question, but please have grace with me like I would with you.

Offline

Board footer

Powered by FluxBB