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

    Retropie Ubuntu dual screen?!

    Scheduled Pinned Locked Moved Help and Support
    ubunturetropiedual screen
    6 Posts 2 Posters 2.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.
    • N
      nicolas6t76
      last edited by

      Hi guys deja thank you for retropie on ubuntu, it works very well!

      But I have a problem, can make it work on the second screen (HDMI-1)

      I just love it

      Here is my config

      Screen 0: minimum 320 x 200, current 3840 x 1268, maximum 16384 x 16384
      HDMI-0 connected 1920x1080+1920+188 (normal left inverted right x axis y axis) 708mm x 398mm
      1920x1080 60.0*+ 50.0 59.9
      1920x1080i 60.1 + 50.0 60.0
      2880x576 50.0
      2880x576i 50.1
      2880x480 60.0 59.9
      2880x480i 60.1 60.1
      1280x720 60.0 50.0 59.9
      1440x576 50.0
      1440x576i 50.1
      1440x480 60.0 59.9
      1440x480i 60.1 60.1
      720x576 50.0
      720x480 60.0 59.9
      DVI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
      1920x1080 60.0*+
      1680x1050 59.9
      1280x1024 75.0 60.0
      1440x900 59.9
      1280x960 60.0
      1280x800 59.9
      1152x864 75.0
      1280x720 60.0
      1024x768 75.1 70.1 60.0
      832x624 74.6
      800x600 72.2 75.0 60.3 56.2
      640x480 75.0 72.8 66.7 60.0
      720x400 70.1

      Thank you very much I did not find a solution ...

      BuZzB 1 Reply Last reply Reply Quote 0
      • BuZzB
        BuZz administrators @nicolas6t76
        last edited by BuZz

        @nicolas6t76

        edit /opt/retropie/configs/all/retroarch.cfg

        # Which monitor to prefer. 0 (default) means no particular monitor is preferred, 1 and up (1 being first monitor),
        # suggests RetroArch to use that particular monitor.
        # video_monitor_index = 0
        

        this will only help for libretro emulators.

        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 1
        • N
          nicolas6t76
          last edited by

          Thank you I try without any difference ...

          Maybe with a script?

          BuZzB 1 Reply Last reply Reply Quote 0
          • BuZzB
            BuZz administrators @nicolas6t76
            last edited by

            @nicolas6t76 it's possible that setting is not used on Linux. Not something I have done sorry.

            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
            • N
              nicolas6t76
              last edited by

              Thank you I will continue to seek!

              1 Reply Last reply Reply Quote 0
              • N
                nicolas6t76
                last edited by

                I tried this script but it is not stable and the emulation returns to the 1st screen

                #!/bin/bash

                This script will run a program in fullscreen mode (no borders or

                title bar etc) on a second monitor. It can used for many programs

                and on either the primary or secondary monitor

                #This is the executable file or path
                PROGRAM='emulationstation'

                This is the output of wmctrl -l for the program that we are using

                NAME='emulationstation'

                This is the device name of the monitor we want to display the program on

                DEVICE='HDMI-1'

                If you want the program to be fullscreen on your second monitor

                this variable should be the width of your primary monitor

                PRIMARYWIDTH=1920

                Run the program , then wait a bit before carrying on

                If your program doesn't load in time then try increasing this value

                $PROGRAM > /dev/null 2> /dev/null & disown && sleep 3

                Set the Open GL environment variables

                Set the vertical blanking to on

                __GL_SYNC_TO_VBLANK=1

                And make sure OpenGL syncs the correct monitor

                __GL_SYNC_DISPLAY_DEVICE="$DEVICE"

                Do we want a screensaver

                #SDL_VIDEO_ALLOW_SCREENSAVER=0

                Set the dimensions of the program in the monitor

                wmctrl -r "$NAME" -e '0,'$PRIMARYWIDTH',-1,-1,-1'

                Maximize it

                wmctrl -r "$NAME" -b toggle,fullscreen,maximized_vert

                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.