News for hackers. Stuff that matters.
Re:Ask HN: Where are all the computers from the 1980's and 1... by amelius on Sunday June 12, 2022 @09:37AM (#31714397)
I've noticed that some motherboards power the clock through mains power even when turned off.
Re:Ask HN: Where are all the computers from the 1980's and 1... by exmadscientist on Sunday June 12, 2022 @04:55PM (#31718164)
This is desirable because the mains frequency is much more accurate, long-term, than the crystal frequency. So the very best designs use a design which is mains powered as much as possible, even using a rechargeable lithium coin cell that is slowly recharged whenever mains is available, but then switch over to the crystal when no mains is available.
Re:Ask HN: Where are all the computers from the 1980's and 1... by johnwalkr on Sunday June 12, 2022 @08:17PM (#31719540)
This sounds good for simplicity when AC power is almost always available - it would be interesting to see what the best solution is for each use case. The time synchronization from AC can drift by a second or more over one day, but it is controlled very well over longer time periods. So if you’re switching back and forth between it and quartz, especially at regular intervals error could somehow accumulate.

An interesting thing is emergency power supplies don’t always precisely control this, so after a disaster sometimes all AC connected clocks in an area drift by the same number of minutes.

NTP or radio synchronization is probably better in many cases since those are absolute rather than relative references. And GPS should normally be the best although there are cases where 1, 2 or all 3 of those might be unavailable.

Re:Ask HN: Where are all the computers from the 1980's and 1... by charles_kaw on Sunday June 12, 2022 @06:56PM (#31719038)
accuracy isnt really important anymore for consumer gear - as long as it's accurate enough to have the month right over a few years of inactivity, it'll pass the certificate checks required to do ntp over ssl - which most modern systems do by default
Re:Ask HN: Where are all the computers from the 1980's and 1... by exmadscientist on Monday June 13, 2022 @06:07PM (#31732390)
That's only applicable for systems with a network connection. Many things still don't and shouldn't.
Re:Ask HN: Where are all the computers from the 1980's and 1... by charles_kaw on Friday June 17, 2022 @12:09PM (#31780278)
We are talking about modern computers. Not embedded devices. That is a whole separate category :)
Re:Ask HN: Where are all the computers from the 1980's and 1... by johnwalkr on Sunday June 12, 2022 @07:15PM (#31719168)
Wouldn’t this require a specialized PSU to pass along the 50 or 60Hz AC frequency in some way?