Warning: 2015-10-19: Major upgrade in progress. Site somewhat functional, with bugs...
Wine Linux.png

Wine general tricks

Running on a separate X server

Running in a separate X server often allows to get a bit more performance, and you also avoid problems with the window manager stealing some keys, for instance in some games the Alt key do not work anymore as it is grabbed by the window manager. This is done simply by the following script:

# on which display to run? 1 to 9 export
D=1
# supress debug mssages, for added performance
export WINEDEBUG=-all
# Optional: a special X config file for specific options or resolutions
# file in /etc/X11, a copy of xorg.conf with some changes
CONFIG='-config xorg-1440.conf'
# we run the X server on D, -ac making it quit after game is run
X :$D -ac -terminate -$CONFIG &
sleep 2 # wait a bit for it to be ready
# we run our game via wine now, alone on this server
DISPLAY=:$D.0
wine THE-GAME-TO-RUN.exe options...

Running in windowed mode

Add as options to wine: explorer /desktop=Name,1024x768 replacing "Name" by the title you want to give to the window, and use the resolution you want, of course

-- ColasNahaboo - 2008-08-15

Topic revision: r18 - 26 Mar 2010, ColasNahaboo
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Colas? Send feedback