Why is my GDM at a different TTY than my desktop environment?












13















I am running Ubuntu Gnome 16.10 (64bit). Gnome-shell version 3.20.4.



When I start my computer, I eventually see GDM3 offering a login prompt, as expected.



After I login, my monitors flash a little (like they're unplugged and then replugged in), and then I am brought to the gnome 3 desktop.



However, if I hit CTRL + ALT + F1, I am brought back to GDM3, offering a login prompt.



If I then hit CTRL + ALT + F2, I am brought back to my Gnome 3 desktop.



So it seems like GDM3 continues to run in TTY1 while the desktop runs in TTY2.



Questions




  1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.

  2. Am I using more graphical resources by having things setup this way?

  3. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?

  4. Is there any advantage do doing #3?










share|improve this question

























  • Except for the specifics (17.04-64-bit, tty1=gdm, tty7=session), I am seeing this for the first time... I know it used to be tty7=gdm+session with tty1-tty6 available. I'm not sure how I got here. :(

    – TheGeeko61
    Jun 21 '17 at 18:56













  • Another asking... maybe consolidate this with that: askubuntu.com/questions/856940/…

    – TheGeeko61
    Jun 21 '17 at 19:00
















13















I am running Ubuntu Gnome 16.10 (64bit). Gnome-shell version 3.20.4.



When I start my computer, I eventually see GDM3 offering a login prompt, as expected.



After I login, my monitors flash a little (like they're unplugged and then replugged in), and then I am brought to the gnome 3 desktop.



However, if I hit CTRL + ALT + F1, I am brought back to GDM3, offering a login prompt.



If I then hit CTRL + ALT + F2, I am brought back to my Gnome 3 desktop.



So it seems like GDM3 continues to run in TTY1 while the desktop runs in TTY2.



Questions




  1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.

  2. Am I using more graphical resources by having things setup this way?

  3. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?

  4. Is there any advantage do doing #3?










share|improve this question

























  • Except for the specifics (17.04-64-bit, tty1=gdm, tty7=session), I am seeing this for the first time... I know it used to be tty7=gdm+session with tty1-tty6 available. I'm not sure how I got here. :(

    – TheGeeko61
    Jun 21 '17 at 18:56













  • Another asking... maybe consolidate this with that: askubuntu.com/questions/856940/…

    – TheGeeko61
    Jun 21 '17 at 19:00














13












13








13


3






I am running Ubuntu Gnome 16.10 (64bit). Gnome-shell version 3.20.4.



When I start my computer, I eventually see GDM3 offering a login prompt, as expected.



After I login, my monitors flash a little (like they're unplugged and then replugged in), and then I am brought to the gnome 3 desktop.



However, if I hit CTRL + ALT + F1, I am brought back to GDM3, offering a login prompt.



If I then hit CTRL + ALT + F2, I am brought back to my Gnome 3 desktop.



So it seems like GDM3 continues to run in TTY1 while the desktop runs in TTY2.



Questions




  1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.

  2. Am I using more graphical resources by having things setup this way?

  3. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?

  4. Is there any advantage do doing #3?










share|improve this question
















I am running Ubuntu Gnome 16.10 (64bit). Gnome-shell version 3.20.4.



When I start my computer, I eventually see GDM3 offering a login prompt, as expected.



After I login, my monitors flash a little (like they're unplugged and then replugged in), and then I am brought to the gnome 3 desktop.



However, if I hit CTRL + ALT + F1, I am brought back to GDM3, offering a login prompt.



If I then hit CTRL + ALT + F2, I am brought back to my Gnome 3 desktop.



So it seems like GDM3 continues to run in TTY1 while the desktop runs in TTY2.



Questions




  1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.

  2. Am I using more graphical resources by having things setup this way?

  3. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?

  4. Is there any advantage do doing #3?







tty gdm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 16 '17 at 3:51









muru

1




1










asked Apr 29 '17 at 5:47









JoshuaDJoshuaD

227215




227215













  • Except for the specifics (17.04-64-bit, tty1=gdm, tty7=session), I am seeing this for the first time... I know it used to be tty7=gdm+session with tty1-tty6 available. I'm not sure how I got here. :(

    – TheGeeko61
    Jun 21 '17 at 18:56













  • Another asking... maybe consolidate this with that: askubuntu.com/questions/856940/…

    – TheGeeko61
    Jun 21 '17 at 19:00



















  • Except for the specifics (17.04-64-bit, tty1=gdm, tty7=session), I am seeing this for the first time... I know it used to be tty7=gdm+session with tty1-tty6 available. I'm not sure how I got here. :(

    – TheGeeko61
    Jun 21 '17 at 18:56













  • Another asking... maybe consolidate this with that: askubuntu.com/questions/856940/…

    – TheGeeko61
    Jun 21 '17 at 19:00

















Except for the specifics (17.04-64-bit, tty1=gdm, tty7=session), I am seeing this for the first time... I know it used to be tty7=gdm+session with tty1-tty6 available. I'm not sure how I got here. :(

– TheGeeko61
Jun 21 '17 at 18:56







Except for the specifics (17.04-64-bit, tty1=gdm, tty7=session), I am seeing this for the first time... I know it used to be tty7=gdm+session with tty1-tty6 available. I'm not sure how I got here. :(

– TheGeeko61
Jun 21 '17 at 18:56















Another asking... maybe consolidate this with that: askubuntu.com/questions/856940/…

– TheGeeko61
Jun 21 '17 at 19:00





Another asking... maybe consolidate this with that: askubuntu.com/questions/856940/…

– TheGeeko61
Jun 21 '17 at 19:00










1 Answer
1






active

oldest

votes


















14














A similar issue has been raised in another post.
Answering your questions:





  1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.




Well, it was. The GNOME developer responsible for gdm explained here how it worked previously and what they did change:




Previously, we launched one X server as root, and then when you logged in, we "morphed" it into the session X server. If you went to fast user switching, we then launched a second X server on-demand.



For security reasons, and Wayland porting reasons, we now launch the X server and Wayland server within the user's session, instead of starting one as root.



The way that we do this is that we launch two X servers, one for the gdm greeter session, and for the session user.



It would be entirely possible to tear-down the greeter after we've switched to the user session, it just requires a bit more code, but unfortunately it wouldn't be possible to put both the greeter session and the user session on VT1, since we'd have to launch the user session first, and then tear down the greeter session, and we can't be in that intermediate state while there are two X servers on the same VT at the same time.



I just forgot about the resource issues around keeping around two gnome-shell instances. I'll have a chat with Ray to see if we want to tear down the greeter session and then launch it on demand for user switching / logout to save on resources.








  1. Am I using more graphical resources by having things setup this way?




Yes.





  1. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?




Probably not until a fix is delivered or you revert back to gdm 3.14, but this is probably not the best way out.





  1. Is there any advantage do doing #3?




There have been complaints about memory leaks in gdm3 and several performance issues.



The best thing you could do is to switch your desktop manager from gdm3 to lightdm until this is fixed. The good thing is you are using Ubuntu GNOME, and lightdm is cool and looks just like unity login screen.





  1. Installl lightdm:



    sudo apt install lightdm



  2. Switch to it:



    sudo dpkg-reconfigure lightdm



Reboot and you're good to go with your tty and normal resource consumption and still use GNOME. Or switch to other desktop environment like KDE, XFCE, Mate, etc.






share|improve this answer

























    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%2f910108%2fwhy-is-my-gdm-at-a-different-tty-than-my-desktop-environment%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









    14














    A similar issue has been raised in another post.
    Answering your questions:





    1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.




    Well, it was. The GNOME developer responsible for gdm explained here how it worked previously and what they did change:




    Previously, we launched one X server as root, and then when you logged in, we "morphed" it into the session X server. If you went to fast user switching, we then launched a second X server on-demand.



    For security reasons, and Wayland porting reasons, we now launch the X server and Wayland server within the user's session, instead of starting one as root.



    The way that we do this is that we launch two X servers, one for the gdm greeter session, and for the session user.



    It would be entirely possible to tear-down the greeter after we've switched to the user session, it just requires a bit more code, but unfortunately it wouldn't be possible to put both the greeter session and the user session on VT1, since we'd have to launch the user session first, and then tear down the greeter session, and we can't be in that intermediate state while there are two X servers on the same VT at the same time.



    I just forgot about the resource issues around keeping around two gnome-shell instances. I'll have a chat with Ray to see if we want to tear down the greeter session and then launch it on demand for user switching / logout to save on resources.








    1. Am I using more graphical resources by having things setup this way?




    Yes.





    1. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?




    Probably not until a fix is delivered or you revert back to gdm 3.14, but this is probably not the best way out.





    1. Is there any advantage do doing #3?




    There have been complaints about memory leaks in gdm3 and several performance issues.



    The best thing you could do is to switch your desktop manager from gdm3 to lightdm until this is fixed. The good thing is you are using Ubuntu GNOME, and lightdm is cool and looks just like unity login screen.





    1. Installl lightdm:



      sudo apt install lightdm



    2. Switch to it:



      sudo dpkg-reconfigure lightdm



    Reboot and you're good to go with your tty and normal resource consumption and still use GNOME. Or switch to other desktop environment like KDE, XFCE, Mate, etc.






    share|improve this answer






























      14














      A similar issue has been raised in another post.
      Answering your questions:





      1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.




      Well, it was. The GNOME developer responsible for gdm explained here how it worked previously and what they did change:




      Previously, we launched one X server as root, and then when you logged in, we "morphed" it into the session X server. If you went to fast user switching, we then launched a second X server on-demand.



      For security reasons, and Wayland porting reasons, we now launch the X server and Wayland server within the user's session, instead of starting one as root.



      The way that we do this is that we launch two X servers, one for the gdm greeter session, and for the session user.



      It would be entirely possible to tear-down the greeter after we've switched to the user session, it just requires a bit more code, but unfortunately it wouldn't be possible to put both the greeter session and the user session on VT1, since we'd have to launch the user session first, and then tear down the greeter session, and we can't be in that intermediate state while there are two X servers on the same VT at the same time.



      I just forgot about the resource issues around keeping around two gnome-shell instances. I'll have a chat with Ray to see if we want to tear down the greeter session and then launch it on demand for user switching / logout to save on resources.








      1. Am I using more graphical resources by having things setup this way?




      Yes.





      1. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?




      Probably not until a fix is delivered or you revert back to gdm 3.14, but this is probably not the best way out.





      1. Is there any advantage do doing #3?




      There have been complaints about memory leaks in gdm3 and several performance issues.



      The best thing you could do is to switch your desktop manager from gdm3 to lightdm until this is fixed. The good thing is you are using Ubuntu GNOME, and lightdm is cool and looks just like unity login screen.





      1. Installl lightdm:



        sudo apt install lightdm



      2. Switch to it:



        sudo dpkg-reconfigure lightdm



      Reboot and you're good to go with your tty and normal resource consumption and still use GNOME. Or switch to other desktop environment like KDE, XFCE, Mate, etc.






      share|improve this answer




























        14












        14








        14







        A similar issue has been raised in another post.
        Answering your questions:





        1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.




        Well, it was. The GNOME developer responsible for gdm explained here how it worked previously and what they did change:




        Previously, we launched one X server as root, and then when you logged in, we "morphed" it into the session X server. If you went to fast user switching, we then launched a second X server on-demand.



        For security reasons, and Wayland porting reasons, we now launch the X server and Wayland server within the user's session, instead of starting one as root.



        The way that we do this is that we launch two X servers, one for the gdm greeter session, and for the session user.



        It would be entirely possible to tear-down the greeter after we've switched to the user session, it just requires a bit more code, but unfortunately it wouldn't be possible to put both the greeter session and the user session on VT1, since we'd have to launch the user session first, and then tear down the greeter session, and we can't be in that intermediate state while there are two X servers on the same VT at the same time.



        I just forgot about the resource issues around keeping around two gnome-shell instances. I'll have a chat with Ray to see if we want to tear down the greeter session and then launch it on demand for user switching / logout to save on resources.








        1. Am I using more graphical resources by having things setup this way?




        Yes.





        1. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?




        Probably not until a fix is delivered or you revert back to gdm 3.14, but this is probably not the best way out.





        1. Is there any advantage do doing #3?




        There have been complaints about memory leaks in gdm3 and several performance issues.



        The best thing you could do is to switch your desktop manager from gdm3 to lightdm until this is fixed. The good thing is you are using Ubuntu GNOME, and lightdm is cool and looks just like unity login screen.





        1. Installl lightdm:



          sudo apt install lightdm



        2. Switch to it:



          sudo dpkg-reconfigure lightdm



        Reboot and you're good to go with your tty and normal resource consumption and still use GNOME. Or switch to other desktop environment like KDE, XFCE, Mate, etc.






        share|improve this answer















        A similar issue has been raised in another post.
        Answering your questions:





        1. Is this how things are supposed to work? I thought the desktop was supposed to use the same TTY (or whatever you call it) as the display manager.




        Well, it was. The GNOME developer responsible for gdm explained here how it worked previously and what they did change:




        Previously, we launched one X server as root, and then when you logged in, we "morphed" it into the session X server. If you went to fast user switching, we then launched a second X server on-demand.



        For security reasons, and Wayland porting reasons, we now launch the X server and Wayland server within the user's session, instead of starting one as root.



        The way that we do this is that we launch two X servers, one for the gdm greeter session, and for the session user.



        It would be entirely possible to tear-down the greeter after we've switched to the user session, it just requires a bit more code, but unfortunately it wouldn't be possible to put both the greeter session and the user session on VT1, since we'd have to launch the user session first, and then tear down the greeter session, and we can't be in that intermediate state while there are two X servers on the same VT at the same time.



        I just forgot about the resource issues around keeping around two gnome-shell instances. I'll have a chat with Ray to see if we want to tear down the greeter session and then launch it on demand for user switching / logout to save on resources.








        1. Am I using more graphical resources by having things setup this way?




        Yes.





        1. Is there a way to have GDM3 pass off the display to Gnome Desktop after I login?




        Probably not until a fix is delivered or you revert back to gdm 3.14, but this is probably not the best way out.





        1. Is there any advantage do doing #3?




        There have been complaints about memory leaks in gdm3 and several performance issues.



        The best thing you could do is to switch your desktop manager from gdm3 to lightdm until this is fixed. The good thing is you are using Ubuntu GNOME, and lightdm is cool and looks just like unity login screen.





        1. Installl lightdm:



          sudo apt install lightdm



        2. Switch to it:



          sudo dpkg-reconfigure lightdm



        Reboot and you're good to go with your tty and normal resource consumption and still use GNOME. Or switch to other desktop environment like KDE, XFCE, Mate, etc.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Oct 16 '17 at 3:51









        muru

        1




        1










        answered Oct 15 '17 at 20:17









        luisdaruiluisdarui

        30637




        30637






























            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%2f910108%2fwhy-is-my-gdm-at-a-different-tty-than-my-desktop-environment%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

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei