LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-14-2022, 02:59 AM   #1
unix-fan
LQ Newbie
 
Registered: Jul 2021
Posts: 12

Rep: Reputation: Disabled
About clock settings


There are some things about clock that as a simple user I cannot understand:

1) In a dual boot Windows(10)+Linux(Slack15) installation, setting the Linux clock on "local" should align it with the Windows way to manage clock, so one wouldn't expect any malfunctioning.
2) While using Linux, Windows is turned off and anyway never can't access to Linux, so it shouldn't interfere at all.
3) Instead, the clock jumps 1 hour onward every some minutes.

It's fanny that I had the same problem a couple of decades ago with a Win2000 + RedHat8 installation. More than twenty years later I'm encountering the same problem.

Most of the time I use my PC or laptop working offline with Win or Linux, I don't need to be connected to any network.

The best solution I've adopted until now is to comment the hwclock entries out in rc.0 and rc.6.

If someone could suggest a solution better than that, intervening on Linux only, it would be very appreciated.
 
Old 03-14-2022, 05:35 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
https://www.howtogeek.com/323390/how...-dual-booting/

I recommend option two: Running Windows on "Universal" time.

Set slackware to use universal time (if it does not already) using the timeconfig dialog, then reboot into windows and follow the above guide. Once done, set the correct time and when you reboot into slackware again the time should be correct, and should stay correct (barring any systematic drift in your hardware clock).

There is the option of running linux on localtime like windows does, but if you do that then twice a year you're going to have to intervene manually to make the DST changes go smoothly. Always ensuring you start Windows before linux after a DST change occurs in order to let it adjust the local clock is one way to handle it, but you have to remember to do it each time. It's not ideal, but if you're not prepared to make any changes to Windows, then this is your best bet.

Note: PC hardware clocks tend to drift much more compared to a reference time than the linux system clock does, so commenting out the hwclock --systohc on shutdown isn't the best idea from a clock accuracy standpoint.

Last edited by GazL; 03-14-2022 at 06:36 AM.
 
1 members found this post helpful.
Old 03-14-2022, 04:49 PM   #3
unix-fan
LQ Newbie
 
Registered: Jul 2021
Posts: 12

Original Poster
Rep: Reputation: Disabled
Many thanks for your reply.

I'd rather not to modify the Windows settings.

I'm likely to keep the Windows time back to get the right time in Linux.
 
Old 03-14-2022, 05:41 PM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
I understand.

If you leave timeconfig set to using localtime and avoid using ntp on linux you should be fine as long as you take extra care on the days that the DST adjustments happen.
 
Old 03-15-2022, 02:32 AM   #5
unix-fan
LQ Newbie
 
Registered: Jul 2021
Posts: 12

Original Poster
Rep: Reputation: Disabled
Fine, I'll take on the fatigue to fix time according to DST. Not a big effort, after all. Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
system clock,hardware clock varunbihani Linux - Newbie 2 07-23-2005 09:04 AM
Dot Clock / Pixel Clock Freaksta Linux - Hardware 1 05-05-2004 08:21 PM
system clock vs. CMOS clock dtamajka Linux - General 7 12-11-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration