LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 12-20-2013, 09:25 AM   #1
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Rep: Reputation: 14
doom3 graphic issue with resolution above 1024*768


Hey there for first time

I'm running the native version of the game.
My hardware is just a a dell laptop with ATI/Intel video card, currently using intel video driver.
The game itself runs smoothly, except for the resolution.
If I switch it to one above 1024*768, the game either will come up in a separate screen or run in a fullscreen but oustide of the center of the screen. The only way then it is to kill it with a tty.
Now, I've been tracking down some possible reasons of this behaviour and managed to get some logs from the game.

Quote:
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension: No acceptable modes found
I suppose it may have something to do with the X settings which currently look like this :

Quote:
Section "Device"
Identifier "video"
Driver "intel"
EndSection

Section "Module"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "i2c"
Load "ddc"
Load "vbe"
Load "dri"
Load "glx"
Load "synaptics"

EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
VertRefresh 43 - 60
HorizSync 28 - 80
EndSection

Section "DRI"
Mode 0666
EndSection

Section "ServerLayout"
Identifier "Main Layout"

EndSection

Section "Extensions"
#Option "Composite" "Enable"

EndSection
Do you have any idea what may be causing the game to run in the way described above?

Thanks in advance
 
Old 12-21-2013, 03:40 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Probably nothing is wrong.

Now you know why people pay €€€ or $$$ for a video card and spend ages getting it sorted. Given that, like me, you have crappy equipment, there's a few things you can do.

Make sure you have the latest drivers and that all possible tweaks are set up in X. There are things you can do to make the card go a little faster. Find out what they are and do them if they are not done.Options in X, native code. less going on in the background, etc. You will find pages devoted to it. Think of it a bit like 50cc racing. People used to race 50cc bikes, and works factories went to ridiculous lengths (in the 50s and early 60s) designing multi cylinder 50cc bikes with scores of gears. The guys making the rules stepped in and said "Maximum 2 cylinders and six gears below 250cc." So then it became a weight lightening contest.

There are differences between the various Intel cards. Intel what?

Last edited by business_kid; 12-21-2013 at 03:41 AM.
 
Old 12-21-2013, 10:24 AM   #3
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Hey,

I don't think, the issue occurs due to "crappy equipment". This is a Dell bran new model, shipped with i5 and 8 GB of ram. Maybe I'm not getting you the way I should, but do you mean the hardware is crappy itself or graphic manufacturers produce crappy hardware?
Anyway, this is the output of what lays beyond my vga architecture:

0
Quote:
0:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Thames XT [Radeon HD 7670M] (rev ff) (prog-if ff)
As you see, this is a hybrid chip and here we're touching another problem: Linux software support for such models.
As far as I know, only Ubuntu now supports fully intel/ati hybrid with it's own X driver; same for the powerxpress technology.
Other distro are still stuck to the vgaswitcheroo kernel switching or acpi_call which means disabling discrete chip, thus getting rid of any (real) 3d acceleration

Having said that. Should I look for some intel specific tweaks for X? general tweaks for X? I am kind of confused as game itself doesn't run slowly, the problem is the resolution.
 
Old 12-21-2013, 01:58 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Crappy might be overstatement.
Games stress a pc to it's limit. So a gamer pc will perform at higher resolutions, background detail etc.
I presume you have a hd4000 graphics GPU. Intel are behind nvidia and ATI graphics - I think that's the general concensus.

Your pc has a lower limit than if you had a top of the range nvidia or ati cerd. At 1024x768 I think you have hit it. Mind you, if it's giving you 1024x768(4:3 aspect ratio monitor) on a new machine(presumably 16:0 aspect ratio) you may be running off the vesa driver or something. What is your X video driver?

post the stuff from
Quote:
grep DRI /var/log/Xorg.0.log
should find it. Otherwise try a grep for 'driver'
 
Old 12-21-2013, 02:17 PM   #5
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Yes, it is Intel HD4000 indeed. I am running "intel" driver (as stated in my first post )
I've also checked mesa, it's version 9.x
Any ideas on how to improve?
 
Old 12-22-2013, 03:08 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,404

Rep: Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337Reputation: 2337
Can you get the hd4000 out of it and get going on the ATI 7670?

You have a Sports car and a banger in there. The banger(hd 4000) won't go fast enough. You gotta wake up the 7670. Google for whether oss or binary blob drivers are better. Probably the latter is.
 
Old 12-23-2013, 03:36 AM   #7
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Yeah; Installing a binary driver is always a way but honestly, I am still not convinced this is the main reason of the issue.
C'mon. The game itself is from 2000-something so it's highly unlike that it runs slowly on my hardware specs given.
My video card is using mesa which is an opengl library and the game is awareof that, also the graphic and frame rate is fine.
I suppose this has something to do with some xorg settings, look:
Quote:
Using XFree86-VidModeExtension Version 2.2
, I'll try to tune it a bit and test.
Eventually, I will install the binary driver but as the very last solution.
Then it will be question of luck if my X starts (problem with hybrid video chips)

Last edited by fuorviato; 12-23-2013 at 03:38 AM.
 
Old 12-26-2013, 06:23 AM   #8
Einars
LQ Newbie
 
Registered: May 2009
Distribution: Slackware 14.2
Posts: 26

Rep: Reputation: 2
Just fired up doom3 to check out myself, since I recentry go intel processor with integrated graphics (hd2500). Game runs flawlessly, with most graphic settings to highest. As for resolution, I needed to do some config file tweaking. In <your doom install dir>/base directory make new file autoexec.cfg and paste the following there:

seta r_customHeight "1050"
seta r_customWidth "1680"
seta r_mode "-1"
seta r_aspectRatio "2"

Just adjust screen resolution as needed, and set r_aspectRatio to "1" for 16:9 aspect ratio or leave to "2" for 16:10. As for xorg config file, mine looks very simple:

Section "Device"
Identifier "screen0"
Driver "intel"
Option "SwapbuffersWait" "0"
Option "AccelMethod" "sna"
EndSection

Works flawlessly. "SwapbuffersWait" should improve performance, but can introduce video tearing (which I dont mind). "AccelMethod" shouldnt impact 3d performance at all, I think, so it's completely optional. Anyway, good luck
 
Old 12-27-2013, 11:25 AM   #9
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by Einars View Post
Just fired up doom3 to check out myself, since I recentry go intel processor with integrated graphics (hd2500). Game runs flawlessly, with most graphic settings to highest. As for resolution, I needed to do some config file tweaking. In <your doom install dir>/base directory make new file autoexec.cfg and paste the following there:

seta r_customHeight "1050"
seta r_customWidth "1680"
seta r_mode "-1"
seta r_aspectRatio "2"

Just adjust screen resolution as needed, and set r_aspectRatio to "1" for 16:9 aspect ratio or leave to "2" for 16:10. As for xorg config file, mine looks very simple:

Section "Device"
Identifier "screen0"
Driver "intel"
Option "SwapbuffersWait" "0"
Option "AccelMethod" "sna"
EndSection

Works flawlessly. "SwapbuffersWait" should improve performance, but can introduce video tearing (which I dont mind). "AccelMethod" shouldnt impact 3d performance at all, I think, so it's completely optional. Anyway, good luck
Thanks for the tip but with this config game starts in an angle - both for 16:9, 10.
I tried with various resolutions but always I get the same result - the game window "streched" in a window.
The only solution to that is to delete doom 3 config file which will revert the changes to the defaults.
I am attaching it for your revision.
Attached Files
File Type: txt DoomConfig.txt (5.2 KB, 12 views)

Last edited by fuorviato; 12-27-2013 at 11:36 AM. Reason: additional info
 
Old 12-27-2013, 11:53 AM   #10
Einars
LQ Newbie
 
Registered: May 2009
Distribution: Slackware 14.2
Posts: 26

Rep: Reputation: 2
Quote:
Originally Posted by fuorviato View Post
Thanks for the tip but with this config game starts in an angle - both for 16:9, 10.
Hm, I forgot to mention one pretty important detail - my doom3 is running in Wine. In winecfg I set so that game runs in wine's virtual desktop, so 1) doom3 cant mess with my screen resolution, and 2) I can easily switch to other programs. And one more thing - are you running latest patched version (1.3) of game? Because older versions apparently dont support custom resolutions. And could you clarify what you meant by 'game starts in an angle'?

I looked at your config, but I dont see my changes there (I assume your screen resolution isnt 720x486? )

Last edited by Einars; 12-27-2013 at 11:59 AM.
 
Old 12-27-2013, 12:06 PM   #11
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Well, so you're running native linux code in wine? If I get you right.
Mine doom is a linux native version with .pak files copied over to the game directory.
The attached config is the default one that the game recreates when getting rid of previous configs.
By "game starts in an angle" I mean that it does start in a window. Dimensionally speaking, it's a half-screen.
Hope you get my point this time
 
Old 12-27-2013, 12:26 PM   #12
Einars
LQ Newbie
 
Registered: May 2009
Distribution: Slackware 14.2
Posts: 26

Rep: Reputation: 2
No, it's MS Windows version of doom I'm running in Wine, since, well, that's what Wine is for Anyway, I have never been dealing with dual graphics setup before, could you post your Xorg.0.log file?
 
Old 12-27-2013, 01:44 PM   #13
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Sure. I don't think it's weird in any way confronting to standard setups

Quote:
Section "Device"
Identifier "video"
Driver "intel"
EndSection

Section "Module"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "i2c"
Load "ddc"
Load "vbe"
Load "dri"
Load "glx"
Load "synaptics"

EndSection

Section "ServerFlags"
Option "AllowMouseOpenFail" "true"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
VertRefresh 43 - 60
HorizSync 28 - 80
EndSection





Section "DRI"
Mode 0666
EndSection

Section "ServerLayout"
Identifier "Main Layout"

EndSection

Section "Extensions"
#Option "Composite" "Enable"

EndSection
 
Old 12-27-2013, 02:19 PM   #14
Einars
LQ Newbie
 
Registered: May 2009
Distribution: Slackware 14.2
Posts: 26

Rep: Reputation: 2
I meant xorg.0.log file (should be in /var/log), not xorg.conf
 
Old 12-27-2013, 02:36 PM   #15
fuorviato
Member
 
Registered: Dec 2013
Location: Poland
Distribution: Sabayon/Gentoo 64bit
Posts: 215

Original Poster
Rep: Reputation: 14
Ah..right, sorry Here you go - it's attached
Attached Files
File Type: txt xorg.txt (29.0 KB, 12 views)
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change the screen resolution to 1024*768 girishgld Linux - Newbie 4 08-19-2008 07:26 AM
screen resolution stuck at 1024 x 768 etechnophile SUSE / openSUSE 7 01-03-2007 02:16 AM
screen resolution went back to 1024*768 spacegypsy Linux - Software 8 04-22-2006 06:18 AM
using linux without X11 with 1024*768 resolution gaddargarson Fedora 3 04-05-2005 10:47 AM
using linux without X11 with 1024*768 resolution gaddargarson Slackware 3 04-04-2005 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 07:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration