Emulationstation Minimized on Autostart (x86 Linux)
-
So it seems I spoke too soon. The behaviour started again with Ubuntu Mate, but thankfully it was accompanied by an error message.
After research, it seems the
retropie
autostart script was causing the programlightdm
to crash due to a race condition.Adding the following to
/etc/lightdm/lightdm.conf
has once again fixed things... fingers crossed...[LightDM] logind-check-graphical=true
I believe this solution would also work for plain Ubuntu as I thinklightdm
was crashing silently but still causingemulationstation
to minimize.Ubuntu doesn't have
lightdm
installed, so this solution doesn't work. -
Any solution?
Im having same issue and was searching web and it seems this is the only place where this "bug"was described. -
@Xmeoi unfortunately, I haven't been able to figure it out. I've since decided to install Ubuntu Mate and customized it instead.
-
@mitu Hi, my apologies if this problem has been resolved elsewhere, but I’ve scoured the internet and have struggled to find anything conclusive. The default autostart script has worked fine for me on previous versions of Ubuntu, but I am having the same issue in 22.04. Emulationstation starts up as it is supposed to, but is then immediately minimised, leaving a blank terminal window in its place. It’s quickly rectified by alt+tab, but a bit of a hassle without a keyboard or mouse. Happy to make a seperate topic with more info, just testing the waters first
-
@swangdemon This seems to be an OS/DM issue, so no solution was implemented in EmulationStation. Other thing I suspect is a
libsdl2
bug. What desktop/window manager are you using ?Can you manually build a newer SDL version from the 2.26.x branch and try to use it just for EmulationStation ?
-
@mitu said in Emulationstation Minimized on Autostart (x86 Linux):
@swangdemon This seems to be an OS/DM issue, so no solution was implemented in EmulationStation. Other thing I suspect is a
libsdl2
bug. What desktop/window manager are you using ?Can you manually build a newer SDL version from the 2.26.x branch and try to use it just for EmulationStation ?
Thanks for the response! I am currently using the default window manager, which I believe is GDM3. Truth be told, I’m only a casual user, so there’s a lot about *nix that I don’t know, which includes libsdl2. Either way, that gives me a good starting point to look into it further. I will report back if/when I hit a brick wall. Worst case I can roll back to a previous version
Cheers!
-
@swangdemon said in Emulationstation Minimized on Autostart (x86 Linux):
Thanks for the response! I am currently using the default window manager, which I believe is GDM3.
No,
gdm3
is the login manager. If you're using the default desktop manager, that would be Gnome/Unity (?) on Ubuntu.
But try to see if a newerlibsdl2
yields a different result. -
@mitu A-ha, I thought it was surely gnome but googled it to make sure and I must have misinterpreted the result. Is it worth trying another, do you think? Might try that if the libdsl route proves unsuccessful.
-
@swangdemon It might be easier to use XFCE and switch the default session from Gnome to it, then test to see if auto-start has the same issue (the auto-start config should still work even if the desktop env is switched in this case).
-
Hello,
I too am having this problem. Did anyone figure this one out?
With a fresh build using process from https://retropie.org.uk/docs/Debian/
Ubuntu 22.04 LTS
Retropie 4.8.2
Emulationstation V2.11.ORP
Retroarch 1.12.0When manually starting Retropie, it opens EmulationStation and a Terminal session with the EmulationStation program in focus and the Terminal window minimized in the background. All good.
When using the auto start feature, within Retropie-setup>Configuration/Tools>Autostart, Retropie starts up automatically with system start but with the Terminal window in focus and the EmulationStation program minimized in the background.
This result is inconstant with this occurring about 50% of the time.
Any help would be greatly appreciated.
-
@kidracer have you tried my advice from the previous post - changing the desktop env to Xfce ?
FWIW I've tried replicating the issue with a 22.04 installation, but I couldn't. -
@mitu I didn't really like the XFCE interface so I went back to Ubuntu 20.04. Autostart works 100% of the time now.
The cocktail table is up and working perfectly again.
The next time I do an upgrade, I'll test it on one of my spare laptops before I put it on my primary :)Cheers and thanks again for you guidance!
-
-
@swangdemon said in Emulationstation Minimized on Autostart (x86 Linux):
@kidracer @mitu I didn’t end up finding a fix, though, to be fair, I didn’t really try anything. In the end, I had to reinstall for other reasons, so I took the opportunity to drop down to an earlier version of ubuntu
@swangdemon Ubuntu 20.04 is supported out to 2025 so were all good there :)
-
I hade some trouble with this as well so I created a script that keeps the window active and maximized.
Hope it can help others :)
https://github.com/william-andersson/rpie_run
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.