Time settings does not work in gnome

  • Open
  • quality assurance status badge
Details
3 participants
  • Chris Marusich
  • Timothy Sample
  • swedebugia
Owner
unassigned
Submitted by
swedebugia
Severity
normal
S
S
swedebugia wrote on 9 Dec 2018 13:06
(address . bug-guix@gnu.org)
96867ca463d735e008f570124389b4fd@riseup.net
When I set the time or toggle automatic time in the gnome-control-center
it errors out. The time is still wrong.

sdb@antelope ~$ gnome-control-center

(gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
Timezone '(null)' is unhandled, setting Europe/London as default

(gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
Could not set system to use NTP:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.timedate1 was not provided by any .service files

(gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
g_dbus_connection_call_internal: assertion 'object_path != NULL &&
g_variant_is_object_path (object_path)' failed


sdb@antelope ~$ guix --version
guix (GNU Guix) 0.16.0-3.6ddc63e

Installed from git with sudo -E reconf...

config.scm attached.
--
Cheers
Swedebugia
;; This is an operating system configuration template ;; for a "desktop" setup with GNOME and Xfce where the ;; root partition is encrypted with LUKS. (use-modules (gnu) (gnu system nss)) (use-service-modules desktop networking) (use-package-modules certs gnome ;; for my-base-packages linux less base nano pciutils admin man texinfo bash guile gawk compression) (define %my-base-packages ;; Like upstream but without wifi-programs and zile. ;; Default set of packages globally visible. It should include anything ;; required for basic administrator tasks. (cons* procps psmisc which less ;;zile nano pciutils usbutils util-linux inetutils isc-dhcp (@ (gnu packages admin) shadow) ;for 'passwd' ;; wireless-tools is deprecated in favor of iw, but it's still what ;; many people are familiar with, so keep it around. ;;iw wireless-tools iproute net-tools ; XXX: remove when Inetutils suffices man-db info-reader ;the standalone Info reader (no Perl) ;; The 'sudo' command is already in %SETUID-PROGRAMS, but we also ;; want the other commands and the man pages (notably because ;; auto-completion in Emacs shell relies on man pages.) sudo ;; Get 'insmod' & co. from kmod, not module-init-tools, since udev ;; already depends on it anyway. kmod eudev e2fsprogs kbd bash-completion ;; XXX: We don't use (canonical-package guile-2.2) here because that ;; would create a collision in the global profile between the GMP ;; variant propagated by 'guile-final' and the GMP variant propagated ;; by 'gnutls', itself propagated by 'guix'. guile-2.2 ;; The packages below are also in %FINAL-INPUTS, so take them from ;; there to avoid duplication. (map canonical-package (list bash coreutils findutils grep sed diffutils patch gawk tar gzip bzip2 xz lzip)))) (operating-system (host-name "antelope") (timezone "Europe/Paris") (locale "en_US.utf8") ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) (file-systems (cons (file-system (device (file-system-label "my-root")) (mount-point "/") (type "ext4")) %base-file-systems)) (swap-devices '("/dev/sda2")) (users (cons (user-account (name "sdb") (comment "Alice's brother") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/sdb")) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* nss-certs ;for HTTPS access gvfs ;for user mounts gnome-shell-extensions network-manager-openvpn %my-base-packages)) ;; Add GNOME and/or Xfce---we can choose at the log-in ;; screen with F1. Use the "desktop" services, which ;; include the X11 log-in service, networking with ;; NetworkManager, and more. (services (cons* (gnome-desktop-service) ;;(xfce-desktop-service) (console-keymap-service "se-latin1") (modify-services %desktop-services ; Add berlin as first priority ; substitute server (guix-service-type config => (guix-configuration (inherit config) (substitute-urls '( "https://berlin.guixsd.org https://mirror.hydra.gnu.org")))) (network-manager-service-type config => (network-manager-configuration (inherit config) (vpn-plugins (list network-manager-openvpn))))))) ;; Allow resolution of '.local' host names with mDNS. ;;(name-service-switch %mdns-host-lookup-nss) )
S
S
swedebugia wrote on 9 Dec 2018 13:09
(address . 33685@debbugs.gnu.org)(name . bug-Guix)(address . bug-guix-bounces+swedebugia=riseup.net@gnu.org)
c05f9b16433c276632d160d8baa45136@riseup.net
On 2018-12-09 13:06, swedebugia@riseup.net wrote:
Toggle quote (25 lines)
> When I set the time or toggle automatic time in the gnome-control-center
> it errors out. The time is still wrong.
>
> sdb@antelope ~$ gnome-control-center
>
> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
> Timezone '(null)' is unhandled, setting Europe/London as default
>
> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
> Could not set system to use NTP:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.timedate1 was not provided by any .service files
>
> (gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
> g_dbus_connection_call_internal: assertion 'object_path != NULL &&
> g_variant_is_object_path (object_path)' failed
>
>
> sdb@antelope ~$ guix --version
> guix (GNU Guix) 0.16.0-3.6ddc63e
>
> Installed from git with sudo -E reconf...
>
> config.scm attached.

Fixed the time manually with
sudo date -s 1308 +%H%M
(the date and year was correct already)
--
Cheers
Swedebugia
C
C
Chris Marusich wrote on 9 Dec 2018 23:33
(address . swedebugia@riseup.net)
87ftv6z5x5.fsf@gmail.com
swedebugia@riseup.net writes:

Toggle quote (30 lines)
> On 2018-12-09 13:06, swedebugia@riseup.net wrote:
>> When I set the time or toggle automatic time in the gnome-control-center
>> it errors out. The time is still wrong.
>>
>> sdb@antelope ~$ gnome-control-center
>>
>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
>> Timezone '(null)' is unhandled, setting Europe/London as default
>>
>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
>> Could not set system to use NTP:
>> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.freedesktop.timedate1 was not provided by any .service files
>>
>> (gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
>> g_dbus_connection_call_internal: assertion 'object_path != NULL &&
>> g_variant_is_object_path (object_path)' failed
>>
>>
>> sdb@antelope ~$ guix --version
>> guix (GNU Guix) 0.16.0-3.6ddc63e
>>
>> Installed from git with sudo -E reconf...
>>
>> config.scm attached.
>
> Fixed the time manually with
> sudo date -s 1308 +%H%M
> (the date and year was correct already)

Are you using GuixSD? If so, is your system time set correctly when you
specify the correct timezone in your operating system configuration
file, reconfigure the system with "guix system reconfigure", and reboot?

If you're using GuixSD, is your system configured to use the NTP
service? It's included by default in the %desktop-services.

I'm not sure what's going on with gnome-control-center, but what I'm
getting at is that you might not need to use gnome-control-center to set
the time if you've configured your OS to use NTP and an appropriate
timezone.

--
Chris
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlwNmEYACgkQ3UCaFdgi
Rp34XhAAwj8FWYK/7suHDGORmdLb2dBWpAUgtfRpohmZ0l0oqkPPPDkYIy/H3fMW
8cF/1v2kn/I1BP6GMd5H+iSDO9hi8bVVjdJDqSB7SmSBOQzzTiqqzn/vZ2IBYfIV
Y8h79rsaFblydlOY7+8Ewdk97FgEuUx13MSnEAkn5huXLQy0/2ZW0pqaspoy+3/o
vkuHHjMKswTO9GU7spwlztG1UyTSzytS28XmNhtnHgP8zGXwek3mRfo2sKgDb5nB
kQAjxjxZN+xWSk9l1JhLN2XE2K7paEoDbg5RhOIBerC7iQZUcWNqt+Badc/wiYYJ
juUuvIryQVtm0HctMfl5vbFs3RYhob9eM07x7jhEg5qxdiiGGFLGvO02jnvEgb4y
HwVW14fRJuhLV5Y2VH6wgZVaIxfssOnFKBdl3l9Bp/hXPyn2eIgFIx+/vfl6xCVf
VxFCTlPJK8hgPHi9DGWfvxb+rbuPy/iqhV/WENM79SCJq7aWYx6x7sNVRCWLhzJq
bU8mNMXVZfH2w/LpT6B6UdljbNY5yoIiL5yLf20jqXPGtZzkow3MpjXLjUhMSge4
vxZJ/boikFdHbHi89wqp8boYPOq3ZA917gXC+/x3FL8BS6UoKvAagXYEnw/flSwo
oRlNYTYm2O3l9UCEypIq5jC+bZcRZvICRWGJtlN73OmZUfAzq70=
=ePDU
-----END PGP SIGNATURE-----

T
T
Timothy Sample wrote on 19 Jul 2019 23:30
(name . Chris Marusich)(address . cmmarusich@gmail.com)
8736j1emqd.fsf@ngyro.com
Hello,

Chris Marusich <cmmarusich@gmail.com> writes:

Toggle quote (22 lines)
> swedebugia@riseup.net writes:
>
>> On 2018-12-09 13:06, swedebugia@riseup.net wrote:
>>> When I set the time or toggle automatic time in the gnome-control-center
>>> it errors out. The time is still wrong.
>>>
>>> sdb@antelope ~$ gnome-control-center
>>>
>>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
>>> Timezone '(null)' is unhandled, setting Europe/London as default
>>>
>>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
>>> Could not set system to use NTP:
>>> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
>>> org.freedesktop.timedate1 was not provided by any .service files
>>>
>>> (gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
>>> g_dbus_connection_call_internal: assertion 'object_path != NULL &&
>>> g_variant_is_object_path (object_path)' failed
>>>
>>> [...]

I just came across this, and it’s broken because we do not provide a
“timedate1” D-Bus service. Usually, this is something systemd provides.
We have a stand-in for its cousin, “locale1”, but not “timedate1”.
Unless we provide the service somehow (another fork of systemd or a
complicated package like “localed”), GNOME Control Center is not going
to work here.

Toggle quote (17 lines)
>>
>> Fixed the time manually with
>> sudo date -s 1308 +%H%M
>> (the date and year was correct already)
>
> Are you using GuixSD? If so, is your system time set correctly when you
> specify the correct timezone in your operating system configuration
> file, reconfigure the system with "guix system reconfigure", and reboot?
>
> If you're using GuixSD, is your system configured to use the NTP
> service? It's included by default in the %desktop-services.
>
> I'm not sure what's going on with gnome-control-center, but what I'm
> getting at is that you might not need to use gnome-control-center to set
> the time if you've configured your OS to use NTP and an appropriate
> timezone.

This is a good point. Even if we did pull “timedated” out of systemd,
what would it do when someone calls “SetTimezone”? Update the files in
/etc so that they can be reverted at the next reconfigure?

Actually, maybe!

This would be one way to let GNOME’s “automatic timezone” feature work.
It could figure out where you are, send a message to the “timedate1”
service, which in turn would update the ephemeral timezone settings. It
doesn’t really matter that your timezone is reset by a reconfigure,
because there’s a daemon running that will fix it for you.

That being said, it would be confusing to set the timezone from GNOME
only to have it revert on reconfigure. (This is what it does now, but
at least it reverts immediately).

Basically, this could be fixed by providing a “timedate1” service, but
it would have some rough edges.


-- Tim
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 33685@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 33685
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch