unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33685: Time settings does not work in gnome
@ 2018-12-09 12:06 swedebugia
  2018-12-09 12:09 ` swedebugia
  0 siblings, 1 reply; 4+ messages in thread
From: swedebugia @ 2018-12-09 12:06 UTC (permalink / raw)
  To: 33685

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

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

[-- Attachment #2: config.scm --]
[-- Type: text/plain, Size: 4407 bytes --]

;; 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)
  )

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33685: Time settings does not work in gnome
  2018-12-09 12:06 bug#33685: Time settings does not work in gnome swedebugia
@ 2018-12-09 12:09 ` swedebugia
  2018-12-09 22:33   ` Chris Marusich
  0 siblings, 1 reply; 4+ messages in thread
From: swedebugia @ 2018-12-09 12:09 UTC (permalink / raw)
  To: 33685; +Cc: bug-Guix

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)
-- 
Cheers 
Swedebugia

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33685: Time settings does not work in gnome
  2018-12-09 12:09 ` swedebugia
@ 2018-12-09 22:33   ` Chris Marusich
  2019-07-19 21:30     ` Timothy Sample
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Marusich @ 2018-12-09 22:33 UTC (permalink / raw)
  To: swedebugia; +Cc: 33685, bug-Guix

[-- Attachment #1: Type: text/plain, Size: 1716 bytes --]

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
>> 
>> 
>> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#33685: Time settings does not work in gnome
  2018-12-09 22:33   ` Chris Marusich
@ 2019-07-19 21:30     ` Timothy Sample
  0 siblings, 0 replies; 4+ messages in thread
From: Timothy Sample @ 2019-07-19 21:30 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 33685, bug-Guix

Hello,

Chris Marusich <cmmarusich@gmail.com> writes:

> 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.

>>
>> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-19 21:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-09 12:06 bug#33685: Time settings does not work in gnome swedebugia
2018-12-09 12:09 ` swedebugia
2018-12-09 22:33   ` Chris Marusich
2019-07-19 21:30     ` Timothy Sample

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).