You are not logged in.

#1 2014-03-11 16:32:45

ormu
Guest

[SOLVED] Running NTP during boot + font problems after installing Gimp

After installing GIMP some fonts look different (worse) than before. This is especially noticeable on certain web pages (using Firefox).

gsfonts was installed alongside Gimp and I guess it's the source of the problem. Someone suggested to remove it and ignoring dependecy check but that sounds hacky. Should I just do that?

Someone had the same problem here but no answer:

https://bbs.archlinux.org/viewtopic.php?id=112730

There aren't any explicit references to gsfonts in the X font path (displayed with xset -q)




Another problem: I tried to configure NTP to synchronise the clock once per boot just as instructed here:

https://wiki.archlinux.org/index.php/Nt … e_per_boot

However, that doesn't work and the system time doesn't change.

journalctl -b -u ntp-once says

foo systemd[1]: Starting Network Time Service (once)...
<date> foo ntpd[415]: proto: precision = 0.103 usec
<date> foo ntpd[415]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
<date> foo ntpd[415]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
<date> foo ntpd[415]: Listen and drop on 1 v6wildcard :: UDP 123
<date> foo ntpd[415]: Listen normally on 2 lo 127.0.0.1 UDP 123
<date> foo ntpd[415]: Listen normally on 3 <interface> UDP 123
<date> foo ntpd[415]: Listen normally on 4 lo ::1 UDP 123
<date> foo ntpd[415]: Listen normally on 5 <interface> UDP 123
<date> foo ntpd[415]: peers refreshed
<date> foo ntpd[415]: Listening on routing socket on fd #22 for interface updates
<date> foo systemd[1]: Started Network Time Service (once).

NTP logfile says:

<date> ntpd[415]: ntpd exiting on signal 15

I have added logging to NTP configuration file but otherwise it's default.

Wiki tells not to use the -q option in this case. Is this correct?

Last edited by ormu (2014-03-23 14:44:45)

#2 2014-03-11 17:05:45

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,219

Re: [SOLVED] Running NTP during boot + font problems after installing Gimp

What is output of 'timedatectl' ?  Also did you symlink your timezone?  What clock did you set to run? This is all in the https://wiki.archlinux.org/index.php/time  give that a read carefully as it will become obvious why syncing ntp alone won't entirely fix your problem.

As for removing packages, as long as it isn't a high level package like video drivers, xorg, etc then it is very safe to remove package.  Test.  If it fixed, woohoo.  If not, you can reinstall package by pacman -U from cache or pacman -S from repos.

Last edited by frank604 (2014-03-11 17:06:09)

Offline

#3 2014-03-11 20:01:01

ormu
Guest

Re: [SOLVED] Running NTP during boot + font problems after installing Gimp

Timezone is symlinked:

$ls -l /etc | grep localtime
lrwxrwxrwx 1 root root     35 Apr 24  2013 localtime -> /usr/share/zoneinfo/Europe/Helsinki

timedatectl output:

      Local time: Tue 2014-03-11 21:59:03 EET
  Universal time: Tue 2014-03-11 19:59:03 UTC
        Timezone: Europe/Helsinki (EET, +0200)
     NTP enabled: no
NTP synchronized: no
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2013-10-27 03:59:59 EEST
                  Sun 2013-10-27 03:00:00 EET
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-03-30 02:59:59 EET
                  Sun 2014-03-30 04:00:00 EEST

The problem is that the hardware clock drifts about 1 minute per month. It's now about 6 minutes ahead of the correct time. Setting it during every boot would be more than enough to keep it in correct time but the method described in the wiki doesn't work for some reason. I'm pretty sure that just running

ntpd -q
hwclock -w

...fixed it when I corrected the clock previously. I haven't tried it again because I want to see when the automatic correction starts to work.


I'll check what happens when I just remove gsfonts.

#4 2014-03-19 16:21:30

ormu
Guest

Re: [SOLVED] Running NTP during boot + font problems after installing Gimp

I removed gsfonts and web fonts got back to normal. GIMP seems to start at least. Let's hope that all needed features work without that package...


Should I just try to run ntpd with -q parameter even though the wiki tells not to use it?

#5 2014-03-22 11:19:34

ormu
Guest

Re: [SOLVED] Running NTP during boot + font problems after installing Gimp

Ok, looks like this problem is solved. I added the -q option in the systemd unit and now it sets the time properly...

# systemctl status ntp-once
ntp-once.service - Network Time Service (once)
   Loaded: loaded (/etc/systemd/system/ntp-once.service; enabled)
   Active: inactive (dead) since Sat 2014-03-22 12:58:56 EET; 15min ago
  Process: 623 ExecStart=/usr/bin/hwclock -w (code=exited, status=0/SUCCESS)
  Process: 447 ExecStart=/usr/bin/ntpd -q -g -u ntp:ntp (code=exited, status=0/SUCCESS)
 Main PID: 623 (code=exited, status=0/SUCCESS)

Mar 22 13:04:50 foo ntpd[447]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Mar 22 13:04:50 foo ntpd[447]: Listen and drop on 1 v6wildcard :: UDP 123
Mar 22 13:04:50 foo ntpd[447]: Listen normally on 2 lo 127.0.0.1 UDP 123
Mar 22 13:04:50 foo ntpd[447]: Listen normally on 3 <interface> UDP 123
Mar 22 13:04:50 foo ntpd[447]: Listen normally on 4 lo ::1 UDP 123
Mar 22 13:04:50 foo ntpd[447]: Listen normally on 5 <interface> UDP 123
Mar 22 13:04:50 foo ntpd[447]: peers refreshed
Mar 22 13:04:50 foo ntpd[447]: Listening on routing socket on fd #22 for interface updates
Mar 22 12:58:55 foo ntpd[447]: ntpd: time set -362.074962s
Mar 22 12:58:56 foo systemd[1]: Started Network Time Service (once).

The wiki tells not to use the -q option in this case but it seems to be wrong (?). Should it be corrected?

#6 2014-03-23 08:54:54

vah
Member
Registered: 2007-03-30
Posts: 7

Re: [SOLVED] Running NTP during boot + font problems after installing Gimp

ormu wrote:

The wiki tells not to use the -q option in this case but it seems to be wrong (?). Should it be corrected?

IMHO, yes. I added  a comment about that to the wiki talk page.

Offline

#7 2014-03-23 14:43:59

ormu
Guest

Re: [SOLVED] Running NTP during boot + font problems after installing Gimp

Ok, thanks. Looks like it's fixed now. I mark this as solved.

Board footer

Powered by FluxBB