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

    Video modes failed - Ubuntu x64

    Scheduled Pinned Locked Moved Help and Support
    videomodesmesa-drmubuntux64
    5 Posts 2 Posters 743 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.
    • W
      wadie_bs
      last edited by wadie_bs

      Dear all,

      Trying to choose a video mode failed through the command menu :
      Here is what then will be written to videomodes.cfg :
      lr-mame2016 = "
      Error: Expected at least 5 tokens for --menu, have 4.
      Use --help to list options."

      I have an Nvidia Card properly installed (proprietary driver with drm activated), I analyzed the command.sh file, tried modetest command as follows
      /opt/retropie/supplementary/mesa-drm# ./modetest -r result is :
      trying to open device 'vc4'...failed
      trying to open device 'i915'...failed
      trying to open device 'amdgpu'...failed
      trying to open device 'radeon'...failed
      trying to open device 'nouveau'...failed
      trying to open device 'vmwgfx'...failed
      trying to open device 'omapdrm'...failed
      trying to open device 'exynos'...failed
      trying to open device 'tilcdc'...failed
      trying to open device 'msm'...failed
      trying to open device 'sti'...failed
      trying to open device 'tegra'...failed
      trying to open device 'imx-drm'...failed
      trying to open device 'rockchip'...failed
      trying to open device 'atmel-hlcdc'...failed
      trying to open device 'fsl-dcu-drm'...failed
      trying to open device 'virtio_gpu'...failed
      trying to open device 'mediatek'...failed
      trying to open device 'meson'...failed
      trying to open device 'pl111'...failed
      trying to open device 'stm'...failed
      trying to open device 'sun4i-drm'...failed
      trying to open device 'armada-drm'...failed
      no device found

      Any idea ?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by mitu

        modetest is not used for PC installations, only for the Pi4 (at the moment). For PC installs, xrandr is used - can you post the output of xrandr --verbose on pastebin.com ?

        Please also add the info requested in https://retropie.org.uk/forum/topic/3/read-this-first.

        1 Reply Last reply Reply Quote 0
        • W
          wadie_bs
          last edited by wadie_bs

          Thank you for your prompt answer!
          Please find below the result of xrandr
          https://pastebin.com/uA8b3a9i

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            May be similar to https://retropie.org.uk/forum/topic/26362/low-resolution-no-options-in-ubuntu/20, can you try the same workaround ?

            1 Reply Last reply Reply Quote 0
            • W
              wadie_bs
              last edited by

              Yes, you rock !

              it works with this change
              indeed in the file /opt/retropie/supplementary/runcommand/runcommand.sh

              changed the line :
                     id="$(echo "$line" | awk '{ print $2 }' | grep "([0-9]\{1,\}x[0-9]\{1,\})")"
              with this line
                     id="$(echo "$line" | awk '{ print $2 }' | grep -o "(0x[a-f0-9]\{1,\})")"
              
              And the line : 
                      mode_id[1]="$($XRANDR --verbose | grep " connected" | grep -o "([0-9]\{1,\}x[0-9]\{1,\})")"
              with this line
                      mode_id[1]="$($XRANDR --verbose | grep " connected" | grep -o "(0x[a-f0-9]\{1,\})")"
              

              Now the video mode selection is working great
              Many 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.