No desktop up to 15 seconds after login












0















I was worried that my computer could be compromised and my login session is being hijacked by some malicious hook.



In .xsession executed by xdm, I capture a pstree snapshot a file to debug this situation.



This file's timestamp shows five to fifteen second delay after X11 login!



.xsession-errors doesn't show anything weird, only that I'm being added to "access control list" and then a couple of environment entries reported by dbus-update-activation-environment with no timestamps.



dmesg during this weird pause:



r8168: eth0: link up
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
random: crng init done
random: 7 urandom warning(s) missed due to ratelimiting
audit: type=1400 audit(1546022714.845:26): apparmor="STATUS" [...]
bridge: filtering via arp/ip/ip6tables is no longer available [...]
Bridge firewalling registered
Initializing XFRM netlink socket
IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): br-f14696ee8bfd: link is not ready


Regardless of the root cause (I suspect something demands more randomness after boot), how such problems can be debugged further?



Can I leverage systemd for example?










share|improve this question























  • Have you tried turning off IPV6?

    – Fabby
    Dec 28 '18 at 20:51
















0















I was worried that my computer could be compromised and my login session is being hijacked by some malicious hook.



In .xsession executed by xdm, I capture a pstree snapshot a file to debug this situation.



This file's timestamp shows five to fifteen second delay after X11 login!



.xsession-errors doesn't show anything weird, only that I'm being added to "access control list" and then a couple of environment entries reported by dbus-update-activation-environment with no timestamps.



dmesg during this weird pause:



r8168: eth0: link up
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
random: crng init done
random: 7 urandom warning(s) missed due to ratelimiting
audit: type=1400 audit(1546022714.845:26): apparmor="STATUS" [...]
bridge: filtering via arp/ip/ip6tables is no longer available [...]
Bridge firewalling registered
Initializing XFRM netlink socket
IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): br-f14696ee8bfd: link is not ready


Regardless of the root cause (I suspect something demands more randomness after boot), how such problems can be debugged further?



Can I leverage systemd for example?










share|improve this question























  • Have you tried turning off IPV6?

    – Fabby
    Dec 28 '18 at 20:51














0












0








0


0






I was worried that my computer could be compromised and my login session is being hijacked by some malicious hook.



In .xsession executed by xdm, I capture a pstree snapshot a file to debug this situation.



This file's timestamp shows five to fifteen second delay after X11 login!



.xsession-errors doesn't show anything weird, only that I'm being added to "access control list" and then a couple of environment entries reported by dbus-update-activation-environment with no timestamps.



dmesg during this weird pause:



r8168: eth0: link up
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
random: crng init done
random: 7 urandom warning(s) missed due to ratelimiting
audit: type=1400 audit(1546022714.845:26): apparmor="STATUS" [...]
bridge: filtering via arp/ip/ip6tables is no longer available [...]
Bridge firewalling registered
Initializing XFRM netlink socket
IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): br-f14696ee8bfd: link is not ready


Regardless of the root cause (I suspect something demands more randomness after boot), how such problems can be debugged further?



Can I leverage systemd for example?










share|improve this question














I was worried that my computer could be compromised and my login session is being hijacked by some malicious hook.



In .xsession executed by xdm, I capture a pstree snapshot a file to debug this situation.



This file's timestamp shows five to fifteen second delay after X11 login!



.xsession-errors doesn't show anything weird, only that I'm being added to "access control list" and then a couple of environment entries reported by dbus-update-activation-environment with no timestamps.



dmesg during this weird pause:



r8168: eth0: link up
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
random: crng init done
random: 7 urandom warning(s) missed due to ratelimiting
audit: type=1400 audit(1546022714.845:26): apparmor="STATUS" [...]
bridge: filtering via arp/ip/ip6tables is no longer available [...]
Bridge firewalling registered
Initializing XFRM netlink socket
IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): br-f14696ee8bfd: link is not ready


Regardless of the root cause (I suspect something demands more randomness after boot), how such problems can be debugged further?



Can I leverage systemd for example?







systemd x11 debugging xdm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 28 '18 at 19:18









loculocu

1




1













  • Have you tried turning off IPV6?

    – Fabby
    Dec 28 '18 at 20:51



















  • Have you tried turning off IPV6?

    – Fabby
    Dec 28 '18 at 20:51

















Have you tried turning off IPV6?

– Fabby
Dec 28 '18 at 20:51





Have you tried turning off IPV6?

– Fabby
Dec 28 '18 at 20:51










1 Answer
1






active

oldest

votes


















0














You can also look in /var/log/Xorg.0.log and search for "EE".



But there might be something going on in the system that wouldn't be reported in either of those. Try this right after you finally get logged in. The -e switch jumps to the end of the log, so start paging up looking for errors.



journalctl -e


My laptop has a problem similar to what you described, but in my case it's a known problem. I see this in the log, with the first line displayed in red. If you see something similar, you can search the bugzilla for your distro to see if it's been reported.



Jan 24 21:19:36 travel kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:41:pipe B] flip_done timed out
Jan 24 21:19:37 travel kernel: ------------[ cut here ]------------
Jan 24 21:19:37 travel kernel: vblank wait timed out on crtc 1
Jan 24 21:19:37 travel kernel: WARNING: CPU: 0 PID: 740 at drivers/gpu/drm/drm_vblank.c:1084 drm_wait_one_vblank+0x161/0x170 [drm]
Jan 24 21:19:37 travel kernel: Modules linked in: xt_CHECKSUM ipt_MASQUERADE tun bridge stp llc nf_conntrack_netbios_ns ...
Jan 24 21:19:37 travel kernel: mac80211 joydev snd_pcm i2c_i801 lpc_ich snd_timer snd soundcore cfg80211 rfkill wmi ...
Jan 24 21:19:37 travel kernel: CPU: 0 PID: 740 Comm: Xorg Tainted: G W 4.19.13-300.fc29.x86_64 #1
Jan 24 21:19:37 travel kernel: Hardware name: Dell Inc. Inspiron 1525 /0U990C, BIOS A13 06/27/2008





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f491363%2fno-desktop-up-to-15-seconds-after-login%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You can also look in /var/log/Xorg.0.log and search for "EE".



    But there might be something going on in the system that wouldn't be reported in either of those. Try this right after you finally get logged in. The -e switch jumps to the end of the log, so start paging up looking for errors.



    journalctl -e


    My laptop has a problem similar to what you described, but in my case it's a known problem. I see this in the log, with the first line displayed in red. If you see something similar, you can search the bugzilla for your distro to see if it's been reported.



    Jan 24 21:19:36 travel kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:41:pipe B] flip_done timed out
    Jan 24 21:19:37 travel kernel: ------------[ cut here ]------------
    Jan 24 21:19:37 travel kernel: vblank wait timed out on crtc 1
    Jan 24 21:19:37 travel kernel: WARNING: CPU: 0 PID: 740 at drivers/gpu/drm/drm_vblank.c:1084 drm_wait_one_vblank+0x161/0x170 [drm]
    Jan 24 21:19:37 travel kernel: Modules linked in: xt_CHECKSUM ipt_MASQUERADE tun bridge stp llc nf_conntrack_netbios_ns ...
    Jan 24 21:19:37 travel kernel: mac80211 joydev snd_pcm i2c_i801 lpc_ich snd_timer snd soundcore cfg80211 rfkill wmi ...
    Jan 24 21:19:37 travel kernel: CPU: 0 PID: 740 Comm: Xorg Tainted: G W 4.19.13-300.fc29.x86_64 #1
    Jan 24 21:19:37 travel kernel: Hardware name: Dell Inc. Inspiron 1525 /0U990C, BIOS A13 06/27/2008





    share|improve this answer




























      0














      You can also look in /var/log/Xorg.0.log and search for "EE".



      But there might be something going on in the system that wouldn't be reported in either of those. Try this right after you finally get logged in. The -e switch jumps to the end of the log, so start paging up looking for errors.



      journalctl -e


      My laptop has a problem similar to what you described, but in my case it's a known problem. I see this in the log, with the first line displayed in red. If you see something similar, you can search the bugzilla for your distro to see if it's been reported.



      Jan 24 21:19:36 travel kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:41:pipe B] flip_done timed out
      Jan 24 21:19:37 travel kernel: ------------[ cut here ]------------
      Jan 24 21:19:37 travel kernel: vblank wait timed out on crtc 1
      Jan 24 21:19:37 travel kernel: WARNING: CPU: 0 PID: 740 at drivers/gpu/drm/drm_vblank.c:1084 drm_wait_one_vblank+0x161/0x170 [drm]
      Jan 24 21:19:37 travel kernel: Modules linked in: xt_CHECKSUM ipt_MASQUERADE tun bridge stp llc nf_conntrack_netbios_ns ...
      Jan 24 21:19:37 travel kernel: mac80211 joydev snd_pcm i2c_i801 lpc_ich snd_timer snd soundcore cfg80211 rfkill wmi ...
      Jan 24 21:19:37 travel kernel: CPU: 0 PID: 740 Comm: Xorg Tainted: G W 4.19.13-300.fc29.x86_64 #1
      Jan 24 21:19:37 travel kernel: Hardware name: Dell Inc. Inspiron 1525 /0U990C, BIOS A13 06/27/2008





      share|improve this answer


























        0












        0








        0







        You can also look in /var/log/Xorg.0.log and search for "EE".



        But there might be something going on in the system that wouldn't be reported in either of those. Try this right after you finally get logged in. The -e switch jumps to the end of the log, so start paging up looking for errors.



        journalctl -e


        My laptop has a problem similar to what you described, but in my case it's a known problem. I see this in the log, with the first line displayed in red. If you see something similar, you can search the bugzilla for your distro to see if it's been reported.



        Jan 24 21:19:36 travel kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:41:pipe B] flip_done timed out
        Jan 24 21:19:37 travel kernel: ------------[ cut here ]------------
        Jan 24 21:19:37 travel kernel: vblank wait timed out on crtc 1
        Jan 24 21:19:37 travel kernel: WARNING: CPU: 0 PID: 740 at drivers/gpu/drm/drm_vblank.c:1084 drm_wait_one_vblank+0x161/0x170 [drm]
        Jan 24 21:19:37 travel kernel: Modules linked in: xt_CHECKSUM ipt_MASQUERADE tun bridge stp llc nf_conntrack_netbios_ns ...
        Jan 24 21:19:37 travel kernel: mac80211 joydev snd_pcm i2c_i801 lpc_ich snd_timer snd soundcore cfg80211 rfkill wmi ...
        Jan 24 21:19:37 travel kernel: CPU: 0 PID: 740 Comm: Xorg Tainted: G W 4.19.13-300.fc29.x86_64 #1
        Jan 24 21:19:37 travel kernel: Hardware name: Dell Inc. Inspiron 1525 /0U990C, BIOS A13 06/27/2008





        share|improve this answer













        You can also look in /var/log/Xorg.0.log and search for "EE".



        But there might be something going on in the system that wouldn't be reported in either of those. Try this right after you finally get logged in. The -e switch jumps to the end of the log, so start paging up looking for errors.



        journalctl -e


        My laptop has a problem similar to what you described, but in my case it's a known problem. I see this in the log, with the first line displayed in red. If you see something similar, you can search the bugzilla for your distro to see if it's been reported.



        Jan 24 21:19:36 travel kernel: [drm:drm_atomic_helper_wait_for_flip_done [drm_kms_helper]] *ERROR* [CRTC:41:pipe B] flip_done timed out
        Jan 24 21:19:37 travel kernel: ------------[ cut here ]------------
        Jan 24 21:19:37 travel kernel: vblank wait timed out on crtc 1
        Jan 24 21:19:37 travel kernel: WARNING: CPU: 0 PID: 740 at drivers/gpu/drm/drm_vblank.c:1084 drm_wait_one_vblank+0x161/0x170 [drm]
        Jan 24 21:19:37 travel kernel: Modules linked in: xt_CHECKSUM ipt_MASQUERADE tun bridge stp llc nf_conntrack_netbios_ns ...
        Jan 24 21:19:37 travel kernel: mac80211 joydev snd_pcm i2c_i801 lpc_ich snd_timer snd soundcore cfg80211 rfkill wmi ...
        Jan 24 21:19:37 travel kernel: CPU: 0 PID: 740 Comm: Xorg Tainted: G W 4.19.13-300.fc29.x86_64 #1
        Jan 24 21:19:37 travel kernel: Hardware name: Dell Inc. Inspiron 1525 /0U990C, BIOS A13 06/27/2008






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 26 at 8:04









        Ken JacksonKen Jackson

        312




        312






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f491363%2fno-desktop-up-to-15-seconds-after-login%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to make a Squid Proxy server?

            第一次世界大戦

            Touch on Surface Book