• 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

LibRetro not yet ready for Ubuntu 18.04

Scheduled Pinned Locked Moved Help and Support
libretrobrokenubuntu18.04
40 Posts 12 Posters 16.6k 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.
  • P
    pinguy
    last edited by pinguy 22 Jun 2018, 09:18

    This is a bit hacky but until the devs find a fix for Ubuntu 18.04 Xorg this will work for now.

    Install weston.

    sudo apt install weston
    

    Than create a script that will run weston with RetroArch within Xorg.

    #!/bin/bash
    weston --width=1280 --height=720 --fullscreen & p1=$!
    retroarch & p2=$!
    
    wait -n
    [ "$?" -gt 1 ] || kill "$p1" "$p2"
    wait
    

    Change width and height to your screen resolution than save it somewhere and point /usr/share/applications/RetroArch to the script or create a new launcher.

    To stop weston from putting the screen to sleep add this to ~/.config/weston.ini

    [core]
    idle-time=0
    

    With this script I run emulationstation instead. As emulationstation is running within weston when it launches retroarch it also runs under weston. But it should work with any frontend.

    EDIT#
    Here is a real fix. No need to run RetroArch within weston.

    The issue seems to be due to Ubuntu using DRI3 as default for Xorg. For older graphic cards you may have to use DRI2.

    To see what you are using run:

    xdpyinfo | grep DRI
    

    If its DRI3 changing it to DRI2 may fix the problem.

    For ATI cards pre-vulkan run.

    sudo nano /usr/share/X11/xorg.conf.d/10-radeon.conf
    

    and paste this into it save and exit:

    Section "OutputClass"
        Identifier "Radeon"
        MatchDriver "radeon"
        Driver "radeon"
        Option "DRI" "2"
        Option "TearFree" "on"
        Option "AccelMethod" "glamor"
    EndSection
    

    F3 will save the file and Ctrl+X will exit nano.

    Than kill X or reboot.

    Unsure if this will work with newer ATI cards. You may have to change "DRI" "2" to "DRI" "3"

    Same deal with intel but instead of 10-radeon.conf its 20-intel.conf.

    sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
    

    If DRI 2 doesn't work try 3.

    Section "Device"
      Identifier  "Intel Graphics"
      Driver      "intel"
      Option      "DRI" "2"
      Option      "TearFree" "true"
      Option      "AccelMethod"  "uxa"
    EndSection
    

    Just remember after making changes to the .conf you need to kill X or reboot for the changes to take effect.

    If you are unable to boot back into the system. Boot the live ISO and delete /usr/share/X11/xorg.conf.d/ 20-intel.conf or 10-radeon.conf.

    1 Reply Last reply Reply Quote 1
    • T
      thelostsoul
      last edited by thelostsoul 7 Apr 2018, 19:16 4 Jul 2018, 18:14

      I want to report RetroArch from Snap-Store does work in Ubuntu 18.04 with Xorg out of the box. So anybody want test this out, please report back.

      📜 RE/SET: 100 SNES Games for your RetroPie, 🎁 Share your hidden gems and insider tips

      1 Reply Last reply Reply Quote 0
      • B
        BuZz administrators
        last edited by 4 Jul 2018, 18:34

        The latest RetroArch seems to be fine on my system with X. Can someone confirm the issue with RetroArch 1.7.3 ?

        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

        T 1 Reply Last reply 4 Jul 2018, 18:37 Reply Quote 0
        • T
          thelostsoul @BuZz
          last edited by 4 Jul 2018, 18:37

          @buzz At least, it didn't work before. So it must be the last update. I also posted this non working issue 2 month or so ago at German Ubuntu forum and it was confirmed that RetroArch didn't work there and it was a problem with LibRetro. Also RetroPie didn't work for me then.

          📜 RE/SET: 100 SNES Games for your RetroPie, 🎁 Share your hidden gems and insider tips

          M 1 Reply Last reply 4 Jul 2018, 18:45 Reply Quote 0
          • M
            mitu Global Moderator @thelostsoul
            last edited by 4 Jul 2018, 18:45

            @thelostsoul Are you referring to the RA included in RetroPie or the snaps package distributed by the RetroArch project ?

            T 1 Reply Last reply 4 Jul 2018, 18:50 Reply Quote 0
            • T
              thelostsoul @mitu
              last edited by 4 Jul 2018, 18:50

              @mitu 2 month ago, both didn't work, RetroPie from retropie.org.uk and RetroArch snap from Ubuntu store. Now 2 month later, I just tested and installed RetroArch snap from Ubuntu store and it did work.

              📜 RE/SET: 100 SNES Games for your RetroPie, 🎁 Share your hidden gems and insider tips

              M 1 Reply Last reply 4 Jul 2018, 18:59 Reply Quote 0
              • M
                mitu Global Moderator @thelostsoul
                last edited by 4 Jul 2018, 18:59

                @thelostsoul How about the RA from the RetroPie setup script, does it work now ? I think that's what @buzz was asking - not about the one from the snaps repo.

                T 1 Reply Last reply 4 Jul 2018, 20:11 Reply Quote 0
                • T
                  thelostsoul @mitu
                  last edited by 4 Jul 2018, 20:11

                  @mitu Ok, so I just tried it. I downloaded the RetroPie script, installed it (took a long time) and now it works. I just added Super Mario World for a quick test. The game starts and I can play with my X-Box 360 gamepad, but RetroArch menu didn't open. In EmulationStation the keyboard don't respond. So clearly there is some work left. If this will work out, I would delete official RetroArch and use RetroPie on my pc for better performance and compatibility with specific emulators.

                  📜 RE/SET: 100 SNES Games for your RetroPie, 🎁 Share your hidden gems and insider tips

                  1 Reply Last reply Reply Quote 0
                  • M
                    mitu Global Moderator
                    last edited by 21 Jul 2018, 06:38

                    I've done some tests recently and it seems the video_threaded = true setting is causing the black video in RetroArch.
                    If you're willing to give it a try, modify the setting in /opt/retropie/configs/all/retroarch.cfg or through the Advanced configuration editor and

                    • put back gl as video driver
                    • disable the threaded_video setting.
                      After the configuration is modified, you can test again any libretro ROMs/Games - no restart/reboot required.
                    G 1 Reply Last reply 25 Oct 2019, 00:44 Reply Quote 1
                    • G
                      giochajon @mitu
                      last edited by 25 Oct 2019, 00:44

                      @mitu said in LibRetro not yet ready for Ubuntu 18.04:

                      I've done some tests recently and it seems the video_threaded = true setting is causing the black video in RetroArch.
                      If you're willing to give it a try, modify the setting in /opt/retropie/configs/all/retroarch.cfg or through the Advanced configuration editor and

                      • put back gl as video driver
                      • disable the threaded_video setting.
                        After the configuration is modified, you can test again any libretro ROMs/Games - no restart/reboot required.

                      This Worked for me. Thanks !

                      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