clock / system time always two h ahead after reboot

Forum Forums New users New Users and General Questions clock / system time always two h ahead after reboot

  • This topic has 22 replies, 4 voices, and was last updated Oct 21-7:35 am by ModdIt.
Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #68882
    Member
    orthodox42

      Hi, new to antix. I struggle a bit with setting the system time.
      When I change the time in controlcenter it is again two hours ahead after reboot.
      Any suggestions?

      #68883
      Member
      ModdIt
        Helpful
        Up
        0
        ::

        Did you set correct timezone as well as actual time.

        #68903
        Member
        orthodox42
          Helpful
          Up
          0
          ::

          Yes, both.

          #68906
          Member
          Xecure
            Helpful
            Up
            0
            ::

            Do you dual boot with windows? Did you select to use local time or UTC when installing?

            Check how the hardware clock is set
            sudo hwclock --verbose | grep -i hardware
            If it tells you Hardware clock is localtime (the one used by windows),
            Hardware clock is on local time
            then you also need to set your linux time to use “local time”

            sudo ntpdate pool.ntp.org
            sudo hwclock --systohc --localtime

            And that should keep the correct time after reboot.

            antiX Live system enthusiast.
            General Live Boot Parameters for antiX.

            #68912
            Member
            orthodox42
              Helpful
              Up
              0
              ::

              Thanks for the quick answer! What is your time zone? Still awake or already up?
              😉
              Here is what I got:

              sudo hwclock –systohc –localtime –verbose
              hwclock from util-linux 2.33.1
              System Time: 1634370426.903076
              Trying to open: /dev/rtc0
              Trying to open: /dev/rtc
              Trying to open: /dev/misc/rtc
              No usable clock interface found.
              hwclock: Cannot access the Hardware Clock via any known method.

              #68915
              Member
              Xecure
                Helpful
                Up
                0
                ::

                Strange. What does
                sudo hwclock
                display (without any options)

                antiX Live system enthusiast.
                General Live Boot Parameters for antiX.

                #68922
                Member
                ModdIt
                  Helpful
                  Up
                  0
                  ::

                  hwclock: Cannot access the Hardware Clock via any known method.

                  Is the BIOS password protected or locked ?

                  #68943
                  Member
                  orthodox42
                    Helpful
                    Up
                    0
                    ::

                    No everything open.
                    Battery?
                    How can I test the battery without opening the hardware?

                    #68945
                    Member
                    Xecure
                      Helpful
                      Up
                      0
                      ::

                      See if this thread helps. It looks similar to your case:
                      Debian – hwclock: Cannot access the Hardware Clock via any known method

                      Probably after setting this you no longer need to change the hardware clock, but first lets make sure this works.

                      antiX Live system enthusiast.
                      General Live Boot Parameters for antiX.

                      #68948
                      Member
                      orthodox42
                        Helpful
                        Up
                        0
                        ::

                        tried to install acpitool via sudo apt-get install acpitool
                        Any idea why this does not work?

                        No error message through install process
                        but:

                        acpi -V
                        bash: acpi: Kommando nicht gefunden. (command not found)
                        
                        • This reply was modified 1 year, 6 months ago by orthodox42.
                        • This reply was modified 1 year, 6 months ago by orthodox42.
                        #68951
                        Member
                        Xecure
                          Helpful
                          Up
                          0
                          ::

                          I think it is time we know what version of antiX is installed.
                          inxi -Fxz

                          I have acpi work on my system OK.

                          $ acpi -V
                          Battery 0: Full, 100%
                          Battery 0: design capacity 4400 mAh, last full capacity 3663 mAh = 83%
                          Adapter 0: on-line
                          Cooling 0: Processor 0 of 10
                          Cooling 1: Processor 0 of 10
                          Cooling 2: Processor 0 of 10
                          Cooling 3: intel_powerclamp no state information available
                          Cooling 4: x86_pkg_temp no state information available
                          Cooling 5: Processor 0 of 10

                          So either a package is missing or your system needs a different kernel version to get the best out of your hardware.

                          antiX Live system enthusiast.
                          General Live Boot Parameters for antiX.

                          #68955
                          Member
                          orthodox42
                            Helpful
                            Up
                            0
                            ::

                            cat /sys/devices/system/clocksource/clocksource0/available_clocksource

                            gives

                            tsc refined-jiffies jiffies 
                            

                            Updating grub with jiffies?

                            #68956
                            Member
                            orthodox42
                              Helpful
                              Up
                              0
                              ::
                              $ inxi -Fxz
                              System:    Kernel: 4.9.0-264-antix.1-486-smp i686 bits: 32 compiler: gcc v: 8.3.0 Desktop: IceWM 2.8.0 
                                         Distro: antiX-19.4_386-base Grup Yorum 20 May 2021 base: Debian GNU/Linux 10 (buster) 
                              Machine:   Type: Laptop System: Sony product: PCG-GRT785B(DE) v: 01 serial: <filter> 
                                         Mobo: N/A model: N/A serial: N/A BIOS: Phoenix v: R0043F0 date: 01/16/2004 
                              CPU:       Info: Single Core model: Intel Pentium 4 bits: 32 type: MCP arch: Netburst Northwood rev: 9 
                                         cache: L2: 512 KiB 
                                         flags: pae sse sse2 bogomips: 5345 
                                         Speed: 2673 MHz min/max: N/A Core speed (MHz): 1: 2673 
                              Graphics:  Device-1: NVIDIA NV17M [GeForce4 420 Go] vendor: Sony driver: N/A bus-ID: 01:00.0 
                                         Display: x11 server: X.Org 1.20.4 driver: loaded: nouveau,vesa unloaded: fbdev,modesetting 
                                         resolution: 1024x768 
                                         OpenGL: renderer: llvmpipe (LLVM 7.0 128 bits) v: 3.3 Mesa 18.3.6 direct render: Yes 
                              Audio:     Device-1: Silicon Integrated Systems [SiS] SiS7012 AC97 Sound vendor: Sony driver: snd_intel8x0 
                                         v: kernel bus-ID: 00:02.7 
                                         Sound Server-1: ALSA v: k4.9.0-264-antix.1-486-smp running: yes 
                              Network:   Device-1: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet vendor: Sony driver: sis900 
                                         v: kernel port: 2000 bus-ID: 00:04.0 
                                         IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter> 
                              Drives:    Local Storage: total: 55.89 GiB used: 2.69 GiB (4.8%) 
                                         ID-1: /dev/sda vendor: Hitachi model: DK23FA-60 size: 55.89 GiB 
                              Partition: ID-1: / size: 10.79 GiB used: 2.56 GiB (23.8%) fs: ext4 dev: /dev/sda1 
                                         ID-2: /home size: 43.14 GiB used: 119.8 MiB (0.3%) fs: ext4 dev: /dev/sda3 
                              Swap:      ID-1: swap-1 type: partition size: 768 MiB used: 10.4 MiB (1.4%) dev: /dev/sda2 
                              Sensors:   Message: No sensor data found. Is lm-sensors configured? 
                              Info:      Processes: 128 Uptime: 55m Memory: 492.1 MiB used: 404.7 MiB (82.2%) Init: SysVinit runlevel: 5 
                                         Compilers: gcc: 8.3.0 Packages: 1255 Shell: Bash v: 5.0.3 inxi: 3.3.06 
                              #68958
                              Member
                              Xecure
                                Helpful
                                Up
                                0
                                ::

                                Thanks for the inxi information.
                                I tried searching for clock problems related to the PCG-GRT785B, but found nothing.

                                What I did find is that older systems do seem to boot with the wrong time. Some are related to bad cmos battery, but others seem to need to change the time in BIOS for it to pickup correctly on Linux.

                                I hope one of the antiX forum residents with a lot of experience on aging hardware can give better advise. The only thing I can think of is using ntpd service to get the time from internet servers every few hours, but that is more of a workaround instead of a proper solution.

                                antiX Live system enthusiast.
                                General Live Boot Parameters for antiX.

                                #68966
                                Member
                                orthodox42
                                  Helpful
                                  Up
                                  0
                                  ::

                                  thank you. I’ ll have a look what I can do in the BIOS

                                Viewing 15 posts - 1 through 15 (of 23 total)
                                • You must be logged in to reply to this topic.