Can't change game resolution (linux)

Can't change game resolution (linux)

Postby Salatfreak » 24 Dec 2013, 22:47

Hi forum,
I just installed STK yesterday from pacman and i love it. Using a game controller works great and the gameplay is awesome.
I am running Manjaro (Arch) with xfce and kernel version 3.12 on my asus notebook with GeForce 325M GPU.
But unfortunately i can't change the game's resolution. My screen resolution is 1366x768 and the game suggests the resolutions 1024x768, 1024x640 and 800x600.
The following error messages appear:
{l Code}: {l Select All Code}
[warn   ] irr_driver: The window size specified in user config is larger than your screen!
[IrrDriver Temp Logger] Level 2: Could not find specified video mode, running windowed.
[IrrDriver Temp Logger] Level 2: No FSAA available.

I used xrandr to add the 1024x768 modes:
{l Code}: {l Select All Code}
xrandr --newmode "1024x768_60"  63.50   1024 1072 1176 1328     768 771 775 798     -hsync +vsync
xrandr --newmode "1024x768_120" 137.75  1024 1104 1208 1392     768 771 775 826     -hsync +vsync

xrandr --addmode LVDS1 1024x768_60
xrandr --addmode LVDS1 1024x768_120

but that doesn't change anything.
So how can i change the resolution and play the game in fullscreen mode?
Thank you!

Edit: By default there is only one mode defined: 640x480
{l Code}: {l Select All Code}
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 353mm x 199mm
   640x480        59.9

and for example the LightWeightJavaGameLibrary recognizes and uses the added modes too. How exactly does the IrrLicht-Engine get modes and resolutions?
I also tryed to add the modes in the .xinitrc file but STK still can't recognize them.
Should I add the ModeLines to the xorg.conf? If yes: how exactly?
Salatfreak
 
Posts: 3
Joined: 24 Dec 2013, 22:23

Re: Can't change game resolution (linux)

Postby Auria » 27 Dec 2013, 03:45

Hi,

fullscreen is always a bit complicated under linux/X. Apparently your native resolution is not detected. You could try to open ~/.config/supertuxkart/config.xml and locate this section :

{l Code}: {l Select All Code}
    <Video
        width="1280"
        height="768"
        fullscreen="true"


then enter your resolution there, fullscreen="true", and try running the game and see if it works
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Can't change game resolution (linux)

Postby Salatfreak » 27 Dec 2013, 13:00

Thanks, but i think that is exactly what the settings do before restarting the game and i allready tried that. I think the problem is the order of the modes or so. It says that the screen resolution is lower than 800x600 so i think it refers to the 640x480 resolution.
Thank you
Salatfreak
 
Posts: 3
Joined: 24 Dec 2013, 22:23

Re: Can't change game resolution (linux)

Postby Salatfreak » 27 Dec 2013, 18:01

{l Code}: {l Select All Code}
Xorg :0 -configure
done it. The modes are in the correct order now and STK recognizes them.
Thanks
Salatfreak
 
Posts: 3
Joined: 24 Dec 2013, 22:23

Who is online

Users browsing this forum: Bing [Bot] and 1 guest