Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
force X to use lower resolution (for gaming ;-)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
espinosa
n00b
n00b


Joined: 27 Aug 2002
Posts: 3

PostPosted: Mon Sep 23, 2002 8:45 pm    Post subject: force X to use lower resolution (for gaming ;-) Reply with quote

My Dell C600 laptop works XFree well in 1024x786
But I would like to get LOWER resolution 640x480 in some occasions.
I would like to play TuxRacer fullscreen ;-)

But whatever I do with XF86Config-4, (setting modelines directly, restricting Modes in display subsection to only one resolution, to 640x480, ad so on) still X starts only in 1024x786. And worse yet, CTRL ALT +/- DOESN'T WORK! After pressing, nothing happens. It looks like, X select "smartly" only the best resolutin, whatever I write to config file.

I have a notebook keyboard only, with 'virtual' num-pad, but it wouldn't mind.

I append some (shorten) XF86Config-4 file and some /var/log messages:
Thanks' for any help.

Code:

Section "Module"
   Load  "GLcore"
   Load  "dbe"
   Load  "dri"
   Load  "extmod"
   Load  "glx"
   Load  "pex5"
   Load  "record"
   Load  "xie"
   Load  "v4l"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "keyboard"
   Option      "XkbLayout"   "us"
EndSection

Section "Monitor"
   Identifier "Generic LCD Panel 1024x768"
   VendorName "Unknown"
   ModelName  "Unknown"
   HorizSync 31.5-48.5
   VertRefresh 40-70

# I have also tried:
# 640x480@ 60 Hz, 31.5 kHz hsync
#Modeline  "640x480"  25.175 640  664 760  800 480  491 493  525

# 640x480 @ 72 Hz, 36.5 kHz hsync
#Modeline  "640x480"  31.5  640  680  720  864  480  488 491 521

EndSection

# commented lines are "standard settings"
# uncommented is force "640x480" version
#  .. but both ends up in 1024x786 only :((
Section "Screen"
   Identifier "Screen0"
   Device "ATI|Rage Mobility M3 AGP 2x"
   Monitor "Generic LCD Panel 1024x768"
   DefaultDepth 16
   #Subsection "Display"
   #   Depth 32
   #   Modes       "1024x786" "800x600" "640x480"
   #   Virtual      1024 768
   #   ViewPort   0 0
   #EndSubSection
   #Subsection "Display"
   #   Depth 24
   #   Modes       "1024x786" "800x600" "640x480"
   #   Virtual      1024 768
   #   ViewPort   0 0
   #EndSubSection
   #Subsection "Display"
   #   Depth 16
   #   Modes      "1024x786" "800x600" "640x480"
   #   Virtual      1024 768
   #   ViewPort   0 0
   #EndSubSection
   #Subsection "Display"
   #   Depth 8
   #   Modes "1024x786" "800x600" "640x480"
   #EndSubSection

   Subsection "Display"
      Depth 16
      Modes      "640x480"
   EndSubSection
EndSection


Code:

(II) Module vbe: vendor="The XFree86 Project"
   compiled for 4.2.0, module version = 1.0.0
   ABI class: XFree86 Video Driver, version 0.5
(II) R128(0): VESA BIOS detected
(II) R128(0): VESA VBE Version 2.0
(II) R128(0): VESA VBE Total Mem: 8192 kB
(II) R128(0): VESA VBE OEM: ATI MOBILE M3
(II) R128(0): VESA VBE OEM Software Rev: 1.0
(II) R128(0): VESA VBE OEM Vendor: ATI Technologies Inc.
(II) R128(0): VESA VBE OEM Product: M3 
(II) R128(0): VESA VBE OEM Product Rev: 01.00
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Reloading /usr/X11R6/lib/modules/libddc.a
(II) R128(0): VESA VBE DDC supported
(II) R128(0): VESA VBE DDC Level none
(II) R128(0): VESA VBE DDC transfer in appr. 2 sec.
(II) R128(0): VESA VBE DDC read failed
(==) R128(0): Using gamma correction (1.0, 1.0, 1.0)
(II) R128(0): Generic LCD Panel 1024x768: Using hsync range of 31.50-48.50 kHz
(II) R128(0): Generic LCD Panel 1024x768: Using vrefresh range of 40.00-70.00 Hz
(II) R128(0): Clock range:  12.50 to 250.00 MHz
(II) R128(0): Not using mode "640x480" (hsync out of range)
(II) R128(0): Not using mode "640x480" (hsync out of range)
(II) R128(0): Not using default mode "640x350" (vrefresh out of range)
(II) R128(0): Not using default mode "320x175" (bad mode clock/interlace/doublescan)
(II) R128(0): Not using default mode "640x400" (vrefresh out of range)
(II) R128(0): Not using default mode "320x200" (bad mode clock/interlace/doublescan)
(II) R128(0): Not using default mode "720x400" (no mode of this name)
(II) R128(0): Not using default mode "360x200" (bad mode clock/interlace/doublescan)
(II) R128(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
........
(II) R128(0): Not using default mode "1600x1024" (no mode of this name)
(II) R128(0): Not using default mode "800x512" (bad mode clock/interlace/doublescan)
(II) R128(0): Not using mode "640x480" (no mode of this name)
(--) R128(0): Virtual size is 1024x768 (pitch 1024)
(**) R128(0): Default mode "1024x768": 65.0 MHz, 48.4 kHz, 60.0 Hz
(II) R128(0): Modeline "1024x768"   65.00  1024 1048 1065 1344  768 770 776 806 -hsync -vsync
(==) R128(0): DPI set to (75, 75)
....
Back to top
View user's profile Send private message
espinosa
n00b
n00b


Joined: 27 Aug 2002
Posts: 3

PostPosted: Thu Sep 26, 2002 3:57 pm    Post subject: Solutin fonded! General solution for similar problems.. Reply with quote

So, I solved it by myself... (is there an emoticon for proud!?)
It can be considered to be a general solution for similar problems.
It's simple!
(..even if it can be considered a little bit hacking)

Put instead of "normal" values in XF86Config file, like this:
HorizSync 31.5-48.5
VertRefresh 40-70
some more extreme values like:
HorizSync 31.5 - 82.0
VertRefresh 30 - 160

...and let to X server to find the most suitable itself ;-)

Everything works for me now, X starts in 1024x768 and TuxRacer switch itself to 640x480 and restore hi-res back, after it finish.
Back to top
View user's profile Send private message
Ard Righ
Guru
Guru


Joined: 24 Jun 2002
Posts: 337
Location: Wellington, NZ

PostPosted: Fri Sep 27, 2002 6:59 am    Post subject: Reply with quote

I think you will find that the original problem was probably due to you restricting the monitor too much, and it was throwing a fit.

When you set the VertRefresh and HorizSync values, you should set them to the maximum that your monitor is capable of doing. Then X will have no problem switching resolutions.

Just make sure the new values you entered are actually supported by your monitor. You don't want X to automatically select a setting that will cause your monitor to get damaged :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum