LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-19-2015, 02:50 PM   #1
Xsane
Member
 
Registered: Jan 2014
Posts: 186

Rep: Reputation: 134Reputation: 134
Fixing Slackware's Broken Date-Time III


As noted in Part I and Part II most of the date-time problems were caused by hwclock.

Today Util-linux v2.26 was released.

Using its hwclock as a drop-in replacement without
changing anything in Slackware will fix:

* Kernel NTP clobbering a localtime Hardware Clock

* No Hardware Clock drift correction

* Hwclock clobbering its drift factor to near zero (NTP)

* Was not possible to use 'cold' drift factor with hwclock

* No x86_64 direct ISA access.

* System hangs from automatic direct ISA fall-back

* Since hwclock was changed to default to UTC in 2011 , if
there was no adjtime file and hwclock --localtime
--adjust was called an adjtime file was not created

Correction: there is one required change in Slackware, with the
expanded direct isa access the rtc tests in rc.S and rc.6 scripts
must be fixed. The simplest fix is to drop the -w option from grep.

Last edited by Xsane; 02-19-2015 at 02:59 PM. Reason: correction
 
Old 02-21-2015, 01:32 AM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
do I understand this correct and the short version is 'put Util-linux v2.26' into the what should be fixed thread?
 
Old 02-21-2015, 04:25 AM   #3
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
this got into the last changelog
 
Old 02-21-2015, 04:39 AM   #4
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by a4z View Post
do I understand this correct and the short version is 'put Util-linux v2.26' into the what should be fixed thread?
Fixed as of today i guess. This is the most recent change log entry.
Quote:
Sat Feb 21 00:00:27 UTC 2015
a/lilo-24.1-x86_64-1.txz: Upgraded.
Filter fdisk output to fix detecting Linux partitions.
a/sysvinit-scripts-2.0-noarch-19.txz: Rebuilt.
Removed -w from grep in rc.S to detect rtc ioports correctly.
Thanks to Xsane.
a/util-linux-2.26-x86_64-1.txz: Upgraded.
isolinux/initrd.img: Rebuilt.
Patched to fix issues with EFI and GPT since switching to the new fdisk.
Thanks to Ryan P.C. McQuen and Jonathan Li for the helpful hints.
usb-and-pxe-installers/usbboot.img: Rebuilt.
Patched to fix issues with EFI and GPT since switching to the new fdisk.
Thanks to Ryan P.C. McQuen and Jonathan Li for the helpful hints.
 
Old 02-21-2015, 07:59 AM   #5
Xsane
Member
 
Registered: Jan 2014
Posts: 186

Original Poster
Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by fogpipe View Post
Removed -w from grep in rc.S to detect rtc ioports correctly.
The same fix is required in rc.6
 
Old 03-04-2015, 01:00 AM   #6
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
out of curiosity, has this been brought to Pat's attention, i.e. by email? if I understand correctly, the fix as applied to -current right now seems incomplete.
 
Old 03-04-2015, 07:55 AM   #7
Xsane
Member
 
Registered: Jan 2014
Posts: 186

Original Poster
Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by sanjioh View Post
out of curiosity, has this been brought to Pat's attention, i.e. by email? if I understand correctly, the fix as applied to -current right now seems incomplete.
Yes, I sent an email to Pat at the same time that I posted it here.
 
1 members found this post helpful.
Old 08-02-2015, 01:31 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I found another way to fix the clock when it's not right in Slackware.
I followed the steps in this link and my clock is now correct.

http://pc-freak.net/blog/how-to-fix-...time-troubles/
 
1 members found this post helpful.
  


Reply

Tags
hwclock, ntp, time



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
Fixing Slackware's Broken Date-Time: Part II Xsane Slackware 2 02-23-2015 08:17 AM
Fixing Slackware's Broken Date-Time: Part I Xsane Slackware 12 02-19-2015 11:13 AM
Date/Time in Slackware 12.0 JMJ_coder Slackware 3 05-17-2008 06:10 PM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM

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

All times are GMT -5. The time now is 06:56 PM.

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