Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Copy-Paste all between --------- :
---------
sudo bash -c "cat > /usr/bin/wine_resfix.sh" << EOF
#!/bin/bash
ACTIVEMONITOR=\$(xrandr --listactivemonitors | awk '{print \$4}')
game_mode() {
xrandr --output \$ACTIVEMONITOR --set "scaling mode" "Full aspect"
xrandr -s \$1
}
desktop_mode() {
xrandr --output \$ACTIVEMONITOR --set "scaling mode" "Full"
xrandr -s \$1
}
case "\$1" in
on)
game_mode \$2
;;
off)
desktop_mode \$2
;;
*) echo ""
echo "Usage: "
echo ""
echo "\$0 on \"desired resolution; e.g. 1024x768\""
echo ""
echo "\$0 off \"normal resolution; e.g. 1920x1080\""
echo ""
;;
esac
EOF
---------
Run:
sudo chmod +x /usr/bin/wine_resfix.sh
Simply add to launch options in steam:
wine_resfix.sh on 1024x768 && %command% && wine_resfix.sh off 1920x1080
That could be wrapped in an on- off type script using (case $1 in ...) with on / off options, or as separate scripts and then attached to launch options in the Steam game menu like:
myscript on && %command% && myscript off
or as:
myscript_on && %command% && myscript_off
as launch option. See my Systemshock 1 guide for a similar solution using a timidity script to enable MIDI audio.
1. Open a terminal
2. Run 'xrandr' to see what port the monitor is plugged in to (in my case HDMI-A-0)
3. Open a text editor
4. Type the following:
xrandr --ouput [result of step 2] --set "scaling mode" "Full aspect"
xrandr -s 1280x1024 (or whatever resolution you want to play the game in)
read -s
xrandr -s 1920x1080 (or whatever resolution your screen is normally in)
5. Save the file as .kotorres.sh or whatever you want
Now you can just open a terminal and type 'bash .kotorres.sh' and the display will change to the correct resolution, you can play the game, and then when you are done you just close out of the game, go to the same terminal window, and press the Enter key and the resolution will change back.
To be added as:
Height=768
Width=1024
---
The off-center display is due to a Wine limitation which pretty much requires the app / game to have the same resolution as the desktop (this only applies to fullscreen mode though).