You are not logged in.

#1 2015-01-18 11:11:20

Clouseau
Member
Registered: 2010-12-24
Posts: 112

Kde4 slow to show desktop after login

I'm trying to find what is the cause of slow showing of desktop after I login in kde. It takes about 20 seconds to stop showing animations and take me to dekstop. I have a gap on journalctl between 11:50:26 and 11:50:51 and I think that is the time I have to wait to kde show me the desktop screen:
journalctl -b

Sij 18 11:50:26 vader pulseaudio[723]: Daemon already running.
Sij 18 11:50:26 vader rtkit-daemon[661]: Successfully made thread 728 of process 728 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Sij 18 11:50:26 vader rtkit-daemon[661]: Supervising 2 threads of 2 processes of 1 users.
Sij 18 11:50:26 vader pulseaudio[728]: Daemon already running.
Sij 18 11:50:26 vader org.a11y.Bus[513]: Activating service name='org.a11y.atspi.Registry'
Sij 18 11:50:26 vader org.a11y.Bus[513]: Successfully activated service 'org.a11y.atspi.Registry'
Sij 18 11:50:26 vader org.a11y.atspi.Registry[743]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Sij 18 11:50:51 vader polkitd[410]: Registered Authentication Agent for unix-session:c1 (system bus name :1.36 [/usr/lib/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Sij 18 11:50:54 vader NetworkManager[396]: (NetworkManager:396): libnm-util-CRITICAL **: get_secret_flags: assertion 'is_secret_prop (setting, secret_name, error)' failed
Sij 18 11:50:54 vader NetworkManager[396]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Sij 18 11:50:54 vader NetworkManager[396]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Sij 18 11:50:54 vader NetworkManager[396]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Sij 18 11:50:54 vader NetworkManager[396]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Sij 18 11:50:54 vader NetworkManager[396]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Sij 18 11:50:54 vader NetworkManager[396]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Sij 18 11:50:54 vader NetworkManager[396]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Sij 18 11:50:54 vader NetworkManager[396]: <info> Activation (wlan0/wireless): connection 'homeNET' has security, and secrets exist.  No new secrets needed.

And systemd-analyze
Startup finished in 3.844s (kernel) + 4.852s (userspace) = 8.697s
systemd-analyze blame
          3.123s updatedb.service
          2.412s man-db.service
          1.131s ModemManager.service
           717ms NetworkManager.service
           524ms shadow.service
           507ms logrotate.service
           322ms systemd-vconsole-setup.service
           269ms systemd-modules-load.service
           233ms systemd-logind.service
           229ms syslog-ng.service
           226ms systemd-binfmt.service
           205ms iptables.service
           191ms systemd-journald.service
           168ms cpupower.service
           149ms teamviewerd.service
           148ms systemd-fsck@dev-sdb1.service
           121ms systemd-journal-flush.service
           118ms polkit.service
           111ms systemd-udevd.service
            97ms lm_sensors.service
            80ms systemd-rfkill@rfkill0.service
            78ms systemd-udev-trigger.service
            68ms kmod-static-nodes.service
            59ms proc-sys-fs-binfmt_misc.mount
            58ms rtkit-daemon.service
            54ms dev-mqueue.mount
            50ms systemd-tmpfiles-setup-dev.service
            49ms systemd-remount-fs.service
            49ms media-Store.mount
            45ms systemd-user-sessions.service
            44ms rpcbind.service
            44ms tmp.mount
            42ms dev-hugepages.mount
            41ms systemd-random-seed.service
            38ms udisks2.service
            35ms alsa-restore.service
            34ms sys-kernel-debug.mount
            33ms systemd-sysctl.service
            32ms ntpd.service
            22ms wpa_supplicant.service
            22ms sys-kernel-config.mount
            13ms user@1000.service
            11ms systemd-tmpfiles-clean.service
            10ms systemd-tmpfiles-setup.service
             8ms upower.service
             6ms dev-sda4.swap
             6ms avahi-daemon.service
             5ms systemd-update-utmp.service

Last edited by Clouseau (2015-01-18 11:40:27)

Offline

#2 2015-01-18 12:10:28

Clouseau
Member
Registered: 2010-12-24
Posts: 112

Re: Kde4 slow to show desktop after login

OK, I have isolated the problem. After the desktop is shown I have to enter the password for KDE Wallet to unlockit so that NetworkManager can get the password for wifi connection. Then it connects to network. In NetworkManager the opion that says: "Automatically connect to this network when it is avaliable" is turned ON. If I turn OFF this option then the delay is about 5s after login screen and before the desktop is shown which is ok then.
So the problem is in that option. Can anyone give some advice? I could use this:
https://wiki.archlinux.org/index.php/Ne … ager#KDE_2 But then I have to store plaintext password in that file.

Does anyone know how to lower that timeout that is happening when above option is set to ON?

Last edited by Clouseau (2015-01-18 12:11:16)

Offline

#3 2015-01-18 12:58:51

hifi25nl
Member
Registered: 2011-05-07
Posts: 264

Re: Kde4 slow to show desktop after login

Personally I would use netctl and eventually netctl-gui for easy configuration.

https://wiki.archlinux.org/index.php/Netctl
https://aur.archlinux.org/packages/netctl-gui/

Offline

#4 2015-01-18 16:02:11

Clouseau
Member
Registered: 2010-12-24
Posts: 112

Re: Kde4 slow to show desktop after login

Tnx for the info, but makes no difference, I can fix the problem by storing plain text password, just like netctl uses it. I want to circumvent that and still have a speedy login smile

Offline

Board footer

Powered by FluxBB