[Solved] problem with system clock, just after 21.3 upgrade.

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

SMG wrote: Sun Feb 04, 2024 3:29 pm
revrob wrote: Sun Feb 04, 2024 2:11 pm3. When I let the computer go into "suspend" after half an hour, then left it in suspend for an hour or two, and then woke it up again (pressing the power button), the time and date on the panel clock once again had jumped forward exactly 68 hours (as it does every time the computer goes into suspend). It is showing that now.
I found this Clock shifted to the future after suspend/resume on the ArchLinux forum from 2013 with the same 68 hour change and that person also has an MSI motherboard. However, someone else with an ASUS board mentions the same problem.

This person Strange clock drift after suspend/resume is seeing their system drift many years into the future. There is mention of using chrony to work around the issue.

This topic is people using Windows having the issue Computer wakes up from sleep with calendar set to incorrect future date. and the last person posting indicates, "I fixed mine. It required updating my motherboard's firmware (MSI).."

If this is the correct link, there are newer versions available. However the numbering scheme seems to be a little different on that link so that may not be the correct one.
Machine:
Type: Desktop Mobo: MSI model: FM2-A55M-E33 (MS-7721) v: 2.0 serial: <superuser required>
BIOS: American Megatrends v: 11.5B1 date: 10/31/2013
thank you for the BIOS link. I last updated BIOS on 25th September 2023, but only after discovering that the B6 version on the MSI website wasn't recognised by my BIOS upgrade utility. I corresponded with machine manufacturer Zoostorm and they advised "you may need an OEM flash file rather than the retail flash versions that are available on MSI's support page"and they obtained one direct from MSI which was sent to me by email - E7721ASP_B51.7z - the latest version available for my machine. So I installed that one on their advice last year.
RevRob - Linux learner
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

Further update.

After posting "good news/bad news" in viewtopic.php?p=2428143#p2428143 - having just seen the machine do a 68hr forward drift again, and not changing ANY settings at all I went away and left the machine to suspend again.

Coming back just now to deal with more replies (thanks everyone) - the machine woke from suspend, and the panel clock was CORRECT. 8)

that's the first "suspend" since the upgrade to 21.3, that has NOT shoved the clock forward 68 hours.

To try and summarise - prior to the last time it drifted forward 68 hours I had done the following:

changed /etc/adjtime to have zero values.
Backdated the kernel
Made sure hw and sw clocks are synching
disconnected the internet for a cycle
Set time/date applet to synch from internet time servers
Checked ntpdate is not installed.
Checked timesyncd-service is enabled
changed the CMOS battery
and I have the latest recommended OEM BIOS E7721ASP_B51.7z recommended by manufacturer Zoostorm and MSI (not the one on the MSI website)

As I have now had one cycle of suspend/resume with NO clock drift, I am going to do nothing for a while and record what happens.

Thanks again for the advice and links. I couldn't access the microsoft one, but the others were informative although I didn't understand any of the fixes.
I've bookmarked the one suggesting the "chrony" fix
https://www.reddit.com/r/debian/comment ... ?rdt=44755
in case that is necessary. - a synch after a few seconds on resume would be a good workaround.

Code: Select all

System:
  Kernel: 5.15.0-92-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Xfce 4.18.1
    tk: Gtk 3.24.33 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: MSI model: FM2-A55M-E33 (MS-7721) v: 2.0 serial: <superuser required>
    BIOS: American Megatrends v: 11.5B1 date: 10/31/2013
CPU:
  Info: quad core model: AMD A8-5500 APU with Radeon HD Graphics bits: 64 type: MT MCP
    smt: enabled arch: Piledriver rev: 1 cache: L1: 192 KiB L2: 4 MiB
  Speed (MHz): avg: 3491 high: 3493 min/max: 1400/3200 boost: enabled cores: 1: 3493 2: 3493
    3: 3493 4: 3487 bogomips: 25551
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Trinity [Radeon HD 7560D] vendor: Micro-Star MSI driver: radeon v: kernel ports:
    active: HDMI-A-1 empty: VGA-1 bus-ID: 00:01.0 chip-ID: 1002:9904 class-ID: 0300
  Device-2: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.18.0 driver: X:
    loaded: ati,radeon unloaded: fbdev,modesetting,vesa gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
  Monitor-1: HDMI-0 mapped: HDMI-A-1 model: HP 22xi serial: <filter> res: 1920x1080 hz: 60
    dpi: 102 size: 480x270mm (18.9x10.6") diag: 551mm (21.7") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD ARUBA (DRM 2.50.0 / 5.15.0-92-generic LLVM 15.0.7)
    v: 4.5 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: AMD Trinity HDMI Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:01.1 chip-ID: 1002:9902 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  Device-3: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Sound Server-1: ALSA v: k5.15.0-92-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.27 TiB used: 237.26 GiB (10.2%)
  ID-1: /dev/sda type: USB vendor: Seagate model: ST2000DM008-2UB102 size: 1.82 TiB
    speed: <unknown> type: HDD rpm: 7200 serial: <filter> scheme: MBR
  ID-2: /dev/sdb vendor: Western Digital model: WD5000AAKX-22ERMA0 size: 465.76 GiB
    speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1H17 scheme: MBR
Partition:
  ID-1: / size: 155.31 GiB used: 84.52 GiB (54.4%) fs: ext4 dev: /dev/sdb6
  ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sdb5
Swap:
  ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-2:2 info: ASMedia ASM1153 SATA 3Gb/s bridge type: Mass Storage driver: uas
    interfaces: 1 rev: 2.1 speed: 480 Mb/s chip-ID: 174c:1153 class-ID: 0806 serial: <filter>
  Hub-2: 2-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 2-2:3 info: Microsoft LifeCam HD-3000 type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 045e:0779 class-ID: 0102
  Hub-3: 3-0:1 info: Full speed or root hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-5: 5-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 5-1:2 info: Primax USB Wired Keyboard type: Keyboard,HID driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 0461:4dbf class-ID: 0300
  Device-2: 5-3:3 info: Primax USB Optical Mouse type: Mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 1.5 Mb/s power: 98mA chip-ID: 0461:4d64 class-ID: 0301
  Hub-6: 6-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-7: 7-0:1 info: Full speed or root hub ports: 4 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 35.0 C mobo: 31.0 C gpu: radeon temp: 8.0 C
  Fan Speeds (RPM): cpu: 2248 fan-2: 0 fan-3: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.30 vbat: 3.28
Repos:
  Packages: apt: 2208
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https: //packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 254 Uptime: 2d 23h 55m wakeups: 2 Memory: 14.83 GiB used: 2.89 GiB (19.5%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12
  Client: Unknown python3.10 client inxi: 3.3.13
RevRob - Linux learner
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

Update:

After a couple of suspends where the clock behaved itself, I have just returned to the PC to find that on waking, it was once again 68 hours ahead of itself according to the panel clock.. :( :?
The hardware clock is always correct, whenever I go to the BIOS/Setup to check.

Here we go again.

I'm happy to carry out any diagnostic checks anyone wants me to do, even if I've done them before.
this problem manifested itself after the 21.3 upgrade as a almost 100% consistent repeatable error.

Please note - I have the latest available customised OEM BIOS update (see above) as provided to me by email, The online version at MSI isn't recognised by this machine.
Please note: I replaced the CMOS battery yesterday, both the old one and the new Duracell CR2032 replacement tested in my multimeter as over 3.2V. My system automatically backs up BIOS settings on leaving setup, and restores them in the event of battery removal etc.
I have previously edited /etc/adjtime back to zero values. I just checked that file - it is still as edited, with the zero values in the right place.
I have one Timeshift that is for the 21.2 version, dated September last year. My other more recent Timeshifts are all 21.3 daily ones of which I retain the latest three. I have NOT tried going back to 21.2 with Timeshift yet.
This machine dual boots with Windows 7 via a grub menu.
I have a live version of 21.3 on a bootable usb stick.
I also have a bootable usb with boot2usb on it.
My Timeshoft backups and my data backups are on an usb external HDD.

I do any system updates as soon as Update Manager tells me to do them. Other than that, and correcting the clock via Time/Date applet I won't change anything else unless advised, and I will only change one thing at a time.

Power manager is set as follows:
Gen tab - suspend for everythng, brightness step 15 secs, appearance - both sliders ON
System tab: sleep mode - "suspend" when inactive for 30 minutes.
Display tab: Display power management slider ON. Blank after 2 minutes, sleep after 5 minutes, switch off - never. Brightness reduction, on inactivity reduce to 80%, reduce after: Never
Security: Light Locker, Automatically lock the session - never. Delay locking screensaver for 1 second. Lock the screen when system is going to sleep - ticked. (these seem to be the settings that interfere least with my automatic backup (set to come on via a chron command, just after an automatic wake-up set via the BIOS alarm at 6.55am "deja-dup" - the only way I could get it to work without user intervention).

The UEFI BIOS is set to normal setting rather than the ECO setting, as I suspected that was disabling my network adapter, which doesn't happen when the ECO BIOS setting is disabled.

Here is the system info BEFORE I manually correct the clock reflecting the PC immediately on waking, after about two hours on suspend, and with the clock 68hours fast according to the panel display.

Code: Select all

System:
  Kernel: 5.15.0-92-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Xfce 4.18.1
    tk: Gtk 3.24.33 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: MSI model: FM2-A55M-E33 (MS-7721) v: 2.0 serial: <superuser required>
    BIOS: American Megatrends v: 11.5B1 date: 10/31/2013
CPU:
  Info: quad core model: AMD A8-5500 APU with Radeon HD Graphics bits: 64 type: MT MCP
    smt: enabled arch: Piledriver rev: 1 cache: L1: 192 KiB L2: 4 MiB
  Speed (MHz): avg: 2478 high: 3614 min/max: 1400/3200 boost: enabled cores: 1: 1397 2: 1397
    3: 3507 4: 3614 bogomips: 25551
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Trinity [Radeon HD 7560D] vendor: Micro-Star MSI driver: radeon v: kernel ports:
    active: HDMI-A-1 empty: VGA-1 bus-ID: 00:01.0 chip-ID: 1002:9904 class-ID: 0300
  Device-2: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.18.0 driver: X:
    loaded: ati,radeon unloaded: fbdev,modesetting,vesa gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
  Monitor-1: HDMI-0 mapped: HDMI-A-1 model: HP 22xi serial: <filter> res: 1920x1080 hz: 60
    dpi: 102 size: 480x270mm (18.9x10.6") diag: 551mm (21.7") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD ARUBA (DRM 2.50.0 / 5.15.0-92-generic LLVM 15.0.7)
    v: 4.5 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: AMD Trinity HDMI Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:01.1 chip-ID: 1002:9902 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  Device-3: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Sound Server-1: ALSA v: k5.15.0-92-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.27 TiB used: 237.01 GiB (10.2%)
  ID-1: /dev/sda type: USB vendor: Seagate model: ST2000DM008-2UB102 size: 1.82 TiB
    speed: <unknown> type: HDD rpm: 7200 serial: <filter> scheme: MBR
  ID-2: /dev/sdb vendor: Western Digital model: WD5000AAKX-22ERMA0 size: 465.76 GiB
    speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1H17 scheme: MBR
Partition:
  ID-1: / size: 155.31 GiB used: 84.27 GiB (54.3%) fs: ext4 dev: /dev/sdb6
  ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sdb5
Swap:
  ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-2:2 info: ASMedia ASM1153 SATA 3Gb/s bridge type: Mass Storage driver: uas
    interfaces: 1 rev: 2.1 speed: 480 Mb/s chip-ID: 174c:1153 class-ID: 0806 serial: <filter>
  Hub-2: 2-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 2-2:3 info: Microsoft LifeCam HD-3000 type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 045e:0779 class-ID: 0102
  Hub-3: 3-0:1 info: Full speed or root hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-5: 5-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 5-1:2 info: Primax USB Wired Keyboard type: Keyboard,HID driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 0461:4dbf class-ID: 0300
  Device-2: 5-3:3 info: Primax USB Optical Mouse type: Mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 1.5 Mb/s power: 98mA chip-ID: 0461:4d64 class-ID: 0301
  Hub-6: 6-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-7: 7-0:1 info: Full speed or root hub ports: 4 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 33.0 C mobo: 31.0 C gpu: radeon temp: 6.0 C
  Fan Speeds (RPM): cpu: 2255 fan-2: 0 fan-3: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.33 vbat: 3.28
Repos:
  Packages: apt: 2208
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https: //packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 318 Uptime: 3d 8m wakeups: 1 Memory: 14.83 GiB used: 2.01 GiB (13.5%) Init: systemd
  v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client
  inxi: 3.3.13
RevRob - Linux learner
Dullard du Jour
Level 5
Level 5
Posts: 519
Joined: Fri Dec 23, 2022 10:43 am

Re: problem with system clock, just after 21.3 upgrade.

Post by Dullard du Jour »

You can try to set your PC to use local RTC time and see if when resuming from suspend the 68 hour issue clears up. At the moment, your RTC is probably set to 0.

Edit the adjtime file, as you did earlier, and set its values to 0.

Code: Select all

timedatectl status
To see the current state of RTC

Code: Select all

timedatectl set-local-rtc 1
Set RTC to 1

Code: Select all

timedatectl status
Verify RTC set to 1


This will force your system time to the local RTC, which should not be a problem for a desktop system. If a time sync issue remains, then I am not sure what to tell you. But it does seem that Mint Virginia is disagreeable with your system.

Are you booting in and out of Windows and Mint during this timing issue?
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: problem with system clock, just after 21.3 upgrade.

Post by SMG »

revrob wrote: Mon Feb 05, 2024 12:47 pmthis problem manifested itself after the 21.3 upgrade as a almost 100% consistent repeatable error.

I have NOT tried going back to 21.2 with Timeshift yet.
And the reason you are not doing this is because you didn't take a Timeshift snapshot before upgrading to LM21.3? Or is there some other reason?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by t42 »

You may freely ignore advice two comments above to manipulate timedatectl command.

Please run and note these commands before going to suspend and immediately after wake up when the issue occurs:

Code: Select all

date&&cat /proc/driver/rtc
.
-=t42=-
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

t42 wrote: Mon Feb 05, 2024 7:06 pm You may freely ignore advice two comments above to manipulate timedatectl command.

Please run and note these commands before going to suspend and immediately after wake up when the issue occurs:

Code: Select all

date&&cat /proc/driver/rtc
.
Thank you for your reply.

After an automatic warm boot (see the alarm item below for 6.55am, which causes the reboot to allow an automatic backup of data) with clock showing correct time. When I came to the machine it was running, with the display asleep. On waking the display,, the logon screen was displayed.
As I had not logged on, the machine did not suspend on its own (I've never managed to work out how to get the machine to suspend without being logged on.

Now it is logged on, it should suspend after 30 minutes of inactivity.

I have carried out an update for Edge browser via update manager.
No Linux system updates.

Code: Select all

~$ date&&cat /proc/driver/rtc
Tue  6 Feb 11:30:37 GMT 2024
rtc_time	: 11:30:38
rtc_date	: 2024-02-06
alrm_time	: 06:55:00
alrm_date	: 2024-02-06
alarm_IRQ	: no
alrm_pending	: no
update IRQ enabled	: no
periodic IRQ enabled	: no
periodic IRQ frequency	: 1024
max user IRQ frequency	: 64
24hr		: yes
periodic_IRQ	: no
update_IRQ	: no
HPET_emulated	: yes
BCD		: yes
DST_enable	: no
periodic_freq	: 1024
batt_status	: okay
~$ 
I will change nothing and post the same command output after a wake from suspend later today.

Code: Select all

System:
  Kernel: 5.15.0-92-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Xfce 4.18.1
    tk: Gtk 3.24.33 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: MSI model: FM2-A55M-E33 (MS-7721) v: 2.0 serial: <superuser required>
    BIOS: American Megatrends v: 11.5B1 date: 10/31/2013
CPU:
  Info: quad core model: AMD A8-5500 APU with Radeon HD Graphics bits: 64 type: MT MCP
    smt: enabled arch: Piledriver rev: 1 cache: L1: 192 KiB L2: 4 MiB
  Speed (MHz): avg: 3490 high: 3546 min/max: 1400/3200 boost: enabled cores: 1: 3495 2: 3546
    3: 3445 4: 3475 bogomips: 25551
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Trinity [Radeon HD 7560D] vendor: Micro-Star MSI driver: radeon v: kernel ports:
    active: HDMI-A-1 empty: VGA-1 bus-ID: 00:01.0 chip-ID: 1002:9904 class-ID: 0300
  Device-2: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.18.0 driver: X:
    loaded: ati,radeon unloaded: fbdev,modesetting,vesa gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
  Monitor-1: HDMI-0 mapped: HDMI-A-1 model: HP 22xi serial: <filter> res: 1920x1080 hz: 60
    dpi: 102 size: 480x270mm (18.9x10.6") diag: 551mm (21.7") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD ARUBA (DRM 2.50.0 / 5.15.0-92-generic LLVM 15.0.7)
    v: 4.5 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: AMD Trinity HDMI Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:01.1 chip-ID: 1002:9902 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  Device-3: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Sound Server-1: ALSA v: k5.15.0-92-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.27 TiB used: 237.17 GiB (10.2%)
  ID-1: /dev/sda type: USB vendor: Seagate model: ST2000DM008-2UB102 size: 1.82 TiB
    speed: <unknown> type: HDD rpm: 7200 serial: <filter> scheme: MBR
  ID-2: /dev/sdb vendor: Western Digital model: WD5000AAKX-22ERMA0 size: 465.76 GiB
    speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1H17 scheme: MBR
Partition:
  ID-1: / size: 155.31 GiB used: 84.43 GiB (54.4%) fs: ext4 dev: /dev/sdb6
  ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sdb5
Swap:
  ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-2:2 info: ASMedia ASM1153 SATA 3Gb/s bridge type: Mass Storage driver: uas
    interfaces: 1 rev: 2.1 speed: 480 Mb/s chip-ID: 174c:1153 class-ID: 0806 serial: <filter>
  Hub-2: 2-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 2-2:3 info: Microsoft LifeCam HD-3000 type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 045e:0779 class-ID: 0102
  Hub-3: 3-0:1 info: Full speed or root hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-5: 5-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 5-1:2 info: Primax USB Wired Keyboard type: Keyboard,HID driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 0461:4dbf class-ID: 0300
  Device-2: 5-3:3 info: Primax USB Optical Mouse type: Mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 1.5 Mb/s power: 98mA chip-ID: 0461:4d64 class-ID: 0301
  Hub-6: 6-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-7: 7-0:1 info: Full speed or root hub ports: 4 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 34.0 C mobo: 30.0 C gpu: radeon temp: 5.0 C
  Fan Speeds (RPM): cpu: 2248 fan-2: 0 fan-3: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.33 vbat: 3.28
Repos:
  Packages: apt: 2208
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https: //packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 241 Uptime: 3d 19h 51m wakeups: 2 Memory: 14.83 GiB used: 1.67 GiB (11.3%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12
  Client: Unknown python3.10 client inxi: 3.3.13
RevRob - Linux learner
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

t42 wrote: Mon Feb 05, 2024 7:06 pm You may freely ignore advice two comments above to manipulate timedatectl command.

Please run and note these commands before going to suspend and immediately after wake up when the issue occurs:

Code: Select all

date&&cat /proc/driver/rtc
.
Here is the same data, but after a suspend/wake event - and the date/clock has shifted forwards 68hrs. No other changes to the system.

Code: Select all

$ date&&cat /proc/driver/rtc
Fri  9 Feb 10:28:12 GMT 2024
alrm_time	: 06:55:00
alrm_date	: 2024-02-06
alarm_IRQ	: no
alrm_pending	: no
update IRQ enabled	: no
periodic IRQ enabled	: no
periodic IRQ frequency	: 1024
max user IRQ frequency	: 64
24hr		: yes
periodic_IRQ	: no
update_IRQ	: no
HPET_emulated	: yes
BCD		: yes
DST_enable	: no
periodic_freq	: 1024
batt_status	: okay
I note that there is NO data given in this second example for RTC - those 2 lines are simply absent.
Presumably that is significant, but I don't have the understanding to know how.

Code: Select all

System:
  Kernel: 5.15.0-92-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Xfce 4.18.1
    tk: Gtk 3.24.33 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: MSI model: FM2-A55M-E33 (MS-7721) v: 2.0 serial: <superuser required>
    BIOS: American Megatrends v: 11.5B1 date: 10/31/2013
CPU:
  Info: quad core model: AMD A8-5500 APU with Radeon HD Graphics bits: 64 type: MT MCP
    smt: enabled arch: Piledriver rev: 1 cache: L1: 192 KiB L2: 4 MiB
  Speed (MHz): avg: 2501 high: 3623 min/max: 1400/3200 boost: enabled cores: 1: 3623 2: 3589
    3: 1396 4: 1397 bogomips: 25551
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Trinity [Radeon HD 7560D] vendor: Micro-Star MSI driver: radeon v: kernel ports:
    active: HDMI-A-1 empty: VGA-1 bus-ID: 00:01.0 chip-ID: 1002:9904 class-ID: 0300
  Device-2: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.18.0 driver: X:
    loaded: ati,radeon unloaded: fbdev,modesetting,vesa gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
  Monitor-1: HDMI-0 mapped: HDMI-A-1 model: HP 22xi serial: <filter> res: 1920x1080 hz: 60
    dpi: 102 size: 480x270mm (18.9x10.6") diag: 551mm (21.7") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD ARUBA (DRM 2.50.0 / 5.15.0-92-generic LLVM 15.0.7)
    v: 4.5 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: AMD Trinity HDMI Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:01.1 chip-ID: 1002:9902 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  Device-3: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Sound Server-1: ALSA v: k5.15.0-92-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.27 TiB used: 237.16 GiB (10.2%)
  ID-1: /dev/sda vendor: Western Digital model: WD5000AAKX-22ERMA0 size: 465.76 GiB
    speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1H17 scheme: MBR
  ID-2: /dev/sdb type: USB vendor: Seagate model: ST2000DM008-2UB102 size: 1.82 TiB type: HDD
    rpm: 7200 serial: <filter> scheme: MBR
Partition:
  ID-1: / size: 155.31 GiB used: 84.41 GiB (54.3%) fs: ext4 dev: /dev/sda6
  ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sda5
Swap:
  ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-2:2 info: ASMedia ASM1153 SATA 3Gb/s bridge type: Mass Storage driver: uas
    interfaces: 1 rev: 2.1 speed: 480 Mb/s chip-ID: 174c:1153 class-ID: 0806 serial: <filter>
  Hub-2: 2-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 2-2:3 info: Microsoft LifeCam HD-3000 type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 045e:0779 class-ID: 0102
  Hub-3: 3-0:1 info: Full speed or root hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-5: 5-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 5-1:2 info: Primax USB Wired Keyboard type: Keyboard,HID driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 0461:4dbf class-ID: 0300
  Device-2: 5-3:3 info: Primax USB Optical Mouse type: Mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 1.5 Mb/s power: 98mA chip-ID: 0461:4d64 class-ID: 0301
  Hub-6: 6-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-7: 7-0:1 info: Full speed or root hub ports: 4 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 39.0 C mobo: 34.0 C gpu: radeon temp: 10.0 C
  Fan Speeds (RPM): cpu: 2209 fan-2: 0 fan-3: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.31 vbat: 3.28
Repos:
  Packages: apt: 2208
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https: //packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 230 Uptime: 2d 21h 35m wakeups: 1 Memory: 14.83 GiB used: 1.5 GiB (10.1%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12
  Client: Unknown python3.10 client inxi: 3.3.13
FYI the /etc/adjtime file contains the following:

0.0 0 0.0
0
UTC

Update - within the same session - (no suspend, no reboot) I have now adjusted the panel clock using the time date applet and locked it once again.

The command now shows:

Code: Select all

$ date&&cat /proc/driver/rtc
Tue  6 Feb 14:49:51 GMT 2024
alrm_time	: 06:55:00
alrm_date	: 2024-02-06
alarm_IRQ	: no
alrm_pending	: no
update IRQ enabled	: no
periodic IRQ enabled	: no
periodic IRQ frequency	: 1024
max user IRQ frequency	: 64
24hr		: yes
periodic_IRQ	: no
update_IRQ	: no
HPET_emulated	: yes
BCD		: yes
DST_enable	: no
periodic_freq	: 1024
batt_status	: okay
The RTC lines are still missing.

A reminder that his is a dual boot system with Windows 7 - although I rarely boot into Windows.
RevRob - Linux learner
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by t42 »

Yes, this second result is significant, it shows that issue is the bordered between hardware clock and system clock.
1. Please run

Code: Select all

sudo lshw |gri -B5 rtc

2. Considering how shortly the issue manifest itself is it possible that the issue existed before upgrade to 21.3 and remained unnoticed for some time? Linux Mint 21.1 started with kernel version 5.15 as well and I don't see changes in the kernel config in 5.15 series related to this issue. Unless you upgraded previously from LM20.x and remained on the previous kernel series until recently.
3. IN the end, despite you have BIOS upgraded and the battery changed, but just to be sure, please clear the CMOS memory removing the battery and using a motherboard jumper as described in your motherboard manual.
-=t42=-
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

t42 wrote: Tue Feb 06, 2024 11:17 am Yes, this second result is significant, it shows that issue is the bordered between hardware clock and system clock.
1. Please run

Code: Select all

sudo lshw |gri -B5 rtc

2. Considering how shortly the issue manifest itself is it possible that the issue existed before upgrade to 21.3 and remained unnoticed for some time? Linux Mint 21.1 started with kernel version 5.15 as well and I don't see changes in the kernel config in 5.15 series related to this issue. Unless you upgraded previously from LM20.x and remained on the previous kernel series until recently.
3. IN the end, despite you have BIOS upgraded and the battery changed, but just to be sure, please clear the CMOS memory removing the battery and using a motherboard jumper as described in your motherboard manual.

Code: Select all

$ sudo lshw |gri -B5 rtc
[sudo] password for ****: Command 'gri' not found, did you mean:
  command 'ri' from deb ruby (1:3.0~exp1)
  command 'grn' from deb groff (1.22.4-8build1)
  command 'ghi' from deb ghi (1.2.0-1.1)
  command 'grig' from deb grig (0.8.1-6)
  command 'gmi' from deb lieer (1.3-6)
  command 'gli' from deb ruby-gli (2.14.0-1.1)
  command 'yri' from deb yard (0.9.26-1)
  command 'gsi' from deb gambc (4.9.3-1.2)
  command 'grc' from deb grc (1.13.1-1)
  command 'grip' from deb grip (4.2.0-3)
  command 'grim' from deb grim (1.4.0+ds-1)
Try: sudo apt install <deb name>
It would not remain unnoticed, because with a future date I can't send pop3/smtp mail.

It's possible it occurred before "occasionally" - I have posted here on finding occasional timeshift files last year, with a future date - but that was not repeatable, and we never got anywhere here on the issue. That time, it was a one off, 2 days into the future as described here:
viewtopic.php?p=2362162#p2362162

I will do the CMOS thing again but in a day or two when I have time to dismantle the wiring etc and open the machine again.
RevRob - Linux learner
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by t42 »

Thank you for the update. Sorry for misspelling, it's

Code: Select all

sudo lshw |grep -i -B5 rtc
-=t42=-
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

t42 wrote: Tue Feb 06, 2024 12:41 pm Thank you for the update. Sorry for misspelling, it's

Code: Select all

sudo lshw |grep -i -B5 rtc
Here we go:

Code: Select all

$ sudo lshw |grep -i -B5 rtc
[sudo] password for ***:         
                configuration: driver=system
           *-pnp00:06
                product: PnP device PNP0b00
                physical id: 6
                capabilities: pnp
                configuration: driver=rtc_cmos

Code: Select all

System:
  Kernel: 5.15.0-92-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Xfce 4.18.1
    tk: Gtk 3.24.33 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: MSI model: FM2-A55M-E33 (MS-7721) v: 2.0 serial: <superuser required>
    BIOS: American Megatrends v: 11.5B1 date: 10/31/2013
CPU:
  Info: quad core model: AMD A8-5500 APU with Radeon HD Graphics bits: 64 type: MT MCP
    smt: enabled arch: Piledriver rev: 1 cache: L1: 192 KiB L2: 4 MiB
  Speed (MHz): avg: 2478 high: 3617 min/max: 1400/3200 boost: enabled cores: 1: 1396 2: 1397
    3: 3617 4: 3503 bogomips: 25551
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Trinity [Radeon HD 7560D] vendor: Micro-Star MSI driver: radeon v: kernel ports:
    active: HDMI-A-1 empty: VGA-1 bus-ID: 00:01.0 chip-ID: 1002:9904 class-ID: 0300
  Device-2: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Display: x11 server: X.Org v: 1.21.1.4 compositor: xfwm v: 4.18.0 driver: X:
    loaded: ati,radeon unloaded: fbdev,modesetting,vesa gpu: radeon display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
  Monitor-1: HDMI-0 mapped: HDMI-A-1 model: HP 22xi serial: <filter> res: 1920x1080 hz: 60
    dpi: 102 size: 480x270mm (18.9x10.6") diag: 551mm (21.7") modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: AMD ARUBA (DRM 2.50.0 / 5.15.0-92-generic LLVM 15.0.7)
    v: 4.5 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: AMD Trinity HDMI Audio vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:01.1 chip-ID: 1002:9902 class-ID: 0403
  Device-2: AMD FCH Azalia vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
    bus-ID: 00:14.2 chip-ID: 1022:780d class-ID: 0403
  Device-3: Microsoft LifeCam HD-3000 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 2-2:3
    chip-ID: 045e:0779 class-ID: 0102
  Sound Server-1: ALSA v: k5.15.0-92-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 01:00.0
    chip-ID: 10ec:8168 class-ID: 0200
  IF: enp1s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.27 TiB used: 237.15 GiB (10.2%)
  ID-1: /dev/sda vendor: Western Digital model: WD5000AAKX-22ERMA0 size: 465.76 GiB
    speed: 3.0 Gb/s type: N/A serial: <filter> rev: 1H17 scheme: MBR
  ID-2: /dev/sdb type: USB vendor: Seagate model: ST2000DM008-2UB102 size: 1.82 TiB type: HDD
    rpm: 7200 serial: <filter> scheme: MBR
Partition:
  ID-1: / size: 155.31 GiB used: 84.41 GiB (54.3%) fs: ext4 dev: /dev/sda6
  ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sda5
Swap:
  ID-1: swap-1 type: file size: 16 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-2:2 info: ASMedia ASM1153 SATA 3Gb/s bridge type: Mass Storage driver: uas
    interfaces: 1 rev: 2.1 speed: 480 Mb/s chip-ID: 174c:1153 class-ID: 0806 serial: <filter>
  Hub-2: 2-0:1 info: Full speed or root hub ports: 5 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 2-2:3 info: Microsoft LifeCam HD-3000 type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 045e:0779 class-ID: 0102
  Hub-3: 3-0:1 info: Full speed or root hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 4-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-5: 5-0:1 info: Full speed or root hub ports: 5 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 5-1:2 info: Primax USB Wired Keyboard type: Keyboard,HID driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 0461:4dbf class-ID: 0300
  Device-2: 5-3:3 info: Primax USB Optical Mouse type: Mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 1.5 Mb/s power: 98mA chip-ID: 0461:4d64 class-ID: 0301
  Hub-6: 6-0:1 info: Full speed or root hub ports: 2 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
  Hub-7: 7-0:1 info: Full speed or root hub ports: 4 rev: 1.1 speed: 12 Mb/s chip-ID: 1d6b:0001
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 36.0 C mobo: 33.0 C gpu: radeon temp: 8.0 C
  Fan Speeds (RPM): cpu: 2215 fan-2: 0 fan-3: 0
  Power: 12v: N/A 5v: N/A 3.3v: 3.31 vbat: 3.28
Repos:
  Packages: apt: 2208
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https: //packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 231 Uptime: 1h 27m wakeups: 0 Memory: 14.83 GiB used: 1.65 GiB (11.1%) Init: systemd
  v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client
  inxi: 3.3.13
RevRob - Linux learner
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by t42 »

sudo lshw |grep -i -B5 rtc
Thank you for the update, the result is as expected.
Short of complete clearing the CMOS memory, which will be, most likely, "just to be sure step":
1. After recent BIOS upgrade you probably immediately loaded optimized defaults after that, if not, you should do that, and then adjust some necessary settings to its current state.
2. In your BIOS setup should be something like Onboard Device Configuration and APM (power management). I hope MSI doesn't remove it. Seek there for
Power on by RTC == disabled/enabled
RTC alarm date = days
Hour/Minute/Second
You need to set all that to off and apply modifications.
3. If the previous doesn't give result, clear CMOS memory, load BIOS defaults and adjust necessary settings. That's it, the alternative is the motherboard fault.
-=t42=-
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

t42 wrote: Wed Feb 07, 2024 7:19 am
sudo lshw |grep -i -B5 rtc
Thank you for the update, the result is as expected.
Short of complete clearing the CMOS memory, which will be, most likely, "just to be sure step":
1. After recent BIOS upgrade you probably immediately loaded optimized defaults after that, if not, you should do that, and then adjust some necessary settings to its current state.
2. In your BIOS setup should be something like Onboard Device Configuration and APM (power management). I hope MSI doesn't remove it. Seek there for
Power on by RTC == disabled/enabled
RTC alarm date = days
Hour/Minute/Second
You need to set all that to off and apply modifications.
3. If the previous doesn't give result, clear CMOS memory, load BIOS defaults and adjust necessary settings. That's it, the alternative is the motherboard fault.
Many thanks once again.


In my BIOS setup I have under "advanced" a page entitled APM power management.
It has two lines
EuP 2013 - disabled (If ECO mode is enabled then EuP 2013 is enabled by default)
Restore after AC power loss - Power off

The next page is
Wake up event setup
It has lines:
Wake up event by - BIOS (or OS)
Resume by RTC Alarm - Enabled (or disabled) - I have this enabled an an alarm set up to wake the PC at 6.55am
Date (of month) alarm - 0
Time (hh) Alarm - 6
Time (mm) Alarm - 55
Time (ss) Alarm - 0S
Resume from S3 by USB device - disabled
Resume from S3/S4/S5 by PS2 Mouse - disabled
Resume from S3/S4/S5 by PS2 keyboard - disabled

I assume you want me to set "Resume by RTC Alarm" to Disable?
I've done that.
I've left Wake up Event set to wake by BIOS, on basis of only change one thing at a time!!

Thanks again

(sys info not posted as this was composed on my laptop, while adjusting the desktop's BIOS settings.)
RevRob - Linux learner
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: problem with system clock, just after 21.3 upgrade.

Post by SMG »

revrob wrote: Wed Feb 07, 2024 12:33 pm(sys info not posted as this was composed on my laptop, while adjusting the desktop's BIOS settings.)
Sys info is not relevant to what was requested so there's no need to keep posting it. If for some reason sys info is needed again, it will be requested.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

Update - the machine had rebooted sometime this morning after the BIOS alarm wake, so showed the correct time when I logged in.

I then made the BIOS alterations detailed in my last post, cancelling the rtc alarm, saved and rebooted.

But I didn't change the "Wake up Event" from "by BIOS". So I can do that if you advise, and try again.

Various updates including a kernel upgrade (to Kernel: 5.15.0-94 ) and firefox update were offered by Update Manager.
I ran timeshift and then did the updates - there had been an automatic daily timeshift earlier this morning anyway.

After the updates I left the machine to suspend.

I've just woken the desktop PC from suspend - and the clock is 68 hours ahead again. :(

I checked update history out of interest, and see two updates dated for tomorrow, 8-02-2024 which seems a bit precocious,.
update history.png
I've unlocked and corrected the panel clock and locked it again.
RevRob - Linux learner
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: problem with system clock, just after 21.3 upgrade.

Post by SMG »

revrob wrote: Wed Feb 07, 2024 4:17 pmAfter the updates I left the machine to suspend.

I've just woken the desktop PC from suspend - and the clock is 68 hours ahead again. :(

I checked update history out of interest, and see two updates dated for tomorrow, 8-02-2024 which seems a bit precocious,.
That would seem to indicate the time on your computer had already started shifting before you suspended the computer if the updates had completed prior to the suspension.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

SMG wrote: Wed Feb 07, 2024 4:26 pm
revrob wrote: Wed Feb 07, 2024 4:17 pmAfter the updates I left the machine to suspend.

I've just woken the desktop PC from suspend - and the clock is 68 hours ahead again. :( which seems a bit precocious,.
That would seem to indicate the time on your computer had already started shifting before you suspended the computer if the updates had completed prior to the suspension.
Comparing with the update history of my laptop, those two updates occurred (on the laptop) on the 6th, on their own at 16.12pm so were available for download on the 6th, so it is equally likely that I may have downloaded them onto the desktop on the 6th before I noticed the system clock was ahead of itself? The only other update with a date of 6th Feb on the desktop is microsoft edge browser which is a different type of update (and not present on my laptop)- there are no "Linux proper" software updates for the 6th Feb on my desktop history. So I think those two dated 8th Feb actually downloaded on the 5th when the clock was wrong after waking the machine.

I've never noticed the system clock alter during a live session while using the desktop.
RevRob - Linux learner
revrob
Level 3
Level 3
Posts: 107
Joined: Sat May 27, 2023 4:13 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by revrob »

Since making the changes to BIOS, as detailed in
viewtopic.php?p=2429487#p2429487
the clock behaviour has changed.

(I did NOT change the "Wake up Event" from "by BIOS" and will do that if you advise.)

Since those changes to BIOS/Setup settings, I have seen the following (('m keeping a detailed log file to avoid confusion but I will just summarise here)

Suspend/Wake - with NO alteration to clock
Suspend/Wake - with alteration to clock - on one occasion backwards, on others standard 68 hours forward, and this morning - after overnight >12hrs suspend/wake - clock was forward 56 hours.
Yesterday the clock did not self correct once woken, but today it self corrected within 5 minutes of waking.

I have cancelled all automatic backups/timeshift operations as they tend to occur while clock is wrong, giving backup files dated in the future.
I am now doing these backups manually once the clock is correct - the only automatic timeshift now happening, is on boot.

I am continuing with all updates, including the recent kernel update.

Many thanks for all the assistance.
RevRob - Linux learner
t42
Level 11
Level 11
Posts: 3747
Joined: Mon Jan 20, 2014 6:48 pm

Re: problem with system clock, just after 21.3 upgrade.

Post by t42 »

In my opinion all checks are pointing to the motherboard fault. All tests done until now don't contradict to that. Besides it's quite old, at least 10 years old.
-=t42=-
Post Reply

Return to “Other topics”