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-01-2022, 10:09 AM   #91
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,771

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455

It seems CONFIG_RTC_SYSTOHC was added somewhere in linux-3.9-stable and the default "y" was missed in linux-3.10.17 of Slackware 14.1, probably by accident. I think before that the eleven minute mode could not be switched off.

Last edited by Petri Kaukasoina; 02-01-2022 at 10:11 AM.
 
Old 02-01-2022, 12:42 PM   #92
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
I have a vague recollection that on a PC there's a distinction between RTC hardware and the CMOS clock, and so this option is unneeded unless you have separate clock hardware installed that you wish to use.

It's been a while though, so I could be wrong.

Last edited by GazL; 02-01-2022 at 12:43 PM.
 
1 members found this post helpful.
Old 02-01-2022, 02:20 PM   #93
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,771

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455
Quote:
Originally Posted by GazL View Post
I have a vague recollection that on a PC there's a distinction between RTC hardware and the CMOS clock, and so this option is unneeded unless you have separate clock hardware installed that you wish to use.

It's been a while though, so I could be wrong.
You are right.
Code:
linux root ~ # /etc/rc.d/rc.ntpd stop                                                     
Stopping NTP daemon...                                                                    
linux root ~ #  date -s 'Tue Feb  1 21:57:15 EET 2022'                                    
Tue Feb  1 21:57:15 EET 2022                                                              
linux root ~ # hwclock --systohc                      (a wrong time to cmos clock)                                                        
linux root ~ # date -s 'Tue Feb  1 21:50:15 EET 2022' (another time to system clock)         
Tue Feb  1 21:50:15 EET 2022                                                              
linux root ~ # hwclock --show; date                                                       
Tue Feb  1 21:57:27 2022  .541702 seconds             (cmos clock)                                   
Tue Feb  1 21:50:20 EET 2022                          (system clock)                               
linux root ~ # /etc/rc.d/rc.ntpd start                                                    
Starting NTP daemon:  /usr/sbin/ntpd -g                                                   
linux root ~ # hwclock --show; date                                                       
Tue Feb  1 21:57:39 2022  .963547 seconds                                                 
Tue Feb  1 21:50:32 EET 2022                                                                                                        
linux root ~ # hwclock --show; date                                                       
Tue Feb  1 21:57:46 2022  .791700 seconds                                                 
Tue Feb  1 22:09:34 EET 2022                     (now ntp synced system clock)                                    
linux root ~ # hwclock --show; date                                                       
Tue Feb  1 22:11:26 2022  .838619 seconds        (now 11-minute mode fixed cmos)                                    
Tue Feb  1 22:11:27 EET 2022
This was with 'CONFIG_RTC_SYSTOHC is not set'.
 
2 members found this post helpful.
Old 02-01-2022, 02:48 PM   #94
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 903

Rep: Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692
I also confirm (ntpd is running the whole time):

Code:
# hwclock --show ; date
2022-02-01 14:21:40.075821-06:00
Tue Feb  1 14:21:41 CST 2022
# hwclock --set --date='2022-02-01 14:15:00'
# hwclock --show ; date
2022-02-01 14:15:02.528901-06:00
Tue Feb  1 14:24:59 CST 2022
# hwclock --show ; date
2022-02-01 14:43:56.263270-06:00
Tue Feb  1 14:43:57 CST 2022
Indeed "11-minute mode" has updated the hardware clock. No need for a cron job!
 
Old 02-02-2022, 12:40 AM   #95
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,500

Rep: Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452Reputation: 8452
Quote:
Originally Posted by Petri Kaukasoina View Post
Interesting. The default is y. Why would anyone not want to set it?
Anyone remember this thread?

https://www.linuxquestions.org/quest...me-4175477525/

It occurred to me at random that this change to RTC_SYSTOHC=y might work differently (or not work, as the case may be) depending on if the system's hardware clock is storing local time or UTC. And then it all came back to me and I found the old thread.

I'm not sure what the great benefit is of having the kernel mess with the hardware clock automatically. For that matter, I'm not sure what I was doing in this here thread. ;-)

I'm rolling it back to "RTC_SYSTOHC is not set" which without significant further testing seems like the safe plan.

The RTC emulation option will be left off though as that seems pretty clearly bogus.
 
6 members found this post helpful.
Old 02-02-2022, 01:17 AM   #96
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,771

Rep: Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455Reputation: 1455
Quote:
Originally Posted by volkerdi View Post
I'm rolling it back to "RTC_SYSTOHC is not set" which without significant further testing seems like the safe plan.
Agreed.

It's always best to run the hardware clock in UTC. BTW, in this post https://www.linuxquestions.org/quest...ml#post5043528 GazL mentions 'hwclock --systz' which can be used to tell the kernel which local timezone is in use instead of UTC. After it, the 11-minute mode writes the correct local time in cmos, but after a change to/from DST, it will be off again unless run again.

I seem to have installed a little utility 'setsystz' on my system a long long time ago, which does the same thing, I guess. It's this: https://groups.google.com/g/fa.linux.../c/FZDGJwXhszI

Last edited by Petri Kaukasoina; 02-02-2022 at 01:29 AM.
 
1 members found this post helpful.
Old 02-02-2022, 03:13 AM   #97
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by Petri Kaukasoina View Post
It's always best to run the hardware clock in UTC
Also stated in the Start-Up Guide for openSUSE Leap 15.3.
 
Old 02-02-2022, 04:13 AM   #98
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by Petri Kaukasoina View Post
I seem to have installed a little utility 'setsystz' on my system a long long time ago, which does the same thing, I guess. It's this: https://groups.google.com/g/fa.linux.../c/FZDGJwXhszI
yes, that looks to do the same thing, though unlike --systz it goes out of its way to avoid timewarp semantics and I can't see why you'd really want that. Timewarp only occurs on the first call, and it's something you probably want to lock down on boot to prevent a subsequent call from doing it.


Personally, I still favour --systz over --hctosys in rc.S. The downside is that it doesn't apply drift correction, but I suspect no one uses that anyway.
 
Old 02-02-2022, 08:08 AM   #99
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 903

Rep: Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692Reputation: 692
Quote:
Originally Posted by volkerdi View Post
For that matter, I'm not sure what I was doing in this here thread. ;-)

I'm rolling it back to "RTC_SYSTOHC is not set" which without significant further testing seems like the safe plan.

The RTC emulation option will be left off though as that seems pretty clearly bogus.
(emphasis added by me)

Yes, I posted in this thread to avoid causing problems for the upcoming 15.0 release. Sorry for causing a mini-firestorm.

As I posted above, running current (Tue Feb 1 08:27:47 UTC 2022) I saw 11-minute mode active (while running ntpd). So it seems the help text for RTC_SYSTOHC is misleading. The linked thread (https://www.linuxquestions.org/quest...me-4175477525/) has some good information.
 
Old 02-02-2022, 09:27 PM   #100
slackjeff
Member
 
Registered: Sep 2018
Location: Blumenau/SC/Brasil
Distribution: Slackware
Posts: 30

Rep: Reputation: Disabled
slackpkg with parallel download option =)
 
2 members found this post helpful.
Old 02-03-2022, 04:28 AM   #101
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Quote:
Originally Posted by slackjeff View Post
slackpkg with parallel download option =)
how about with mirror-load balancing instead?
 
1 members found this post helpful.
Old 02-03-2022, 06:02 AM   #102
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,337

Rep: Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051
KDE Gear 21.12.2

https://kde.org/announcements/gear/21.12.2/

Full changelog:
https://kde.org/announcements/changelogs/gear/21.12.2/

Posted here, because the 💾 15.0 are almost ready

Last edited by marav; 02-03-2022 at 06:14 AM.
 
Old 02-03-2022, 06:28 AM   #103
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,205

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
Quote:
Originally Posted by marav View Post
KDE Gear 21.12.2

https://kde.org/announcements/gear/21.12.2/

Full changelog:
https://kde.org/announcements/changelogs/gear/21.12.2/

Posted here, because the 💾 15.0 are almost ready
Build in progress here
 
Old 02-03-2022, 07:38 AM   #104
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
Glibc-2.35
 
Old 02-03-2022, 09:30 AM   #105
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
...
 
  


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
Apache 2.4 requests to non-SSL site with "Upgrade-Insecure-Requests: 1" and no trailing / get redirected to default site owendelong Linux - Server 2 06-22-2021 02:08 PM
[SOLVED] Requests for -current (20151216) rworkman Slackware 3441 12-28-2017 03:50 PM

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

All times are GMT -5. The time now is 01:12 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