You are not logged in.

#1 2018-10-14 14:46:20

avi9526
Member
Registered: 2015-05-15
Posts: 116

[SOLVED] startkde takes over 30sec

Disable SDDM
Restart
Login in text console

startx

in any window

startkde 2>&1 | xargs -n1 -P1 -I% bash -c 'echo "[$(date --iso-8601=seconds)] - %"' > 1.log

Result:

[2018-10-14T17:36:07+03:00] - startkde: Starting up...
[2018-10-14T17:36:07+03:00] - kdeinit5: preparing to launch /usr/lib/kf5/klauncher
[2018-10-14T17:36:07+03:00] - kdeinit5: Launched KLauncher, pid = 967, result = 0
[2018-10-14T17:36:08+03:00] - kdeinit5: opened connection to :1
[2018-10-14T17:36:08+03:00] - kdeinit5: preparing to launch libkdeinit5_kded5
[2018-10-14T17:36:08+03:00] - kdeinit5: Launched KDED, pid = 979 result = 0
[2018-10-14T17:36:08+03:00] - kdeinit5: preparing to launch libkdeinit5_kcminit_startup
[2018-10-14T17:36:08+03:00] - kdeinit5: Launched kcminit_startup, pid = 982 result = 0
[2018-10-14T17:36:08+03:00] - kdeinit5: Got SETENV GTK_RC_FILES=/etc/gtk/gtkrc:/home/avi9526/.gtkrc:/home/avi9526/.config/gtkrc from launcher.
[2018-10-14T17:36:08+03:00] - kdeinit5: Got SETENV GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/avi9526/.gtkrc-2.0:/home/avi9526/.config/gtkrc-2.0 from launcher.
[2018-10-14T17:36:08+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/kf5/kconf_update from launcher.
[2018-10-14T17:36:08+03:00] - kdeinit5: preparing to launch /usr/lib/kf5/kconf_update
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/akonadiconsole.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/akregator.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/amarok.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/disable_kmix.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/filepicker.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/fonts_akregator.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/fonts_global.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/fonts_global_toolbar.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/fonts_kate.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/gtkbreeze5.5.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/gwenview.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/importwizard.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kaddressbook.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kalarm.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/katomic-levelset.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kcalcrc.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kde4breeze.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kget.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kgthemeprovider-migration.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kleopatra.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/klickety.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kmail.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kmail2.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/knavalbattle.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/knotes.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kontact.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-account-kconf_update.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-gaim_to_pidgin_style.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-initialstatus.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-jabberpriorityaddition-kconf_update.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-jabberproxytype-kconf_update.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-nameTracking.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-pluginloader.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-pluginloader2.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-update_icq_server.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kopete-update_icq_ssl.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/korganizer.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/krdb_libpathwipe.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/krunnerplugins.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kscreenlocker.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/kwin.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/okular.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/pimsettingexporter.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/sieveeditor.upd for new updates
[2018-10-14T17:36:08+03:00] - 2018-10-14T17:36:08 Checking update-file /usr/share/kconf_update/webengineurlinterceptoradblock.upd for new updates
[2018-10-14T17:36:08+03:00] - kdeinit5: PID 1010 terminated.
[2018-10-14T17:36:08+03:00] - kdeinit5: Got SETENV XCURSOR_THEME=avi9526-LH from launcher.
[2018-10-14T17:36:08+03:00] - kdeinit5: Got SETENV XCURSOR_SIZE=0 from launcher.
[2018-10-14T17:36:08+03:00] - kdeinit5: Got EXEC_NEW /usr/bin/kaccess from launcher.
[2018-10-14T17:36:08+03:00] - kdeinit5: preparing to launch /usr/bin/kaccess
[2018-10-14T17:36:08+03:00] - kdeinit5: PID 982 terminated.
[2018-10-14T17:36:08+03:00] - kdeinit5: Got KWRAPPER /usr/bin/ksmserver from wrapper.
[2018-10-14T17:36:08+03:00] - kdeinit5: preparing to launch /usr/bin/ksmserver
[2018-10-14T17:36:08+03:00] - Cannot find org.kde.KSplash.setStage in object /KSplash at org.kde.KSplash
[2018-10-14T17:36:08+03:00] - kdeinit5: Got SETENV SESSION_MANAGER=local/peifPeaj2:@/tmp/.ICE-unix/1046,unix/peifPeaj2:/tmp/.ICE-unix/1046 from launcher.
[2018-10-14T17:36:33+03:00] - OpenGL vendor string:                   NVIDIA Corporation
[2018-10-14T17:36:33+03:00] - OpenGL renderer string:                 GeForce GTX 1060 6GB/PCIe/SSE2
[2018-10-14T17:36:33+03:00] - OpenGL version string:                  3.1.0 NVIDIA 410.57
[2018-10-14T17:36:33+03:00] - OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
[2018-10-14T17:36:33+03:00] - Driver:                                 NVIDIA
[2018-10-14T17:36:33+03:00] - Driver version:                         410.57
[2018-10-14T17:36:33+03:00] - GPU class:                              Unknown
[2018-10-14T17:36:33+03:00] - OpenGL version:                         3.1
[2018-10-14T17:36:33+03:00] - GLSL version:                           1.40
[2018-10-14T17:36:33+03:00] - X server version:                       1.20.1
[2018-10-14T17:36:33+03:00] - Linux kernel version:                   4.18.12
[2018-10-14T17:36:33+03:00] - Requires strict binding:                no
[2018-10-14T17:36:33+03:00] - GLSL shaders:                           yes
[2018-10-14T17:36:33+03:00] - Texture NPOT support:                   yes
[2018-10-14T17:36:33+03:00] - Virtual Machine:                        no
[2018-10-14T17:36:34+03:00] - akonadi.collectionattributetable                   OK
[2018-10-14T17:36:34+03:00] - akonadi.collectionmimetyperelation                 OK
[2018-10-14T17:36:34+03:00] - akonadi.collectionpimitemrelation                  OK
[2018-10-14T17:36:34+03:00] - akonadi.collectiontable                            OK
[2018-10-14T17:36:34+03:00] - akonadi.flagtable                                  OK
[2018-10-14T17:36:34+03:00] - akonadi.mimetypetable                              OK
[2018-10-14T17:36:34+03:00] - akonadi.parttable                                  OK
[2018-10-14T17:36:34+03:00] - akonadi.parttypetable                              OK
[2018-10-14T17:36:34+03:00] - akonadi.pimitemflagrelation                        OK
[2018-10-14T17:36:34+03:00] - akonadi.pimitemtable                               OK
[2018-10-14T17:36:34+03:00] - akonadi.pimitemtagrelation                         OK
[2018-10-14T17:36:34+03:00] - akonadi.relationtable                              OK
[2018-10-14T17:36:34+03:00] - akonadi.relationtypetable                          OK
[2018-10-14T17:36:34+03:00] - akonadi.resourcetable                              OK
[2018-10-14T17:36:34+03:00] - akonadi.schemaversiontable                         OK
[2018-10-14T17:36:34+03:00] - akonadi.tagattributetable                          OK
[2018-10-14T17:36:34+03:00] - akonadi.tagremoteidresourcerelationtable           OK
[2018-10-14T17:36:34+03:00] - akonadi.tagtable                                   OK
[2018-10-14T17:36:34+03:00] - akonadi.tagtypetable                               OK
[2018-10-14T17:36:36+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/file.so from launcher.
[2018-10-14T17:36:36+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/file.so
[2018-10-14T17:36:36+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/file.so from launcher.
[2018-10-14T17:36:36+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/file.so
[2018-10-14T17:36:58+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/http.so from launcher.
[2018-10-14T17:36:58+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/http.so
[2018-10-14T17:36:58+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/http.so from launcher.
[2018-10-14T17:36:58+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/http.so
[2018-10-14T17:37:08+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/trash.so from launcher.
[2018-10-14T17:37:08+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/trash.so
[2018-10-14T17:37:08+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/file.so from launcher.
[2018-10-14T17:37:08+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/file.so
[2018-10-14T17:37:08+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/file.so from launcher.
[2018-10-14T17:37:08+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/file.so
[2018-10-14T17:37:08+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/thumbnail.so from launcher.
[2018-10-14T17:37:08+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/thumbnail.so
[2018-10-14T17:37:09+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/file.so from launcher.
[2018-10-14T17:37:09+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/file.so
[2018-10-14T17:37:09+03:00] - kdeinit5: PID 1703 terminated.
[2018-10-14T17:37:10+03:00] - kdeinit5: Got EXEC_NEW /usr/lib/qt/plugins/kf5/kio/thumbnail.so from launcher.
[2018-10-14T17:37:10+03:00] - kdeinit5: preparing to launch /usr/lib/qt/plugins/kf5/kio/thumbnail.so
[2018-10-14T17:37:13+03:00] - kdeinit5: Got EXT_EXEC /usr/bin/kate from launcher.
[2018-10-14T17:37:13+03:00] - kdeinit5: preparing to launch /usr/bin/kate
[2018-10-14T17:37:13+03:00] - kdeinit5: PID 1685 terminated.
[2018-10-14T17:37:15+03:00] - kdeinit5: PID 1695 terminated.

it takes over 30sec for desktop to show up

Next startkde will be fast. Sometimes first startkde after system boot is also fast.

Saw some topics about SDDM being slow because of not enough entropy, but here haveged is running and SDDM not used.

Where to dig?

Last edited by avi9526 (2018-10-21 18:00:47)

Offline

#2 2018-10-17 16:50:11

avi9526
Member
Registered: 2015-05-15
Posts: 116

Re: [SOLVED] startkde takes over 30sec

Disabling NetworkManager

sudo systemctl disable NetworkManager

makes KDE start "instant".

I suspect it maybe related to bluetooth but I've done

sudo systemctl disable bluetooth.service

and that doesn't help

Last edited by avi9526 (2018-10-17 16:50:37)

Offline

#3 2018-10-17 19:09:49

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

Re: [SOLVED] startkde takes over 30sec

Is your hostname properly set? Issues like that in combination with networkmanager usually happen if localhost ist the hostname, set up a proper hostname (that session manager middle part also looks random enough that that might be the case). Also since you explicitly mention disabling sddm, make sure that your xinitrc is setting up a proper session note the second blue box.

Last edited by V1del (2018-10-17 19:10:46)

Offline

#4 2018-10-21 10:52:07

avi9526
Member
Registered: 2015-05-15
Posts: 116

Re: [SOLVED] startkde takes over 30sec

hostname is set, its just some random string
startx was used instead of SDDM because it allows to see stdout of startkde

Seems like I have found the culprit. Slow start happen only after clean system start. If I logout and login in SDDM kde start fast. So I've checked what processes is left after logout from tty2

679 /usr/lib/systemd/systemd --user
680 (sd-pam)
694 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
746 /usr/lib/telepathy/mission-control-5
764 /usr/lib/dconf-service
813 /usr/bin/pulseaudio --daemonize=no
829 /usr/lib/geoclue-2.0/demos/agent
875 /usr/lib/bluetooth/obexd
940 /usr/lib/gvfsd
945 /usr/lib/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
1049 /usr/lib/at-spi-bus-launcher
5249 -bash

some of them are not really important so by killing them one-by-one then checking startkde time I've found reason and fixed it

sudo pacman -Rsc telepathy-qt

Now 5 sequential full system restarts and kde start fast. Not marking as solved until check some more restarts to be sure

Last edited by avi9526 (2018-10-21 10:52:57)

Offline

Board footer

Powered by FluxBB