Date & Time: Grayed out toggle automatic time zone

MibuNoOokami

New Member
Joined
Dec 29, 2024
Messages
10
Reaction score
0
Credits
66
Hi all,

I don’t wish to take up your time with a lengthy post so plan to keep this very brief.

Under date and time on my system, the automatic time zone is toggled to the on position and is grayed out preventing it being turned off.

I want to know how to ungray the toggle so I can switch the auto time zone off?

The results of my searches has lead me to the conclusion that this is an unknown anomaly.
I’m holding out hope that someone here has encountered this before, but had the knowledge/experience to get around it without the need to make a post.

Thank you
 


G'day MibuNoOokami, Welcome to Linux.org

Please tell us which Linux and its version you are using



 
If you ckick on the date and time settings via the clock in the system tray do you see a pic similar to the below ?

1735445594519.png
 
Similar, yes
 

Attachments

  • Screenshot from 2024-12-28 23-22-53.png
    Screenshot from 2024-12-28 23-22-53.png
    221.8 KB · Views: 36
  • Screenshot from 2024-12-28 23-21-22.png
    Screenshot from 2024-12-28 23-21-22.png
    52.8 KB · Views: 40
I just randomly clicked on the map.....it then shows europe as the region (which I can click on and change)..I am also able to click on the city to effect change there as well

1735446888643.png
 
I just randomly clicked on the map.....it then shows europe as the region (which I can click on and change)..I am also able to click on the city to effect change there as well
I'm not trying to change my location though, I want to turn off "Automatic Time Zone" which is grayed out as per post and pic
 
oops...Sorry !....in too much of a hurry here....I failed to read your post properly
 
Code:
~$ timedatectl status
               Local time: Sun 2024-12-29 01:26:48 EST
           Universal time: Sun 2024-12-29 06:26:48 UTC
                 RTC time: Sun 2024-12-29 06:26:47
                Time zone: America/New_York (EST, -0500)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no
 
The RTC in local TZ is as it should be, but you don't have NTP service enabled.

Bash:
sudo timedatectl set-ntp true

You might need to log off/ log in after that for UI change, if this doesn't work I'm clueless, could be UI issue.
 
Code:
~$ timedatectl status
               Local time: Sun 2024-12-29 01:26:48 EST
           Universal time: Sun 2024-12-29 06:26:48 UTC
                 RTC time: Sun 2024-12-29 06:26:47
                Time zone: America/New_York (EST, -0500)
System clock synchronized: no
              NTP service: n/a
          RTC in local TZ: no
These are the packages that provide time-daemon on debian and debian based distros:
systemd-timesyncd
openntpd
ntp
chrony

If one of those is installed and running, it should set your clock from internet sources if it's configured reasonably, and you have online access. The ntp package may have been replaced actually by one of the others. Perhaps check the status of systemd-timesyncd, for example:
Code:
$ systemctl status systemd-timesyncd
● systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; preset: enabled)
     Active: active (running) since Sun 2024-12-29 07:44:58 AEDT; 10h ago
 Invocation: d83273e31a6c4ec4bc605282219b7eb7
       Docs: man:systemd-timesyncd.service(8)
<snip>
If it's not enabled, it can be turned on. Dunno if this helps with the issue though.
 
Last edited:
Chrony is the only one that attempts to work but it wants me to choose between chronyc and chronyd. Does it matter which?
 
The chrony package includes both the daemon (chronyd) and the command chronyc. Here's some info following the line with "Description":
Code:
$ apt show chrony
Package: chrony
Version: 4.6.1-1
Priority: optional
Section: net
Maintainer: Vincent Blut <[email protected]>
Installed-Size: 695 kB
Provides: time-daemon
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: adduser (>= 3.130), iproute2, tzdata, ucf, libc6 (>= 2.38), libcap2 (>= 1:2.10), libedit2 (>= 2.11-20080614-0), libgnutls30t64 (>= 3.8.1), libnettle8t64 (>= 3.9~), libseccomp2 (>= 2.4.3-1~)
Suggests: dnsutils, networkd-dispatcher
Conflicts: time-daemon
Breaks: network-manager (<< 1.20.0-1~)
Replaces: time-daemon
Homepage: https://chrony-project.org
Tag: implemented-in::c, interface::commandline, interface::daemon,
 interface::text-mode, network::server, network::service, role::program,
 uitoolkit::ncurses, use::configuring, use::monitor, use::timekeeping
Download-Size: 308 kB
APT-Sources: http://ftp.au.debian.org/debian trixie/main amd64 Packages

Description: Versatile implementation of the Network Time Protocol
 It consists of a pair of programs:
 .
 chronyd:  This is a daemon which runs in background on the system.
 It obtains measurements (e.g. via the network) of the system's offset
 relative to other systems and adjusts the system time accordingly. For
 isolated systems, the user can periodically enter the correct time by
 hand (using 'chronyc'). In either case 'chronyd' determines the rate
 at which the computer gains or loses time, and compensates for this.
 Chronyd implements the NTP protocol and can act as either a client or
 a server.
 .
 chronyc: This is a command-line driven control and monitoring program.
 An administrator can use this to fine-tune various parameters within
 the daemon, add or delete servers etc whilst the daemon is running.

My reading suggests most running a systemd system use systemd-timesyncd which I guess you could install if all else fails.

Here's a rundown of the files in the chrony package from which one can see there are examples under the /usr/share/doc/chrony directory to help the user configure it:

Code:
$ apt-file list chrony
chrony: /etc/apparmor.d/usr.sbin.chronyd
chrony: /etc/chrony/conf.d/README
chrony: /etc/chrony/sources.d/README
chrony: /etc/default/chrony
chrony: /etc/dhcp/dhclient-exit-hooks.d/chrony
chrony: /etc/init.d/chrony
chrony: /etc/logrotate.d/chrony
chrony: /etc/network/if-post-down.d/chrony
chrony: /etc/network/if-up.d/chrony
chrony: /etc/ppp/ip-down.d/chrony
chrony: /etc/ppp/ip-up.d/chrony
chrony: /usr/bin/chronyc
chrony: /usr/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
chrony: /usr/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
chrony: /usr/lib/networkd-dispatcher/off.d/chrony-onoffline
chrony: /usr/lib/networkd-dispatcher/routable.d/chrony-onoffline
chrony: /usr/lib/systemd/ntp-units.d/50-chrony.list
chrony: /usr/lib/systemd/system/[email protected]
chrony: /usr/lib/systemd/system/[email protected]
chrony: /usr/lib/systemd/system/chrony-wait.service
chrony: /usr/lib/systemd/system/chrony.service
chrony: /usr/lib/systemd/system/chronyd-restricted.service
chrony: /usr/libexec/chrony/chrony-helper
chrony: /usr/sbin/chronyd
chrony: /usr/share/chrony/chrony.conf
chrony: /usr/share/chrony/chrony.keys
chrony: /usr/share/doc/chrony/FAQ.gz
chrony: /usr/share/doc/chrony/NEWS.Debian.gz
chrony: /usr/share/doc/chrony/NEWS.gz
chrony: /usr/share/doc/chrony/README.Debian
chrony: /usr/share/doc/chrony/README.gz
chrony: /usr/share/doc/chrony/changelog.Debian.gz
chrony: /usr/share/doc/chrony/copyright
chrony: /usr/share/doc/chrony/examples/chrony.conf.example1
chrony: /usr/share/doc/chrony/examples/chrony.conf.example2
chrony: /usr/share/doc/chrony/examples/chrony.conf.example3
chrony: /usr/share/lintian/overrides/chrony
chrony: /usr/share/man/man1/chronyc.1.gz
chrony: /usr/share/man/man5/chrony.conf.5.gz
chrony: /usr/share/man/man8/chronyd.8.gz
 
Last edited:
I installed chrony and it has added a second toggle above date and time to make it automatic or not. Can't see that anything else has changed with it though.
openntpd could be installed but did nothing when I ran it, and it was uninstalled during chrony install... I'll spend a bit more time on this and report back
 

Attachments

  • Screenshot from 2024-12-29 02-34-14.png
    Screenshot from 2024-12-29 02-34-14.png
    75.6 KB · Views: 32
I installed chrony and it has added a second toggle above date and time to make it automatic or not. Can't see that anything else has changed with it though.
openntpd could be installed but did nothing when I ran it, and it was uninstalled during chrony install... I'll spend a bit more time on this and report back
Correction: I forgot to run timedatectl status, just did it now and there are two changes.
Code:
timedatectl status
               Local time: Sun 2024-12-29 02:43:07 EST
           Universal time: Sun 2024-12-29 07:43:07 UTC
                 RTC time: Sun 2024-12-29 07:43:07
                Time zone: America/New_York (EST, -0500)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
The system clock is now sync'd and NTP is active. It just hasn't changed the grayed out button
 



Latest posts

Top