LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-29-2004, 07:57 AM   #1
taids
Member
 
Registered: Jul 2003
Location: Wales, UK
Distribution: Slackware/Ubuntu/iWhax
Posts: 31

Rep: Reputation: 15
fullscreen (SDL?) problems (stretchy/blurry fading/blank)


The problem:

Recently, I was fortunate enough to get DRI working with the ATI Radeon IGP (320M) on my laptop -- it required lots of compiling (recompile of X, switch from X.org to XFree, etc). I get very high FPS in most 3D/video now comparitavily to non-DRI, e.g. screensavers run at 30-60fps as opposed to 2-5fps, and video doesn't loose sync (with sound) in Mplayer.

I'm having a few issues though, and I think its related to SDL. When I run an application that uses SDL in fullscreen, the screen sort of fades to black -- the effect is hard to describe, it's like ice/condensation freezing over on a window, I guess. I've noticed though, that the screen isn't completely blank, if I move the mouse round, I can see it stretched the full length of the screen in places (vertically), and in other places it completely disappears. Whatever I'm trying to view isn't on the screen either.

I was having mixed results trying to use the Quake 3 demo, if I ran it in a resolution lower than 640x480 (fullscreen), I would get the same problem as with other fullscreen (SDL?) apps. If I ran it in 800x600, the screen would be mostly filled, with the right side of the screen being really distorted and stretched. 1024x768 (the max res of my laptop screen) was totally fine.

The SDL test apps run perfectly in (their default) windowed mode, but when run in fullscreen (with the -fullscreen parameter), the problem again occurs.

What I've tried:

Recompiling/upgrading SDL. By doing this, Q3 demo seems to have stopped displaying properly at all. Even in windowed mode.

I've tried installing GGI and recompiling SVGAlib and then enabling support for them in SDL, and then using those as the video driver -- svgalib doesn't seem to work, and GGI gave funny colours

I've edited my XFree config to specify on the resolution used by my screen, as well as several resolutions -- this didn't seem to have any impact on it

The solution?:

I assume to sort the problem I need to get SDL to use the resolution of my screen, because at the moment it looks like its putting the image off screen, then waaay over stretching it onto the viewable area of the screen

The specs for the graphics are ATI Radeon IGP (320M) 64MB (shared), 14" laptop panel screen, HP/Compaq NX9005, running Slackware 9.1, 2.6.6 kernel, XFree 4.4, DRI build from CVS few weeks old...

Any ideas/suggestions? (Thanks in advance too)
 
Old 06-29-2004, 11:59 AM   #2
taids
Member
 
Registered: Jul 2003
Location: Wales, UK
Distribution: Slackware/Ubuntu/iWhax
Posts: 31

Original Poster
Rep: Reputation: 15
Hmm, I just updated the kernel to 2.6.7, recompiled the DRI kernel module, rebooted, and it appears that full screen mode works in most things! All the SDL test apps work in fullscreen and so do the other fullscreen apps, however, Q3 is still ballsed up...

One step closer...

Edit: randomly, q3 now works again, windowed and fullscreen, and all fullscreen modes scale properly.

Last edited by taids; 06-29-2004 at 12:08 PM.
 
Old 11-07-2004, 09:29 PM   #3
Nitrox
Member
 
Registered: Aug 2004
Location: Detroit.
Distribution: Slack 12.1 - Vector (exp)
Posts: 51

Rep: Reputation: 15
If you dont mind me asking...

What kind of FPS are you showing with glxgears on your IGP 320m ??
I'm actually getting less with 3d accelration enabled.
And its obvious. From 300 to 166.
 
Old 11-08-2004, 02:36 AM   #4
taids
Member
 
Registered: Jul 2003
Location: Wales, UK
Distribution: Slackware/Ubuntu/iWhax
Posts: 31

Original Poster
Rep: Reputation: 15
Goodness! This is an old thread!

I've recently installed dropline Gnome 2.8 and that completely broke my X install, complaining that certain modules in my X.org config didn't exist, and it couldn't find modules such as the keyboard (any idea?). This lead to me recompling XFree86 and installing that (which I normally have to do, since X.org doesn't support the 320m for DRI, aparently?)

I'm sure GLX gears was showing something like 900 FPS when DRI was working, but sadly, at the moment, it's broken again.

What config are you using with it? I mean modules, kernel, X build, etc.
 
Old 11-08-2004, 02:59 AM   #5
Nitrox
Member
 
Registered: Aug 2004
Location: Detroit.
Distribution: Slack 12.1 - Vector (exp)
Posts: 51

Rep: Reputation: 15
Thanks for responding.....

Ive tried numerous things for months.
What finally worked was a 2.4.26 kernel and a fresh install of Xorg 6.8.1.

AGPGART is compiled into the kernel.
Radeon is a module.
GLXinfo shows Direct rendering: yes.

Now when I install the new DRI snapshot .... radeon20041106-i386.tar.gz, I get
about 308 with glxinfo saying Direct rendering: no. Which to me means that
3d acceleration is disabled.

There are no errors in my Xorg.0.log that I can tell, except for the failure to recognize a
second screen. My xorg.conf has a few options, I tried with them and without.
Same results...

Section "Device"
Identifier "Video1"
Driver "radeon"
VendorName "ATI"
BoardName "Radeon Mobility U2"
VideoRam 65536
BusID "PCI:1:5:0"
Option "AGPMode" "4"
Option "DPMS"
Option "AGPFastWrite" "On"
Option "EnablePageFlip" "On"
EndSection
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 08:50 AM
Fullscreen Application Problems InSane103 Linux - Software 8 08-17-2004 11:57 PM
Mandrake Sound - Static, fading to no noise on VIA AC97 falconfighter Linux - Newbie 5 12-18-2003 07:06 AM
Taskbar Fading? cabrone Linux - Newbie 0 09-15-2003 07:21 PM
SDL-Quake, Segmentation fault, Fullscreen and LAN-problems... Jonthebest Linux - Software 0 09-13-2003 11:45 AM


All times are GMT -5. The time now is 10:26 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration