BIOS time and Puppy time (ANSWERED)

Booting, installing, newbie
Message
Author
User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#31 Post by Béèm »

In polarpup in var/log/messages I am already 5 september.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#32 Post by nooby »

disciple wrote:... If the BIOS clock is in local time, the error message will be generated because at this point the filesystem checker thinks that the BIOS clock is in UTC.

This would be essentially the same problem as https://bugs.gentoo.org/142850?id=142850. One of the guys there was recompiling his kernel twice a year for daylight saving, which doesn't seem very sustainable ;)

But it looks like they have found the workaround for this problem in comment 42.

Since the default is for Puppy to use a BIOS clock set to local time, ...we should be encouraging people to set their BIOS clock to UTC, instead of following Microsoft's stupidity.


I have set my Bios time to UTC now. So I don't have to recompile Gento. Hahah what a core.

So as long as one have Bios to UTC then everything will be okay?

Sounds assuring :)
I use Google Search on Puppy Forum
not an ideal solution though

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#33 Post by nooby »

Damn I fail to get this. I mean logically but okay I always fail with logic.

Local time here is 22.01 or so I did this some minute ago.
# hwclock --show --utc
Sun 04 Sep 2011 11:59:19 PM CEST -0.585188 seconds
#
UTC is also known as Universal Coordinated Time
Current Time Sunday, 4 September 2011, 20:01:31

that is the true UTC and that was what I told BIOS to set it too.

So this hwclock --show --utc seems to not give true time of the hardware
or the hardware are reset to puppy time when puppy boot up?


What is going on?
Ooops should say that after correcting BIOS then puppy was one hour wrong so I corrected that one and now it show this gross error.
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#34 Post by tasmod »

Beware, hwclock reads the bios time BUT reports in localtime format.


Using GMT has always caused problems in Puppy, not least because Puppy reverses the notation + to - and vice versa.
It is best to run the locale setting to your location. i.e. Europe/London

The problem also shows because the 'clock' in the tray is another app that reads the time and 'plays' with it in script.

I'm not sure about 3.1 but maybe try my app Psync from the forum Additional Software/system section to see if it will run in 3.1.
Set your locale (reboot) and run the app, select a Region nearest to you (probably UK) and the app will do the rest. your time will be synchronised to within millisecs to 'standard' time. It will correct up to a day out !!

If it works it's also worth clicking the Help button for explanation on 'time'.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#35 Post by nooby »

Rob tasmod what you say now goes 180 degree counter to another member in the thread.

So whom should I trust apart from me maybe misunderstood.

can not you and him talk about it and explain to each other why you come to opposite conclutions?

disciple here
http://www.murga-linux.com/puppy/viewto ... 988#559988

To go out on internet and get sync time is to have a constant thing going on. It is not something I like at all. Can one set it to do it at boot up and maybe at shut down or something . Not all the time.
Last edited by nooby on Sun 04 Sep 2011, 20:21, edited 1 time in total.
I use Google Search on Puppy Forum
not an ideal solution though

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#36 Post by nooby »

edit went wrong
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
MinHundHettePerro
Posts: 852
Joined: Thu 05 Feb 2009, 22:22
Location: SE

#37 Post by MinHundHettePerro »

nooby,

do you have a file /etc/clock?

What's the output of

Code: Select all

# cat /etc/clock
?
I'd wager it's "HWCLOCKTIME=localtime" and not "HWCLOCKTIME=utc".

hth :)/MHHP
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#38 Post by nooby »

# cat /etc/clock
#Set this to either 'utc' or 'localtime' based on which one your computer's
#hardware clock uses.
HWCLOCKTIME=localtime
#HWCLOCKTIME=utc

#
I do it again
# cat /etc/clock
#Set this to either 'utc' or 'localtime' based on which one your computer's
#hardware clock uses.
HWCLOCKTIME=localtime
#HWCLOCKTIME=utc

It gives both or what?
How can I change.

And what to do about Disciple saying one thing and tazmod Rob something opposite and I fail to get what both talk about :)

I guess it means you are right but where do I change that one then.

okay personal settings most likely. I take a look
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
MinHundHettePerro
Posts: 852
Joined: Thu 05 Feb 2009, 22:22
Location: SE

#39 Post by MinHundHettePerro »

nooby,

either you change

Code: Select all

HWCLOCKTIME=localtime
#HWCLOCKTIME=utc 
to

Code: Select all

#HWCLOCKTIME=localtime
HWCLOCKTIME=utc 
and restart, or you could see if you have the depicted utility in your menu (it's there in slacko-499.1, think I've seen it in other recent pups).

(You did set your BIOS/HW clock to correct utc-time, but your puppy was not told that your HW-clock now is set to utc instead of localtime.)

hth :)/MHHP
Attachments
clock_type.jpg
(134.22 KiB) Downloaded 448 times
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#40 Post by nooby »

Thanks your an Angel but that one ask if the hardware should follow the software or software the hardware.

I had no idea? Que? So I accepted the first and that set the clock to 01.30 instead of 11.30 PM # cat /etc/clock

#Set this to either 'utc' or 'localtime' based on which one your computer's
#hardware clock uses.
HWCLOCKTIME='utc'
#HWCLOCKTIME=utc

And I have clicked on time and changed back to Sunday and 23.32 something

But we still have that conflict between Disciple telling me that UTC is the way to do it
and Rob tazmod that tells me that local time is the way to go.

I have no idea whom to trust?

I have to go to bed soon. Thanks for caring about me
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
MinHundHettePerro
Posts: 852
Joined: Thu 05 Feb 2009, 22:22
Location: SE

#41 Post by MinHundHettePerro »

nooby,

after running "Set hardware-clock type", it seems like you need to set your time again (!), either from within your running puppy, or by venturing into BIOS again...

hth :)/MHHP
[color=green]Celeron 2.8 GHz, 1 GB, i82845, many ptns, modes 12, 13
Dual Xeon 3.2 GHz, 1 GB, nvidia quadro nvs 285[/color]
Slackos & 214X, ... and Q6xx
[color=darkred]Nämen, vaf....[/color] [color=green]ln -s /dev/null MHHP[/color]

Bruce B

Re: BIOS time and Puppy time

#42 Post by Bruce B »

Mercedes350se wrote:Is there a reason that Puppy 3.01 does not automatically adopt BIOS time? Is it a Linux trait in general?

The reason I ask is that, when doing a e2fsck check, I have received a "Superblock write in the future" message. Easy enough to fix, just correct Puppy time.
That's how it does or at least how it did with 3.01

But the clock on the taskbar reads the same as the BIOS clock. In fact the only way Puppy knew the time is the BIOS clock told it. Unless you are using a remote clock, there was no other place for Puppy to get the time.

And no it is not a Linux trait in general.

There are solutions as well as ways to avoid this phenomena but I don't think Puppy employees them.

~

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#43 Post by disciple »

nooby wrote:Rob tasmod what you say now goes 180 degree counter to another member in the thread.

So whom should I trust apart from me maybe misunderstood.
I think you have misunderstood, because tasmod is saying the same thing as me (except I'm not promoting the Psync solution ;))
nooby wrote:Damn I fail to get this. I mean logically but okay I always fail with logic.

Local time here is 22.01 or so I did this some minute ago.
# hwclock --show --utc
Sun 04 Sep 2011 11:59:19 PM CEST -0.585188 seconds
#
UTC is also known as Universal Coordinated Time
Current Time Sunday, 4 September 2011, 20:01:31

that is the true UTC and that was what I told BIOS to set it too.

So this hwclock --show --utc seems to not give true time of the hardware

Like I said before, `hwclock --show --utc` assumes that the BIOS clock is in UTC and tells you what the local time is. So that output is what I would expect. (N.B. When you posted this, Puppy thought your BIOS clock was in localtime, so `hwclock --show` would have produced the same output as `hwclock --show -localtime`)

nooby wrote:But we still have that conflict between Disciple telling me that UTC is the way to do it
and Rob tazmod that tells me that local time is the way to go.

I can't see tazmod saying anywhere that you should use local time. You can use either, but if your country has "daylight saving" or "summer time" then it is better to use UTC so you don't need to reset the clock manually (unless you use Windows or Psync or something else which will reset it).
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

Re: BIOS time and Puppy time

#44 Post by disciple »

Bruce B wrote:
Mercedes350se wrote:Is there a reason that Puppy 3.01 does not automatically adopt BIOS time? Is it a Linux trait in general?

The reason I ask is that, when doing a e2fsck check, I have received a "Superblock write in the future" message. Easy enough to fix, just correct Puppy time.
That's how it does or at least how it did with 3.01

But the clock on the taskbar reads the same as the BIOS clock. In fact the only way Puppy knew the time is the BIOS clock told it.
Sure, but the issue is whether Puppy assumes the BIOS clock is set to local time or GMT/UTC. And the default is actually to assume local time, which Mercedes did not seem to realise.
There are solutions as well as ways to avoid this phenomena but I don't think Puppy employees them.
Which phenomena do you mean? The assumption that the BIOS clock is in local time? These days Puppy has an option to avoid that, like we've spent half this thread describing.
Or the "Superblock write in the future" message? I think I identified yesterday the fix/workaround that is needed for that.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Bruce B

#45 Post by Bruce B »

Disciple,

Mercedes350se post was about version 3.01, my reply was about the same version.

Something changed? I factored that in. Moreover, I think something should have changed. And if it did, it was well overdue.

As for me, you can give me any Puppy and I can get it working right on two clocks as well as a time server.

How I do it is no longer anyone's business. Not meaning to be hard on you, quite to the contrary.

But frankly, I'd like to see if Puppy really can be syncronized with a time server. Windows can.

Sorry if I sound hard, but on this one I am.

Bruce

~

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#46 Post by tasmod »

I mentioned Psync because most people want at least one accurate clock in local time. :)

Here's an extract from the man page for hwclock.
Clocks in a Linux System

There are two main clocks in a Linux system:

The Hardware Clock: This is a clock that runs independently of any control program running in the CPU and even when the machine is powered off.

On an ISA system, this clock is specified as part of the ISA standard. The control program can read or set this clock to a whole second, but the control program can also detect the edges of the 1 second clock ticks, so the clock actually has virtually infinite precision.

This clock is commonly called the hardware clock, the real time clock, the RTC, the BIOS clock, and the CMOS clock. Hardware Clock, in its capitalized form, was coined for use by hwclock because all of the other names are inappropriate to the point of being misleading.

The System Time: This is the time kept by a clock inside the Linux kernel and driven by a timer interrupt. (On an ISA machine, the timer interrupt is part of the ISA standard). It has meaning only while Linux is running on the machine. The System Time is the number of seconds since 00:00:00 January 1, 1970 UTC (or more succinctly, the number of seconds since 1969). The System Time is not an integer, though. It has virtually infinite precision.

The System Time is the time that matters. The Hardware Clock's basic purpose in a Linux system is to keep time when Linux is not running. You initialize the System Time to the time from the Hardware Clock when Linux starts up, and then never use the Hardware Clock again. Note that in DOS, for which ISA was designed, the Hardware Clock is the only real time clock.
There's more but it wouldn't help here. This is basically what was under my 'Help' button. There's lots of history on the net regarding 'time', not least the argument surrounding GMT and the efforts to take the credit for a standard 'time' by others.
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

User avatar
tasmod
Posts: 1460
Joined: Thu 04 Dec 2008, 13:53
Location: North Lincolnshire. UK
Contact:

#47 Post by tasmod »

Bruce,
If Puppy really can be synchronised
Really, yes. Psync does this as you know. However it doesn't use NIST servers but ntp does poll various 'pool' time servers on the net. This 'pool' is constantly changing, that's why Psync uses the 'pool'. It will always have at least 5 servers regionally to check against for a setting. (Latency excepted)
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)

Mercedes350se
Posts: 790
Joined: Wed 16 Apr 2008, 11:28

#48 Post by Mercedes350se »

disciple wrote: ... Since the default is for Puppy to use a BIOS clock set to local time, ...
But really, we should be encouraging people to set their BIOS clock to UTC, ...
Um, "Why?

As a radio amateur I am quite at home talking about GMT, UTC, Zulu but I would like my computer BIOS and Puppy time to be local. As I said in my original post it is easy to set it up this way! A quick trip into Set timezone twice a year is no hardship.
tasmod wrote:The System Time: This is the time kept by a clock inside the Linux kernel ... The System Time is the time that matters.
Sorry to repeat myself. Um, "Why?

Having asked that I must thank you tasmod for actually answering the question posed in my initial post.

Bruce B

#49 Post by Bruce B »

I'll suppose that Puppy never solved the problem. This is speculation only because I don't know.

We have two clocks, the RTC and the System clocks. To get these in synronize these clocks is kindergarten play.

If this is all Puppy can do, it has done nothing. The reason why is anyone can do that.

Many computers keep time in sync with time servers. If you can use those servers and Puppy keeps the time right according to the TZ, then something has been fixed.

If not, work needs be done. All a person needs to is try it.

~

Bruce B

#50 Post by Bruce B »

Mercedes350se wrote:
tasmod wrote:The System Time: This is the time kept by a clock inside the Linux kernel ... The System Time is the time that matters.
Sorry to repeat myself. Um, "Why?
The system time is the time that matters is ONLY because it is the time displayed and used.

The system time gets its time from the RTC. It is no more accurate than the RTC. Except theoretically, it doesn't drift as much. But then we have RTC clocks that don't drift much either.

The system clocks are no better at displaying accurate time than the RTC was when it booted.

The system time is software. The RTC time is hardware. Operating systems are not designed to continiously poll the RTC. One poll at boot time is all it takes.

Except Puppy will poll it a couple times likely, at least in the past, to get around the way it deals with the TZ.

The TZ throws the time off. Now what time is it? Poll the RTC and find out.

If someone wants accurate time, poll an accurately set RTC or poll a time server.

~

Post Reply