#!/bin/bash
# beats - swatch time
# http://www.timeanddate.com/time/internettime.html
# https://www.swatch.com/en/internettime/
#
#https://en.wikipedia.org/wiki/Swatch_Internet_Time#Calculation_from_UTC.2B1
command -v bc >/dev/null 2>&1 || { echo "I need bc" ; exit 1; }
# UTC to variables
export TZ=GMT-1 # Not sure why is this minus and not plus
read h m s <<<$(date "+%H %M %S")
#echo $h $m $s
# (UTC+1seconds + (UTC+1minutes * 60) + (UTC+1hours * 3600)) / 86.4
# btw: beats smaller than one are not in the standard
# bc is "rounding down", which seems to be the correct way in this case
# h=23
# m=59
# s=59
beats=$(bc <<< "scale=0; ($s + ($m * 60) + (($h) * 3600)) / 86.4")
echo "$beats.beats"
AND power supply. Everything starts with good clean power. It’s rare, but I have seen PSUs get funky when the ambient temp goes up.
You might want to take the cover off the computer, blow out the dust, and set a 10 inch or so fan blowing into the case, and see if it temperature related.
I actually had an issue with hardware errors recently, which I fixed by updating my BIOS and adjusting some XMP RAM timings. But yeah with everything you’ve tried, especially switching the hardware and trying different kernels/distros, I’d think it’s most likely a CPU problem.
Here is my desktop as it looks now, after using EndeavourOS for about 6 days. I haven’t yet bothered with any fancy ricing, this is just KDE Plasma with the default Breeze theme, which I quite like: