Hello friends
I just bought a 24" HDMI gamer monitor to run Urban Terron on Linux (Fedora 30 + KDE Plasma). The monitor works fine extending the desktop to the right side (via the HDMI port of the laptop), runs applications, videos, etc. but when I execute UrT it opens on the laptop screen EVEN IF I RUN IT ON THE EXTERNAL MONITOR, it switches to the laptop screen.
How can I configure or force UrT to open on the external video? I've acquired the 24" monitor just to play Urban Terror and is the only thing that I can't do 8(
Thanks!
Advertisement
Page 1 of 1
UrT on external HDMI monitor (Linux)
Can't run UrT on external monitor
#2
Posted 26 July 2020 - 07:12 AM
Renito73, on 11 December 2019 - 03:55 AM, said:
Hello friends
I just bought a 24" HDMI gamer monitor to run Urban Terron on Linux (Fedora 30 + KDE Plasma). The monitor works fine extending the desktop to the right side (via the HDMI port of the laptop), runs applications, videos, etc. but when I execute UrT it opens on the laptop screen EVEN IF I RUN IT ON THE EXTERNAL MONITOR, it switches to the laptop screen.
How can I configure or force UrT to open on the external video? I've acquired the 24" monitor just to play Urban Terror and is the only thing that I can't do 8(
Thanks!
I just bought a 24" HDMI gamer monitor to run Urban Terron on Linux (Fedora 30 + KDE Plasma). The monitor works fine extending the desktop to the right side (via the HDMI port of the laptop), runs applications, videos, etc. but when I execute UrT it opens on the laptop screen EVEN IF I RUN IT ON THE EXTERNAL MONITOR, it switches to the laptop screen.
How can I configure or force UrT to open on the external video? I've acquired the 24" monitor just to play Urban Terror and is the only thing that I can't do 8(
Thanks!
I have a bash script to start the game which I run on my laptop screen and output the game to my main monitor like so:
export SDL_VIDEO_FULLSCREEN_HEAD={0}
./Quake3-UrT.x86_64
You get the number by doing typing the command xrandr
Look for the bit that looks like this:
Screen 0: minimum 8 x 8, current 5360 x 1440, maximum 16384 x 16384
DP-0 connected primary 3440x1440+1920+0 (normal left inverted right x axis y axis) 800mm x 335mm
#3
Posted 03 February 2021 - 08:46 PM
Yeah, sorry to revive an old thread, but ge0rdie's tip worked perfectly for me. Here's a little more detail, in case it is useful.
On my machine, UT was actually running on both monitors at once, but the fix is the same. I made a bash script to output the game to my external monitor, and it looks like this in my case:
When I ran xrandr, my second entry in the list says:
So for you, you'll want to replace "VGA-1" in the above script with whatever identifier is shown by xrandr for your desired monitor. If I wanted to use my laptop's built-in screen, for instance, I'd replace "VGA-1" in the script with "LVDS-1".
Here's what the full output of xrandr looks like for me, so you can see the context I pulled those identifiers from:
I saved that script in the same directory as UT, and then made that script executable:
Then, when I want to run UT, I open a terminal, navigate to the UT directory, and run my script. For me, the command is:
Hope that helps someone! :-)
On my machine, UT was actually running on both monitors at once, but the fix is the same. I made a bash script to output the game to my external monitor, and it looks like this in my case:
#!/bin/bash
# This will start Urban Terror on the monitor connected to the VGA port
export SDL_VIDEO_FULLSCREEN_HEAD={VGA-1}
./Quake3-UrT.x86_64
# This will start Urban Terror on the monitor connected to the VGA port
export SDL_VIDEO_FULLSCREEN_HEAD={VGA-1}
./Quake3-UrT.x86_64
When I ran xrandr, my second entry in the list says:
VGA-1 connected primary 1920x1080+2080+0 (normal left inverted right x axis y axis) 476mm x 268mm
So for you, you'll want to replace "VGA-1" in the above script with whatever identifier is shown by xrandr for your desired monitor. If I wanted to use my laptop's built-in screen, for instance, I'd replace "VGA-1" in the script with "LVDS-1".
Here's what the full output of xrandr looks like for me, so you can see the context I pulled those identifiers from:
john@johnicbook:~$ xrandr
Screen 0: minimum 320 x 200, current 4000 x 1080, maximum 8192 x 8192
LVDS-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 383mm x 215mm
1920x1080 60.00 + 59.97* 59.96 59.93
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
VGA-1 connected primary 1920x1080+2080+0 (normal left inverted right x axis y axis) 476mm x 268mm
1920x1080 60.00*+
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
Screen 0: minimum 320 x 200, current 4000 x 1080, maximum 8192 x 8192
LVDS-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 383mm x 215mm
1920x1080 60.00 + 59.97* 59.96 59.93
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
VGA-1 connected primary 1920x1080+2080+0 (normal left inverted right x axis y axis) 476mm x 268mm
1920x1080 60.00*+
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
I saved that script in the same directory as UT, and then made that script executable:
chmod 744 startOnVGA
Then, when I want to run UT, I open a terminal, navigate to the UT directory, and run my script. For me, the command is:
./startOnVGA
Hope that helps someone! :-)
Page 1 of 1