Ubuntu 18.04: Immediate logout after (graphical) logon












0















it seems to be a "once again" issue, but I really wasn't able to find anything useful for my case in the web.



Background:



I have a Lenovo Thinkpad T480, on which I installed Ubuntu 18.04 right after unpacking. The preinstalled Windows didn't even finish the installation/setup then. I bought it actually because it has switchable graphics (NVIDIA dedicated graphics and Intel integrated graphics), which allows me to run the 3D CAD (in a VMware VM with Windows) also when on the go.



I first didn't configure any power saving stuff at all, which led to a short battery runtime of maybe 1.5h or something. So about a month back, I installed tlp and also gave bumblebee a try, to make use of the Optimus feature (dynamic switching between integrated and dedicated graphics). This didn't work at all, the CAD could not use the 3D acceleration and resuming after suspend tended to crash the system or cause weird effects. One such weird effect was a USB port malfunction, so that the plugged-in mouse did not work anymore (no power). Integrated devices such as keyboard and touchpad still worked though. A reboot "fixed" the problem, so it probably is not hardware-related. I removed bumblebee shortly afterwards.



I usually completely reboot/turn off the notebook once in a few days, otherwise I just put it to sleep.



Problem:



A few days back, I shut down the notebook as usual. After booting it up next time to the login screen, the problem first appeared: I could enter my password, hit Enter and all that happens is the screen turning black, the mouse pointer is displayed near the lower right corner of the screen and after a second or so, I'm back at the login screen. No error message. At least once it also happened that the USB port problem described above showed up again.



It was always possible to login to a terminal (Ctrl+Alt+F2) without any trouble.



What I've tried:



Especially due to the mentioned USB problem, I suspected the graphics driver to have something to do with it. So I uninstalled all NVIDIA-related packages, but the problem remained the same. Reinstalling did not change anything either. I also tried to install and uninstall (with a few reboots) tlp and bumblebee, but none of them seem to change anything at all.



Booting into a previous kernel version did not help.



I went to a terminal and installed Xubuntu-desktop. Now, when I boot the computer, select a Xubuntu or Xfce session, then I can login to the graphical desktop and everything runs as well. Including 3D acceleration and NVIDIA-prime. This is true no matter if I use gdm3 or lightdm as display manager.



If I select any of the other sessions (GNOME classic, Ubuntu, Ubuntu on Wayland, etc.), the behavior is the same as before: Black screen, mouse pointer, sometimes a short flash of the desktop background image, then back at the login screen. Interestingly, if I now switch back to a Xubuntu session, the login fails there as well, with the same symptoms. Only after a reboot does such a login work again. Just on my last try, this led to apport coming up with a crash of light-locker:



light-locker crashed with signal 5 in g_type_create_instance()



Logs:



I really don't know where to look for errors. I've checked a few places:




  • /var/log/Xorg.*.log: No errors (EE), nothing suspicous.

  • ~/.xsession-errors: Last update is from a week back. A lot of errors are reported relating to tracker not being able to insert some metadata, as well as from the theme parser. At the end of the file, there are many such messages: Gtk-CRITICAL **: 12:49:52.203: gtk_widget_destroy: assertion '
    GTK_IS_WIDGET (widget)' failed



And:



Gdk-Message: 12:51:24.605: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

Gdk-Message: 12:51:24.605: update-notifier: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

Gdk-Message: 12:51:24.608: blueman-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

Gdk-Message: 12:51:24.630: polkit-gnome-authentication-agent-1: Fatal IO error 0 (Success) on X server :0.0.



  • /var/log/lightdm/lightdm.log.1.gz: Lots of DEBUG messages, otherwise nothing more serious than WARNING: Seat type 'xlocal' is deprecated, use 'type=local' instead


  • /var/log/lightdm/seat0-greeter.log.1.gz: Lots of (lightdm-gtk-greeter:1447): Gtk-WARNING **: 16:51:55.144: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar) messages. Some more suspicous ones: Gdk-Message: 11:06:44.240: lightdm-gtk-greeter: Fatal IO error 11 (Resource temporarily unavailable) on X server :0., Gdk-Message: 12:57:34.520: lightdm-gtk-greeter: Fatal IO error 4 (Interrupted system call) on X server :0.


  • journalctl: Maybe a hint related to the light-locker crash: light-locker[2482]: Environment variable XDG_SESSION_PATH not set. Is LightDM running? A message from X: (EE) open /dev/fb0: Permission denied A kernel message, which I sometimes also see flashing on the screen when it switches some mode: kernel: acpi INT3400:00: Unsupported event [0x88]



System:



$ uname -a
Linux phiptp480 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"


Questions:




  • What could be the cause for this behavior?

  • Where should I look for hints about this case?

  • How can I fix the system, except for a full reinstall?


Thanks! Best regards,



Philipp










share|improve this question





























    0















    it seems to be a "once again" issue, but I really wasn't able to find anything useful for my case in the web.



    Background:



    I have a Lenovo Thinkpad T480, on which I installed Ubuntu 18.04 right after unpacking. The preinstalled Windows didn't even finish the installation/setup then. I bought it actually because it has switchable graphics (NVIDIA dedicated graphics and Intel integrated graphics), which allows me to run the 3D CAD (in a VMware VM with Windows) also when on the go.



    I first didn't configure any power saving stuff at all, which led to a short battery runtime of maybe 1.5h or something. So about a month back, I installed tlp and also gave bumblebee a try, to make use of the Optimus feature (dynamic switching between integrated and dedicated graphics). This didn't work at all, the CAD could not use the 3D acceleration and resuming after suspend tended to crash the system or cause weird effects. One such weird effect was a USB port malfunction, so that the plugged-in mouse did not work anymore (no power). Integrated devices such as keyboard and touchpad still worked though. A reboot "fixed" the problem, so it probably is not hardware-related. I removed bumblebee shortly afterwards.



    I usually completely reboot/turn off the notebook once in a few days, otherwise I just put it to sleep.



    Problem:



    A few days back, I shut down the notebook as usual. After booting it up next time to the login screen, the problem first appeared: I could enter my password, hit Enter and all that happens is the screen turning black, the mouse pointer is displayed near the lower right corner of the screen and after a second or so, I'm back at the login screen. No error message. At least once it also happened that the USB port problem described above showed up again.



    It was always possible to login to a terminal (Ctrl+Alt+F2) without any trouble.



    What I've tried:



    Especially due to the mentioned USB problem, I suspected the graphics driver to have something to do with it. So I uninstalled all NVIDIA-related packages, but the problem remained the same. Reinstalling did not change anything either. I also tried to install and uninstall (with a few reboots) tlp and bumblebee, but none of them seem to change anything at all.



    Booting into a previous kernel version did not help.



    I went to a terminal and installed Xubuntu-desktop. Now, when I boot the computer, select a Xubuntu or Xfce session, then I can login to the graphical desktop and everything runs as well. Including 3D acceleration and NVIDIA-prime. This is true no matter if I use gdm3 or lightdm as display manager.



    If I select any of the other sessions (GNOME classic, Ubuntu, Ubuntu on Wayland, etc.), the behavior is the same as before: Black screen, mouse pointer, sometimes a short flash of the desktop background image, then back at the login screen. Interestingly, if I now switch back to a Xubuntu session, the login fails there as well, with the same symptoms. Only after a reboot does such a login work again. Just on my last try, this led to apport coming up with a crash of light-locker:



    light-locker crashed with signal 5 in g_type_create_instance()



    Logs:



    I really don't know where to look for errors. I've checked a few places:




    • /var/log/Xorg.*.log: No errors (EE), nothing suspicous.

    • ~/.xsession-errors: Last update is from a week back. A lot of errors are reported relating to tracker not being able to insert some metadata, as well as from the theme parser. At the end of the file, there are many such messages: Gtk-CRITICAL **: 12:49:52.203: gtk_widget_destroy: assertion '
      GTK_IS_WIDGET (widget)' failed



    And:



    Gdk-Message: 12:51:24.605: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

    Gdk-Message: 12:51:24.605: update-notifier: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

    Gdk-Message: 12:51:24.608: blueman-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

    Gdk-Message: 12:51:24.630: polkit-gnome-authentication-agent-1: Fatal IO error 0 (Success) on X server :0.0.



    • /var/log/lightdm/lightdm.log.1.gz: Lots of DEBUG messages, otherwise nothing more serious than WARNING: Seat type 'xlocal' is deprecated, use 'type=local' instead


    • /var/log/lightdm/seat0-greeter.log.1.gz: Lots of (lightdm-gtk-greeter:1447): Gtk-WARNING **: 16:51:55.144: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar) messages. Some more suspicous ones: Gdk-Message: 11:06:44.240: lightdm-gtk-greeter: Fatal IO error 11 (Resource temporarily unavailable) on X server :0., Gdk-Message: 12:57:34.520: lightdm-gtk-greeter: Fatal IO error 4 (Interrupted system call) on X server :0.


    • journalctl: Maybe a hint related to the light-locker crash: light-locker[2482]: Environment variable XDG_SESSION_PATH not set. Is LightDM running? A message from X: (EE) open /dev/fb0: Permission denied A kernel message, which I sometimes also see flashing on the screen when it switches some mode: kernel: acpi INT3400:00: Unsupported event [0x88]



    System:



    $ uname -a
    Linux phiptp480 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`
    $ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=18.04
    DISTRIB_CODENAME=bionic
    DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"


    Questions:




    • What could be the cause for this behavior?

    • Where should I look for hints about this case?

    • How can I fix the system, except for a full reinstall?


    Thanks! Best regards,



    Philipp










    share|improve this question



























      0












      0








      0








      it seems to be a "once again" issue, but I really wasn't able to find anything useful for my case in the web.



      Background:



      I have a Lenovo Thinkpad T480, on which I installed Ubuntu 18.04 right after unpacking. The preinstalled Windows didn't even finish the installation/setup then. I bought it actually because it has switchable graphics (NVIDIA dedicated graphics and Intel integrated graphics), which allows me to run the 3D CAD (in a VMware VM with Windows) also when on the go.



      I first didn't configure any power saving stuff at all, which led to a short battery runtime of maybe 1.5h or something. So about a month back, I installed tlp and also gave bumblebee a try, to make use of the Optimus feature (dynamic switching between integrated and dedicated graphics). This didn't work at all, the CAD could not use the 3D acceleration and resuming after suspend tended to crash the system or cause weird effects. One such weird effect was a USB port malfunction, so that the plugged-in mouse did not work anymore (no power). Integrated devices such as keyboard and touchpad still worked though. A reboot "fixed" the problem, so it probably is not hardware-related. I removed bumblebee shortly afterwards.



      I usually completely reboot/turn off the notebook once in a few days, otherwise I just put it to sleep.



      Problem:



      A few days back, I shut down the notebook as usual. After booting it up next time to the login screen, the problem first appeared: I could enter my password, hit Enter and all that happens is the screen turning black, the mouse pointer is displayed near the lower right corner of the screen and after a second or so, I'm back at the login screen. No error message. At least once it also happened that the USB port problem described above showed up again.



      It was always possible to login to a terminal (Ctrl+Alt+F2) without any trouble.



      What I've tried:



      Especially due to the mentioned USB problem, I suspected the graphics driver to have something to do with it. So I uninstalled all NVIDIA-related packages, but the problem remained the same. Reinstalling did not change anything either. I also tried to install and uninstall (with a few reboots) tlp and bumblebee, but none of them seem to change anything at all.



      Booting into a previous kernel version did not help.



      I went to a terminal and installed Xubuntu-desktop. Now, when I boot the computer, select a Xubuntu or Xfce session, then I can login to the graphical desktop and everything runs as well. Including 3D acceleration and NVIDIA-prime. This is true no matter if I use gdm3 or lightdm as display manager.



      If I select any of the other sessions (GNOME classic, Ubuntu, Ubuntu on Wayland, etc.), the behavior is the same as before: Black screen, mouse pointer, sometimes a short flash of the desktop background image, then back at the login screen. Interestingly, if I now switch back to a Xubuntu session, the login fails there as well, with the same symptoms. Only after a reboot does such a login work again. Just on my last try, this led to apport coming up with a crash of light-locker:



      light-locker crashed with signal 5 in g_type_create_instance()



      Logs:



      I really don't know where to look for errors. I've checked a few places:




      • /var/log/Xorg.*.log: No errors (EE), nothing suspicous.

      • ~/.xsession-errors: Last update is from a week back. A lot of errors are reported relating to tracker not being able to insert some metadata, as well as from the theme parser. At the end of the file, there are many such messages: Gtk-CRITICAL **: 12:49:52.203: gtk_widget_destroy: assertion '
        GTK_IS_WIDGET (widget)' failed



      And:



      Gdk-Message: 12:51:24.605: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

      Gdk-Message: 12:51:24.605: update-notifier: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

      Gdk-Message: 12:51:24.608: blueman-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

      Gdk-Message: 12:51:24.630: polkit-gnome-authentication-agent-1: Fatal IO error 0 (Success) on X server :0.0.



      • /var/log/lightdm/lightdm.log.1.gz: Lots of DEBUG messages, otherwise nothing more serious than WARNING: Seat type 'xlocal' is deprecated, use 'type=local' instead


      • /var/log/lightdm/seat0-greeter.log.1.gz: Lots of (lightdm-gtk-greeter:1447): Gtk-WARNING **: 16:51:55.144: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar) messages. Some more suspicous ones: Gdk-Message: 11:06:44.240: lightdm-gtk-greeter: Fatal IO error 11 (Resource temporarily unavailable) on X server :0., Gdk-Message: 12:57:34.520: lightdm-gtk-greeter: Fatal IO error 4 (Interrupted system call) on X server :0.


      • journalctl: Maybe a hint related to the light-locker crash: light-locker[2482]: Environment variable XDG_SESSION_PATH not set. Is LightDM running? A message from X: (EE) open /dev/fb0: Permission denied A kernel message, which I sometimes also see flashing on the screen when it switches some mode: kernel: acpi INT3400:00: Unsupported event [0x88]



      System:



      $ uname -a
      Linux phiptp480 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`
      $ cat /etc/lsb-release
      DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=18.04
      DISTRIB_CODENAME=bionic
      DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"


      Questions:




      • What could be the cause for this behavior?

      • Where should I look for hints about this case?

      • How can I fix the system, except for a full reinstall?


      Thanks! Best regards,



      Philipp










      share|improve this question
















      it seems to be a "once again" issue, but I really wasn't able to find anything useful for my case in the web.



      Background:



      I have a Lenovo Thinkpad T480, on which I installed Ubuntu 18.04 right after unpacking. The preinstalled Windows didn't even finish the installation/setup then. I bought it actually because it has switchable graphics (NVIDIA dedicated graphics and Intel integrated graphics), which allows me to run the 3D CAD (in a VMware VM with Windows) also when on the go.



      I first didn't configure any power saving stuff at all, which led to a short battery runtime of maybe 1.5h or something. So about a month back, I installed tlp and also gave bumblebee a try, to make use of the Optimus feature (dynamic switching between integrated and dedicated graphics). This didn't work at all, the CAD could not use the 3D acceleration and resuming after suspend tended to crash the system or cause weird effects. One such weird effect was a USB port malfunction, so that the plugged-in mouse did not work anymore (no power). Integrated devices such as keyboard and touchpad still worked though. A reboot "fixed" the problem, so it probably is not hardware-related. I removed bumblebee shortly afterwards.



      I usually completely reboot/turn off the notebook once in a few days, otherwise I just put it to sleep.



      Problem:



      A few days back, I shut down the notebook as usual. After booting it up next time to the login screen, the problem first appeared: I could enter my password, hit Enter and all that happens is the screen turning black, the mouse pointer is displayed near the lower right corner of the screen and after a second or so, I'm back at the login screen. No error message. At least once it also happened that the USB port problem described above showed up again.



      It was always possible to login to a terminal (Ctrl+Alt+F2) without any trouble.



      What I've tried:



      Especially due to the mentioned USB problem, I suspected the graphics driver to have something to do with it. So I uninstalled all NVIDIA-related packages, but the problem remained the same. Reinstalling did not change anything either. I also tried to install and uninstall (with a few reboots) tlp and bumblebee, but none of them seem to change anything at all.



      Booting into a previous kernel version did not help.



      I went to a terminal and installed Xubuntu-desktop. Now, when I boot the computer, select a Xubuntu or Xfce session, then I can login to the graphical desktop and everything runs as well. Including 3D acceleration and NVIDIA-prime. This is true no matter if I use gdm3 or lightdm as display manager.



      If I select any of the other sessions (GNOME classic, Ubuntu, Ubuntu on Wayland, etc.), the behavior is the same as before: Black screen, mouse pointer, sometimes a short flash of the desktop background image, then back at the login screen. Interestingly, if I now switch back to a Xubuntu session, the login fails there as well, with the same symptoms. Only after a reboot does such a login work again. Just on my last try, this led to apport coming up with a crash of light-locker:



      light-locker crashed with signal 5 in g_type_create_instance()



      Logs:



      I really don't know where to look for errors. I've checked a few places:




      • /var/log/Xorg.*.log: No errors (EE), nothing suspicous.

      • ~/.xsession-errors: Last update is from a week back. A lot of errors are reported relating to tracker not being able to insert some metadata, as well as from the theme parser. At the end of the file, there are many such messages: Gtk-CRITICAL **: 12:49:52.203: gtk_widget_destroy: assertion '
        GTK_IS_WIDGET (widget)' failed



      And:



      Gdk-Message: 12:51:24.605: nm-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

      Gdk-Message: 12:51:24.605: update-notifier: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

      Gdk-Message: 12:51:24.608: blueman-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

      Gdk-Message: 12:51:24.630: polkit-gnome-authentication-agent-1: Fatal IO error 0 (Success) on X server :0.0.



      • /var/log/lightdm/lightdm.log.1.gz: Lots of DEBUG messages, otherwise nothing more serious than WARNING: Seat type 'xlocal' is deprecated, use 'type=local' instead


      • /var/log/lightdm/seat0-greeter.log.1.gz: Lots of (lightdm-gtk-greeter:1447): Gtk-WARNING **: 16:51:55.144: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar) messages. Some more suspicous ones: Gdk-Message: 11:06:44.240: lightdm-gtk-greeter: Fatal IO error 11 (Resource temporarily unavailable) on X server :0., Gdk-Message: 12:57:34.520: lightdm-gtk-greeter: Fatal IO error 4 (Interrupted system call) on X server :0.


      • journalctl: Maybe a hint related to the light-locker crash: light-locker[2482]: Environment variable XDG_SESSION_PATH not set. Is LightDM running? A message from X: (EE) open /dev/fb0: Permission denied A kernel message, which I sometimes also see flashing on the screen when it switches some mode: kernel: acpi INT3400:00: Unsupported event [0x88]



      System:



      $ uname -a
      Linux phiptp480 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`
      $ cat /etc/lsb-release
      DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=18.04
      DISTRIB_CODENAME=bionic
      DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"


      Questions:




      • What could be the cause for this behavior?

      • Where should I look for hints about this case?

      • How can I fix the system, except for a full reinstall?


      Thanks! Best regards,



      Philipp







      18.04 nvidia login






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 11 at 17:27









      mature

      2,1022728




      2,1022728










      asked Jan 31 at 22:00









      Philipp BurchPhilipp Burch

      15316




      15316






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1114561%2fubuntu-18-04-immediate-logout-after-graphical-logon%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1114561%2fubuntu-18-04-immediate-logout-after-graphical-logon%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?

          Is this a new Fibonacci Identity?

          19世紀