• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Xsession ("unable to start X session")

Scheduled Pinned Locked Moved Help and Support
xsessionunable to start
9 Posts 5 Posters 7.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    cebix
    last edited by 27 Oct 2018, 19:26

    Hello.

    RPI3B+
    2.5A 5V power supply
    Retropie 4.4 with all updates installed as of today
    Built from retropie-4.4-rpi2_rpi3.img
    USB Devices connected: none
    Kingston 64GB SD card
    Error: "Xsession: unable to start X session --- no '/home/pi/.xsession"
    file, no "/home/pi/.Xsession" file, no session managers, no window
    managers, and no terminal emulators found; aborting."

    I seem to be getting this message supposedly out of nowhere. It pops up right after the retropie booting splash screen logo. At first it did nothing, it just booted to emulationstation after beeing up for a few seconds. Now it will boot to console so I will have to manually type in "emulationstation" which is a pain since I have to hook up my keyboard which normally isn't connected. What can be causing this and what can be the remedy?

    Other than that, everything seems to be running fine. It's a fresh SD installation by the way with updates from the retropie menu. I didn't have this problem with my previous one.

    One thing I remember I had to install "sudo apt-get install lightdm" because the raspi-config boot menu told me so. Otherwise it wouldn't enable the boot to GUI without login option.

    M E 2 Replies Last reply 27 Oct 2018, 19:41 Reply Quote 0
    • M
      mitu Global Moderator @cebix
      last edited by mitu 27 Oct 2018, 19:41

      @cebix The error appears because you installed lightdm and you probably enabled in raspi-config the Desktop Autologin option for the Boot Option. Use the Console Autologin option in raspi-config and remove thelightdm package, RetroPie doesn't need it.

      S 1 Reply Last reply 12 May 2024, 17:33 Reply Quote 1
      • C
        cebix
        last edited by cebix 27 Oct 2018, 19:52

        Thanks for the quick reply.

        I enabled the Console Autologin but now it just boots to console instead of emulation station. How can I change that?

        Also how can I remove the lightdm package? It doesn't appear anywhere in the retropie menu. Thanks.

        EDIT: I removed lightdm via sudo apt-get remove lightdm but now retropie still boots straight to console. What can I do to get it booting to emulationstation on its own again?

        M 1 Reply Last reply 27 Oct 2018, 19:58 Reply Quote 0
        • M
          mitu Global Moderator @cebix
          last edited by mitu 27 Oct 2018, 19:58

          @cebix

          I enabled the Console Autologin but now it just boots to console instead of emulation station. How can I change that?

          The console autologin should start Emulationstation automatically. If not, use the RetroPie-Setup script (run sudo ~/RetroPie-Setup/retropie_setup.sh) and the go to Configuration / tools >> autostart and choose the option to start ES at boot.

          Also how can I remove the lightdm package? It doesn't appear anywhere in the retropie menu. Thanks.

          Why would it appear there ? You didn't install it from the RetroPie-Setup menu, did you ? Just like you installed it, you can remove it

          sudo apt-get remove lightdm
          
          1 Reply Last reply Reply Quote 1
          • C
            cebix
            last edited by 27 Oct 2018, 20:06

            Thanks very much. Now it works as it should. I got confused in all the retropie-setup, raspi-config menus and forgot where you actually setup the autostart. It works like a charm now, thanks.

            1 Reply Last reply Reply Quote 0
            • E
              EthanWindows @cebix
              last edited by 9 Dec 2019, 20:06

              @cebix i have same problem

              B 1 Reply Last reply 9 Dec 2019, 23:07 Reply Quote 0
              • B
                BuZz administrators @EthanWindows
                last edited by 9 Dec 2019, 23:07

                @EthanWindows this topic is a year old. Please start a new topic providing information about your setup as detailed at the top of the page.

                To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                1 Reply Last reply Reply Quote 0
                • S
                  stoogesfan87 @mitu
                  last edited by stoogesfan87 5 Dec 2024, 18:34 12 May 2024, 17:33

                  @mitu I tried to go to raspi-config to change back to the console auto login and I tried to go to the terminal to delete lightdm. And I tried to log in to the desktop mode But instead I keep on getting this error.

                  Xsession: unable to start X session --- no '/home/pi/.xsession"
                  file, no "/home/pi/.Xsession" file, no session managers, no window
                  managers, and no terminal emulators found; aborting.

                  What should I do?

                  M 1 Reply Last reply 13 May 2024, 03:13 Reply Quote -1
                  • M mitu locked this topic on 13 May 2024, 03:13
                  • M
                    mitu Global Moderator @stoogesfan87
                    last edited by 13 May 2024, 03:13

                    @stoogesfan87 Follow @BuZz's advice.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                    Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                      This community forum collects and processes your personal information.
                      consent.not_received