You are not logged in.

#1 2016-08-10 13:36:44

ghost
Member
Registered: 2011-11-10
Posts: 44

X Applications long delay on start

I've encountered a strange problem.

My arch linux sytem needs about 20 seconds for each x11 application to open.
Has someone an idea what the problem is?

My hardware: X220 Laptop with I3 cpu and HD3000 graphics card

Fixes I tried:

* removed xf86-video-intel
* downgraded the xserver
* switch to linux-lts kernel

But no changes

Offline

#2 2016-08-10 14:14:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: X Applications long delay on start

Gnome? i3? Xfce4?

Is your hostname set properly?  What are the output of hostnamectl  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-08-10 14:22:41

ghost
Member
Registered: 2011-11-10
Posts: 44

Re: X Applications long delay on start

Sorry I forgot some information:

Problem is independent of the windowmanger, in a bar xsession, the delay still exists.

hostname is set correctly:

   Static hostname: markus-laptop
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: 5d4a9aae5ad44c5f579bca19000003ce
           Boot ID: 297e1b3c74a94654a33052e4bef8e585
  Operating System: Arch Linux
            Kernel: Linux 4.6.4-1-ARCH
      Architecture: x86-64


The logfiles of Xorg show no errors.

Offline

#4 2016-08-10 14:31:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: X Applications long delay on start

Okay.  I was going for the low hanging fruit first smile
You say for each x11 application it takes 20 seconds.  How are you launching the applications?  What happens if you start them from a terminal? Any interesting messages reported?  How about the journal -- anything interesting logged there?
What is your RAM / swap space state? (output of free )


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-08-10 15:06:17

ghost
Member
Registered: 2011-11-10
Posts: 44

Re: X Applications long delay on start

ewaller wrote:

Okay.  I was going for the low hanging fruit first smile
You say for each x11 application it takes 20 seconds.  How are you launching the applications?

I'm starting the applications from a shell (inside xterm).

An interesting note: When i start rofi (dmenu alike), the keyboard and mouse clicks are immediately taken, but the window appears after 20s.

What happens if you start them from a terminal? Any interesting messages reported?  How about the journal -- anything interesting logged there?
What is your RAM / swap space state? (output of free )

The load should be no problem and I have 7 Gbyte of free memory...

journalctl -xe:

Aug 10 15:03:13 markus-laptop pulseaudio[719]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
Aug 10 15:03:13 markus-laptop pulseaudio[719]:       after 12 requests (6 known processed) with 0 events remaining.
Aug 10 15:03:13 markus-laptop systemd[653]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 10 15:03:13 markus-laptop systemd[653]: pulseaudio.service: Unit entered failed state.
Aug 10 15:03:13 markus-laptop systemd[653]: pulseaudio.service: Failed with result 'exit-code'.
Aug 10 15:03:14 markus-laptop systemd[653]: pulseaudio.service: Service hold-off time over, scheduling restart.
Aug 10 15:03:14 markus-laptop systemd[653]: Stopped Sound Service.
-- Subject: Unit UNIT has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished shutting down.
Aug 10 15:03:14 markus-laptop systemd[653]: Starting Sound Service...
-- Subject: Unit UNIT has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has begun starting up.
Aug 10 15:03:14 markus-laptop pulseaudio[871]: W: [pulseaudio] pid.c: Stale PID file, overwriting.
Aug 10 15:03:14 markus-laptop systemd[653]: Started Sound Service.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished starting up.
-- 
-- The start-up result is done.
Aug 10 15:03:14 markus-laptop pulseaudio[871]: E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.servi
Aug 10 15:06:25 markus-laptop dbus-daemon[733]: Activating service name='org.gnome.GConf'
Aug 10 15:06:25 markus-laptop dbus-daemon[733]: Successfully activated service 'org.gnome.GConf'
Aug 10 15:06:25 markus-laptop dbus-daemon[733]: Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service'
Aug 10 15:06:25 markus-laptop systemd[653]: Starting Accessibility services bus...
-- Subject: Unit UNIT has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has begun starting up.
Aug 10 15:06:25 markus-laptop dbus-daemon[733]: Successfully activated service 'org.a11y.Bus'
Aug 10 15:06:25 markus-laptop systemd[653]: Started Accessibility services bus.
-- Subject: Unit UNIT has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has finished starting up.
-- 
-- The start-up result is done.
Aug 10 15:06:25 markus-laptop at-spi-bus-launcher[1177]: ** (process:1177): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown
Aug 10 15:21:28 markus-laptop sudo[6105]: pam_ecryptfs: pam_sm_authenticate: /home/markus is already mounted

The problem is independent of the user configuration: I created a new user on my system, and the same behavior is observable.
Note: Xterm starts immediately (on the other user), but other applications firefox or rofi have the same lag.

Last edited by ghost (2016-08-10 15:10:53)

Offline

#6 2016-08-12 00:21:42

ghost
Member
Registered: 2011-11-10
Posts: 44

Re: X Applications long delay on start

I'm really lost.
I just tested wayland with weston and the problem persists (with weston-terminal).

Does anyone has an advice for me?

Offline

#7 2016-08-12 00:27:23

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: X Applications long delay on start

Post output from:

cat /etc/hosts

Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#8 2016-08-12 00:27:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: X Applications long delay on start

What is the output of `loginctl show-session`?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2016-08-12 08:29:41

ghost
Member
Registered: 2011-11-10
Posts: 44

Re: X Applications long delay on start

markus@markus-laptop ~ % loginctl show-session
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=yes
IdleSinceHint=1470961016342913
IdleSinceHintMonotonic=77596350377
InhibitDelayMaxUSec=5s
HandlePowerKey=suspend
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=825348096
InhibitorsMax=8192
NCurrentInhibitors=0
SessionsMax=8192
NCurrentSessions=4
UserTasksMax=10813


markus@markus-laptop ~ % cat /etc/hosts
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       markus-laptop.localdomain       localhost markus-laptop
::1             markus-laptop.localdomain       localhost markus-laptop

# End of file

Offline

#10 2016-08-12 08:49:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: X Applications long delay on start

You aren't supposed to replace the first localhost in your /etc/hosts, it should be:

127.0.0.1       localhost.localdomain       localhost markus-laptop
::1             localhost.localdomain       localhost markus-laptop

as per https://wiki.archlinux.org/index.php/Ne … e_hostname

Last edited by V1del (2016-08-12 08:50:18)

Offline

#11 2016-08-12 09:00:34

ghost
Member
Registered: 2011-11-10
Posts: 44

Re: X Applications long delay on start

Thanks V1del,

I changed the hosts file and restarted , but nothing changed.

Offline

#12 2016-08-12 10:36:04

ghost
Member
Registered: 2011-11-10
Posts: 44

Re: X Applications long delay on start

After some serious debugging, I've found the problem:

I had installed the new "San Francisco" font by Apple in my /usr/share/fonts/OTF directory.
I removed these files, and now everything works as expected.

Offline

Board footer

Powered by FluxBB