Well would you be able to recommend a command besides the following command if you were trying to set a system clock to tie in with a software clock on a 3.13etc kernel under Debian? 

hwclock --hctosys

I think the above could have saved me alot of pain because if I were to have to have done = sudo sed -i s/UTC=yes/UTC=no/ /etc/default/rcS 

it would have been stuck in /etc/default/rcS and what about updates that could have locked the machine up at sometime/somepoint.

Give me your opinion if you have time please? ☺

Thank you,

Date: Sat, 3 Jan 2015 00:47:04 -0600
From: chapinjeff at gmail.com
To: tclug-list at mn-linux.org
Subject: Re: [tclug-list] Bios clock and Linux UTC clock refuse to set at the same time.

Yes. If you use the hwclock command you do not need to use sed at all.

On Sat, Jan 3, 2015 at 12:44 AM, paul g <pj.world at hotmail.com> wrote:



The command: --> sudo hwclock --systohc <--sets the Bios clock to the Software UTC clock without giving any output?

I did not even need to use 'sed' yet.

cool.

Am I right about this?


Date: Sat, 3 Jan 2015 00:41:26 -0600
From: chapinjeff at gmail.com
To: tclug-list at mn-linux.org
Subject: Re: [tclug-list] Bios clock and Linux UTC clock refuse to set at the same time.

Many commands in Linux will only output errors. This is one of them.

On Sat, Jan 3, 2015 at 12:39 AM, paul g <pj.world at hotmail.com> wrote:



The error I expected was an output via --> paul at desk/paul-Lenovo ~ $ sudo hwclock --systohc

once entered into the terminal as following: 

paul at desk/paul-Lenovo ~ $ sudo hwclock --systohc
paul at desk/paul-Lenovo ~ $ 

was the entire output of the command. I guess if you put it that way though it would be like the good working 'apt-key list' command on a 3.13 machine vs. 3.2 <--why did I bring that up again don't ask just don't ask. 

I'm waiting for your help.

Thank you.

Date: Sat, 3 Jan 2015 00:32:49 -0600
From: chapinjeff at gmail.com
To: tclug-list at mn-linux.org
Subject: Re: [tclug-list] Bios clock and Linux UTC clock refuse to set at the same time.



On Sat, Jan 3, 2015 at 12:29 AM, paul g <pj.world at hotmail.com> wrote:



Helps alot! 

paul at desk/paul-Lenovo ~ $ sudo hwclock
Sat 03 Jan 2015 12:22:06 AM CST  -0.078578 seconds
paul at desk/paul-Lenovo ~ $ 

paul at desk/paul-Lenovo ~ $ sudo hwclock
Sat 03 Jan 2015 12:23:02 AM CST  -0.051555 seconds

paul at desk/paul-Lenovo ~ $ sudo hwclock --systohc
paul at desk/paul-Lenovo ~ $ 

obviously ^ fails with the --systohc extension.
What do you mean it obviously fails? I see no error.

 <--why? <--every time I go into bios and change the time via biox I get an incorrect time on desktop. I am going to be looking into this; i'm about 7 hours off by the way. I thank you for your time and your help.


Yeah, your hwclock is set to UTC and you live in a timezone 7 hours off from UTC. That's to be expected.


  - paul g 


To: tclug-list at mn-linux.org
Date: Fri, 2 Jan 2015 23:42:31 -0600
From: kelly.black at penguinpackets.com
Subject: Re: [tclug-list] Bios clock and Linux UTC clock refuse to set at	the same time.



Paul,

To set the system clock to the hardware clock

hwclock --hctosys

Other way around:

hwclock --systohc

You should be able to check the hardware clock by issuing:

hwclock

That will give you an idea of how far off the hardware clock is.  If it is skewed far enough, you will probably want to go in to the bios on a reboot and update it.  If it does not stick past power outages, you might want to replace the cmos battery on the motherboard.

Hope that helps.

 


Fri Jan 02 2015 10:11:42 PM CST from "paul g" <pj.world at hotmail.com>  Subject: Re: [tclug-list] Bios clock and Linux UTC clock refuse to set at the same time.






The question is 'how can I set the hardware clock to coorolate with the Linux clock'.

My apologies. 

Happy New year and thank you with the updatedb stuff' meant alot.

paul g












_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
tclug-list at mn-linux.org
http://mailman.mn-linux.org/mailman/listinfo/tclug-list 		 	   		  

_______________________________________________

TCLUG Mailing List - Minneapolis/St. Paul, Minnesota

tclug-list at mn-linux.org

http://mailman.mn-linux.org/mailman/listinfo/tclug-list




-- 
Jeff Chapin
President, CedarLug, retired
President, UNIPC, "I'll get around to it"
President, UNI Scuba Club
Senator, NISG, retired


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
tclug-list at mn-linux.org
http://mailman.mn-linux.org/mailman/listinfo/tclug-list 		 	   		  

_______________________________________________

TCLUG Mailing List - Minneapolis/St. Paul, Minnesota

tclug-list at mn-linux.org

http://mailman.mn-linux.org/mailman/listinfo/tclug-list




-- 
Jeff Chapin
President, CedarLug, retired
President, UNIPC, "I'll get around to it"
President, UNI Scuba Club
Senator, NISG, retired


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
tclug-list at mn-linux.org
http://mailman.mn-linux.org/mailman/listinfo/tclug-list 		 	   		  

_______________________________________________

TCLUG Mailing List - Minneapolis/St. Paul, Minnesota

tclug-list at mn-linux.org

http://mailman.mn-linux.org/mailman/listinfo/tclug-list




-- 
Jeff Chapin
President, CedarLug, retired
President, UNIPC, "I'll get around to it"
President, UNI Scuba Club
Senator, NISG, retired


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
tclug-list at mn-linux.org
http://mailman.mn-linux.org/mailman/listinfo/tclug-list 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20150103/367e98ea/attachment-0001.html>