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

PS4 Controller is not working with Ubuntu 18.04



  • @mitu ubuntu runs perfectly so far. It only crashes when i start Retropie.

    I will update to 18.10 and see if it works after.



  • @mitu Alright! I updated to 18.10 and it seems to run without crashing. I tested it now for 15min and it didnt crash. :)

    Somehow as I mentioned once, it wouldnt be a solid ubuntu desktop if not more problems will follow after :(

    I copied 5 NES games in the nes folder from retropie. When I want to start a game, the small information comes up that its loading the game now and then it goes back to the menu. Game is not loading. I tried it with all NES games.

    Next fact is when I want to scrape the games, it always says , game is not found. No matter what I try. Seems like it doesnt load the roms. The roms are fine, because on my Windows PC, they were running without problems.

    And one more thing has changed. Now my keyboard is not reacting in retropie anymore. Only my ps4 controller is working now. My keyboard will only work when I want to change something in the configuration and retropie asks for password.

    Any advices? Is there something wrong with the video driver now? Inside the Intel NUC is an intel graphics card. Maybe I have to change something in retroarch.


  • Global Moderator

    @bigbootykilla said in PS4 Controller is not working with Ubuntu 18.04:

    I copied 5 NES games in the nes folder from retropie. When I want to start a game, the small information comes up that its loading the game now and then it goes back to the menu. Game is not loading. I tried it with all NES games.

    Post the contents of the log file - /dev/shm/runcommand.log - and tell which emulator are you using.

    Next fact is when I want to scrape the games, it always says , game is not found. No matter what I try. Seems like it doesnt load the roms. The roms are fine, because on my Windows PC, they were running without problems.

    Take a look at the first pinned topic in the Help category.

    And one more thing has changed. Now my keyboard is not reacting in retropie anymore. Only my ps4 controller is working now. My keyboard will only work when I want to change something in the configuration and retropie asks for password.

    RetroPie asks for password ? When exactly does that happen ? When you mention the keyboard doesn't work - does this mean it doesn't work in-game or in Emulationstation (or both) ?



  • @mitu Alright! It is working now. I downloaded and installed a fresh 18.10 iso from the Ubuntu website and now everything is working.

    RetroPie asks for password ? When exactly does that happen ?

    It is asking when I am going to the configuration editor in retropie. It seems like it is switching to the terminal. Then I have to type in password to go to the configuration editor.

    The only thing is that it is running very slow. I dont understand! My CPU is not the fastest, but I remember I was running NES or SNES Games on an AMD64 3700Mhz Single Core 15 years ago. It was lag-free. Now have a Intel NUC with 4x 1,6Ghz Intel N3700 CPU (4GB Ram + Kingston SSD harddisk) and its lagging. Even on my Raspberry Pi3 it is running much faster. Here are my Specs from my Intel NUC.

    Intel Nuc Specs

    Is my NUC really to slow to run it on Ubuntu 18.10? I see that my Ubuntu Desktop is running not perfectly, but fast enough I would say. Is there any way to speed up Retropie for low end hardware? I tried Launchbox on Windows 10 first, but I thought my hardware is too slow for Windows 10 and Launchbox. But the NES games and SNES games were running at the same slow speed than now in Ubuntu 18.10.

    The main reason to change from Windows 10 to Ubuntu 18.10 was because I thought Linux would be faster. But somehow, the operating system runs a bit faster than Windows 10, but the games are about the same speed.

    Is there any Linux distribution which runs faster than Ubuntu 18.10 and is compatible with Retropie? Do you think my CPU is simply to weak to run games on Retropie?

    Well it is going a bit offtopic now, so if you want me to open a new thread, just let me know.


  • Global Moderator

    @bigbootykilla OK, so it seems you skipped one step in the installation. The password comes from running sudo - you should configure your user to not require a password when running sudo - https://www.cyberciti.biz/faq/linux-unix-running-sudo-command-without-a-password/.

    As for the low performance, that would need a bit of investigation. Can you run one of your ROMs with verbose logging enabled from the Runcommand launch menu and then add the RetroArch logfile (/dev/shm/runcommand.log) to pastebin.com. It might be a video driver issue - outside of emulation, is everything running well ?



  • Alright!

    Here is the pastebin from runcommand.log
    https://pastebin.com/A6CQ7x4G


  • Global Moderator

    @bigbootykilla You should have run it a bit to get some statistics at the end (frame dropped, etc.), but from the log it's looking like you're trying to use a low powered graphics card (https://www.notebookcheck.net/Intel-HD-Graphics-405-Braswell-Benchmarks-and-Specs.169241.0.html) to drive up a 4k screen. Try lowering your resolution to 1080p and see if it makes a difference.



  • @mitu yay! Lowering the resolution was the solution! I simply reduced my ubuntu desktop resolution from 4k to 1920x1080 und now its running fine! I forgot that my TV is 4k and surely games start in that native resolution. Thanks man, you are the best :)

    Now need to care only about the scraper problem, because it doesnt find any of my games automatically and even when i press input and change the name to a simple name, it doesnt find anything.

    And second thing is to autostart retropie before the Ubuntu Desktop starts.


  • Global Moderator

    @bigbootykilla said in PS4 Controller is not working with Ubuntu 18.04:

    Now need to care only about the scraper problem, because it doesnt find any of my games automatically and even when i press input and change the name to a simple name, it doesnt find anything.

    The internal scraper is not working at the moment - unless you're using the -dev branch of Emulationstation. A release will be made - not long - to fix that in the stable branch also.

    And second thing is to autostart retropie before the Ubuntu Desktop starts.

    I don't think that's possible, since Emulationstation needs the desktop environment to work. Depending on your DE though, you can surely find a solution to autostart a program at loging.



  • @mitu Alright! Then I will wait until the Scraper problem is fixed. The autostart is already implemented in the retropie programm. Just need to go to the retropie setup and set the autostart option to enable.

    My Retropie is now starting automatically. When I quit Retropie, I have my normal Ubuntu Desktop.

    Anyways, thanks for the help! I am done for now.



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.