Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
r128 with HP w2408x not working well [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Thu Dec 04, 2008 4:05 pm    Post subject: r128 with HP w2408x not working well [solved] Reply with quote

Hello Everyone,

As the subject says, I am trying to get the Rage 128 drivers working with my 24" w2408h monitor, which supports a native resolution of 1920x1200 @ 60 Hz. The r128 documentation says that it only supports up to 1800x1440. This seems to be an odd resolution to me.

In any case, the most I can get out of X is a resolution of 800x600, which as you can imagine, the text is blurry :(

I've looked through the forums to try and find the correct modeline for my monitor, and haven't really found much.

I've tried using gtf to get a correct modeline, but the Xorg log file always tells me the vrefresh or hsync is out of range.

Ideas?

Thanks,
mw


Last edited by mw007 on Thu Dec 04, 2008 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Thu Dec 04, 2008 5:13 pm    Post subject: Reply with quote

Have you tried to run Xorg -configure? This usually does a good job at detecting the monitor ranges and your video card. Typically what I do is splice the Xorg -configure generated xorg.conf with one I do myself or generated through mkxf86config. Works pretty well in most situations where I have no idea the proper hardware settings.

If you think you have your xorg.conf set correctly, run xrandr to see what resolutions it lists. You can also try to run 'xrandr -s 1800x1440' to see if it will switch to the higher resolution.
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Thu Dec 04, 2008 7:36 pm    Post subject: Reply with quote

mike,

Yes the xorg.conf was generated with Xorg -configure. I tried xrandr, and it lists the minimum and maximum resolution as 800x600. I am really lost here.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Thu Dec 04, 2008 7:41 pm    Post subject: Reply with quote

What kernel version are you using? Perhaps the kernel driver is not well supported for your machine -- yet.
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Thu Dec 04, 2008 7:49 pm    Post subject: Reply with quote

I am using gentoo-sources-2.6.26-r2 and am using the xf86-video-r128 driver-6.8.0

Would you suggest using the in-kernel driver? I believe there is one...
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Thu Dec 04, 2008 7:50 pm    Post subject: Reply with quote

Oh, btw, this is a NewWorld G4, so it is pretty old. I would hope it would be supported by now?
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Thu Dec 04, 2008 7:53 pm    Post subject: Reply with quote

Wait a second, I just looked at my kernel config, and I see that I already have the r128 driver built as a module. How can I tell which one is being loaded by xorg. I should have two now, one from the kernel, and one from the xf86-video-r128 package...
Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Thu Dec 04, 2008 8:36 pm    Post subject: Reply with quote

Ok, got it working!

I removed the in-kernel driver and used the xf86-video-r128 package, then I used Xorgautoconfig and it worked!

For those that run into the same problems I had, here is my final xorg.conf:

Code:

### This file was generated by xac v0.6_pre3

Section "ServerLayout"
   Identifier   "XAC Configured"
   Screen      0 "Screen0" 0 0
   InputDevice   "Mouse0"   "CorePointer"
   InputDevice   "Keyboard0"   "CoreKeyboard"
EndSection

Section "Files"
   ### Multiple FontPath entries are allowed (which are concatenated
   ### together as well as specifying multiple comma-separated
   ### entries in one FontPath command (or both methods)
   ###
   ### For X Font Server support, uncomment this and comment the
   ### other FontPaths. (This is not required for most configurations)
   # FontPath   "unix/:-1"
   
   FontPath   "/usr/share/fonts/100dpi"
   FontPath   "/usr/share/fonts/Type1"
   FontPath   "/usr/share/fonts/ttf-bitstream-vera"
   FontPath   "/usr/share/fonts/75dpi"
   FontPath   "/usr/share/fonts/misc"
EndSection

Section "Module"
   Load      "extmod"
   Load      "dbe"
   Load      "record"
   Load      "glx"
   Load      "type1"
   Load      "freetype"
   Load      "dri"
EndSection

Section "ServerFlags"
   Option      "blank time"   "10"   # 10 Minutes
   Option      "standby time"   "20"   # 20 Minutes
   Option      "suspend time"   "30"   # 30Minutes
   Option      "off time"   "60"   # 60Minutes
   ### Uncomment so X doesn't fail when no mouse is available
   # Option      "AllowMouseOpenFail"   "true"
   ### Enable this option if X should not change resolutions
   ### This is useful if mode changing corrupts the X Server
   # Option      "DisableVidModeExtensions"   "true"
EndSection

Section "InputDevice"
   Identifier   "Keyboard0"
   Driver      "kbd"
   ### Check /usr/share/X11/xkb/rules/xorg.lst for available models
   Option      "XkbdModel"      "pc105"
   ### Check /usr/share/X11/xkb/symbols/ for available layouts
   Option      "XkbLayout"      "us"
   Option      "XkbOptions"      "compose:rwin"
EndSection

Section "InputDevice"
   Identifier   "Mouse0"
   Driver      "mouse"
   Option      "Device"      "/dev/input/mice"
   Option      "Protocol"      "auto"
   
   ### Set driver options:
   ### No options set!
   
   ### Unset driver options:
   ### No options unset!
EndSection

Section "Device"
   Identifier   "Card0"
   Driver      "r128"
   ### Configured ATY Rage128 at PCI Bus ID:
   # BusID      "PCI:0:16:0"


   
   ### Set driver options:
   #################################################
   Xorgautoconfig had originally created a "parsing error" here by
   leaving out the second double-quote after the DMAForXv.

   I simply added it, and all was well ;-)
   #################################################
   Option      "DMAForXv"   "true"   # Uses DMA for smoother playback, but could be unstable




   
   ### Unchanged, default driver options:
   # Option      "Display"   "FP"   # Set the display type: FP, CRT or Mirror
   # Option      "NoAccel"   "false"   # Disables ALL hardware acceleration
   # Option      "SWcursor"   "false"   
   # Option      "UseFBDev"   "true"   # Try disabling this if it does not work
   
   ### See "man r128" for more information and options
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   UseModes   "Modes0"
   ModelName   "HP w2408"
   Option      "DPMS"
   Option      "ReducedBlanking"
   HorizSync   24-94
   VertRefresh   48-85
EndSection

Section "Modes"
   Identifier   "Modes0"
   ### # 1920x1200 59.95 Hz (CVT 2.30MA-R) hsync: 74.04 kHz; pclk: 154.00 MHz
   Modeline "1920x1200"  154.00  1920 1968 2000 2080  1200 1203 1209 1235 +hsync -vsync
   ### # 720x400 59.55 Hz (CVT) hsync: 24.83 kHz; pclk: 22.25 MHz
   Modeline "720x400"   22.25  720 744 808 896  400 403 413 417 -hsync +vsync
   ### # 256x341 59.09 Hz (CVT) hsync: 21.09 kHz; pclk: 6.75 MHz
   Modeline "256x341"    6.75  256 264 288 320  341 344 354 357 -hsync +vsync
EndSection

Section "Screen"
   Identifier   "Screen0"
   Device      "Card0"
   Monitor      "Monitor0"
   DefaultDepth   24

   SubSection "Display"
      Depth   8
      Virtual   1920 1200
      Modes   "1920x1200" "720x400" "640x480" "640x480" "800x600" "720x400" "720x400" "640x480" "640x480" "800x600" "256x341"
   EndSubSection

   SubSection "Display"
      Depth   16
      Virtual   1920 1200
      Modes   "1920x1200" "720x400" "640x480" "640x480" "800x600" "720x400" "720x400" "640x480" "640x480" "800x600" "256x341"
   EndSubSection

   SubSection "Display"
      Depth   24
      Virtual   1920 1200
      Modes   "1920x1200" "720x400" "640x480" "640x480" "800x600" "720x400" "720x400" "640x480" "640x480" "800x600" "256x341"
   EndSubSection


EndSection

Section "DRI"
   Group 0
   Mode 0666
EndSection


Back to top
View user's profile Send private message
mw007
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 260

PostPosted: Thu Dec 04, 2008 8:37 pm    Post subject: Reply with quote

mike,

Thanks for your help! You definitely pointed me in the right direction with the in-kernel option :D
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3221

PostPosted: Thu Dec 04, 2008 9:14 pm    Post subject: Reply with quote

mw007 wrote:
mike,

Thanks for your help! You definitely pointed me in the right direction with the in-kernel option :D
No problem, glad to hear it's working... although you did all the hard work :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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