Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-02-07, 10:26 AM   #13
alaric
Cyber Jedi
 
alaric's Avatar
 
Join Date: Aug 2003
Location: Amsterdam
Posts: 75
Default Re: TwinView and games

I have set up my new 64bit machine entirely in the meantime.
I am happily using TwinView, and play UT2004 without problems
"full screen" on my right monitor.

Here is a quick howto that assumes you are running debian and gnome:

1) Download UT2004-LNX-Demo3334.run.gz

This contains a native amd64 binary - you have to run the UT2004-LNX-Demo3334.run on the amd64 machine in order to get it installed. I installed it in /opt/ut2004demo/ (so that I ended up with a /opt/ut2004demo/ut2004-demo script file). I also had it create a symlink
from ~/bin/ (so that I ended up with two symlinks: ~/bin/ut2004 and
~/bin/ut2004demo, that both point to /opt/ut2004demo//ut2004-demo).

2) Test the installation with: file /opt/ut2004demo/System/ut2004-bin

This should return
Code:
/opt/ut2004demo/System/ut2004-bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), stripped
showing that you indeed have a native x86-64 binary.

3) Install devilspie (apt-get install devilspie)

You should have it automatically start when you start X, of course, so
put this file in ~/.config/autostart/devilspie.desktop :
Code:
[Desktop Entry]
Name=No name
Encoding=UTF-8
Version=1.0
Exec=devilspie
X-GNOME-Autostart-enabled=true
You can also start it from the command line with:
Code:
nohup devilspie > /dev/null &
but first,

4) Add this file as ~/.devilspie/ut2004.ds
Code:
(if
    (is (application_name) "Unreal Tournament 2004")
        (begin
            (undecorate)
            (set_viewport 1)
            (geometry "1680x1050+1680+0")
        )
)
The view_port is the first desktop, you might want to just leave that out.
Change the geometry line to match your monitor, and the +1680 to
where you want to display it (my right monitor is 1680x1050, and
my left monitor is +1680 wide as well).

If devilspie is already running, kill it and start it again.
Code:
killall devilspie; nohup devilspie > /dev/null &
5) Before starting Unreal Tournament, open ~/bin/ut2004demo in your editor and change the part around exec line near the bottom to this:
Code:
# Let's boogie!
if [ -x "${UT2004_DATA_PATH}/ut2004-bin" ]
then
        cd "${UT2004_DATA_PATH}/"
        sed -i 's/StartupFullscreen=.*/StartupFullscreen=False/' ~/.ut2004demo/System/UT2004.ini
        exec "./ut2004-bin" $*
fi
echo "Couldn't run UT2004 (ut2004-bin). Is UT2004_DATA_PATH set?"
exit 1
that is, add that 'sed' line. This is needed because UT2004 keeps changing it back to full screen for some reason.

6) Edit ~/.ut2004demo/System/UT2004.ini and set the values of
Code:
WindowedViewportX=1680
WindowedViewportY=1050
FullscreenViewportX=1680
FullscreenViewportY=1050
to the size of your monitor (in the section [SDLDrv.SDLClient] !)

7) Add /home/you/bin/ut2004demo to your panel and give it the icon that I attached

Note that if the panel is on the screen where UT2004 will be started, then you need to have auto-hide on and move your mouse away from the panel (so it can auto-hide) in time - or UT2004 might fail to grab the mouse. If the mouse is not responsive, you can exit UT2004 by hitting TAB until 'Exit' is highlighted, follwoed by hitting ENTER twice.

And, this UT2004 after all, I added some screenshots to brag
Die Bitch!

Alaric aka "Decoy"
Attached Thumbnails
Click image for larger version

Name:	HOLY****x202.jpg
Views:	102
Size:	105.4 KB
ID:	25994  Click image for larger version

Name:	PPH970-40min.jpg
Views:	107
Size:	97.1 KB
ID:	25995  Click image for larger version

Name:	PPH970-43min.jpg
Views:	97
Size:	120.2 KB
ID:	25996  Click image for larger version

Name:	PPH1903.jpg
Views:	99
Size:	91.6 KB
ID:	25997  
Attached Images
 
__________________
Get my email address from my homepage.
alaric is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
TwinView in RedHat 8 nerfherder64 NVIDIA Linux 5 10-07-02 07:19 PM

All times are GMT -5. The time now is 01:04 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.