Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Inverted video colors using GXT4500 on an IBM RS6000
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
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Sat May 17, 2008 1:07 pm    Post subject: Inverted video colors using GXT4500 on an IBM RS6000 Reply with quote

Does anyone know why the colors are inverted in X on the GXT4500 card on an IBM. It doesn't invert in non X terminals only the gui.

It actually looks OK other than having the wrong colors. It does offset to the left a little, but does that all the time. I don't know if these things can be fixed in the xorg.conf file or not.

I'm typing this from firefox in a generic X window. I do need to adjust the resolution for my flat screen.

I've messed around long enough. It's time to get the gui going on one of these things and get rid of the others.
_________________
Greg
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7190
Location: almost Mile High in the USA

PostPosted: Mon May 19, 2008 7:41 pm    Post subject: Reply with quote

What do you mean 'inverted'?

Does your monitor have discrete RGB signals, and if so, are the wires hooked up correctly? One possible thing is that the red/blue signals are swapped, white and green text would show up fine but blue/red would be really out of whack...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Mon May 19, 2008 8:05 pm    Post subject: Reply with quote

It does appear to be a red and blue swap. Green seems to be normal. The video card is currently using a dvi connection with an adapter to a vga input to the monitor. My PC is using the dvi input. I think I was having the same problem when I did actually have it connected to the dvi input of the monitor.
_________________
Greg
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Mon Jun 02, 2008 4:15 pm    Post subject: Reply with quote

try adding

Code:

Option      "UseFBDev" "true"


to the device section. My xorg.conf looks like this:

Code:

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/75dpi"
   FontPath   "/usr/share/fonts/100dpi"
   FontPath   "/usr/share/fonts/misc"
   FontPath   "/usr/share/fonts/default/ghostscript"
   FontPath   "/usr/share/fonts/ttf-bitstream-vera"
   FontPath   "/usr/share/fonts/Type1"
   FontPath   "/usr/share/fonts/terminus"
   FontPath   "/usr/share/fonts/aquafont"
   FontPath   "/usr/share/fonts/aquapfont"
   FontPath   "/usr/share/fonts/dejavu"
   FontPath   "/usr/share/fonts/proggy-fonts"
   FontPath   "/usr/share/fonts/corefonts"
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
EndSection

Section "InputDevice"
   Identifier   "Keyboard0"
   Driver      "kbd"
   Option      "XkbdModel"      "pc105"
   Option      "XkbLayout"      "de"
   Option      "XkbOptions"      "compose:rwin"
EndSection

Section "InputDevice"
   Identifier   "Mouse0"
   Driver      "mouse"
   Option      "Device"      "/dev/input/mice"
   Option      "Protocol"      "auto"
EndSection

Section "Device"
   Identifier   "Card0"
   Driver      "mga"
   # Wrong colors if not using fbdev
   Option      "UseFBDev" "true"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   UseModes   "Modes0"
   ModelName   "MATROX"
   Option      "DPMS"
   HorizSync   30-130
   VertRefresh   50-160
EndSection

Section "Modes"
   Identifier   "Modes0"
   ### Framebuffer   D: 110.0110 MHz, H: 64.25876 kHz, V: 60.96656 Hz
   Modeline   "1280x1024" 110.011 1280 1328 1512 1712   1024 1025 1028 1054 -HSync -VSync
EndSection

Section "Screen"
   Identifier   "Screen0"
   Device      "Card0"
   Monitor      "Monitor0"
   DefaultDepth   24
   SubSection "Display"
      Depth   24
      Modes   "1280x1024"
   EndSubSection
EndSection

Section "DRI"
   Group 0
   Mode 0666
EndSection
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Mon Jun 02, 2008 4:28 pm    Post subject: Reply with quote

Quote:
Section "Device"
Identifier "Card0"
Driver "mga"
# Wrong colors if not using fbdev
Option "UseFBDev" "true"
EndSection


I assume I will not be using Driver "mga". I'm currently using fbdev. Would I still need the Option statement?
_________________
Greg
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Wed Jun 04, 2008 7:41 pm    Post subject: Reply with quote

no, fbdev should "just work". I think you have found another bug... :-/
Back to top
View user's profile Send private message
sethstorm
n00b
n00b


Joined: 07 May 2005
Posts: 3

PostPosted: Wed Jun 25, 2008 10:01 am    Post subject: Reply with quote

Update: I've reported this on gentoo's bugzilla

Are you running Xorg 7.2 from the 2008.0 beta? I've had the same issue and toggling UseFBDev had no effect.

Possible solution:
It seems to be solvable by a direct swap of the libfbdevhw.so file in /usr/lib/xorg/modules/linux/ from xorg 7.1. If you can go back to 7.1, it should work - just see if you can build just that driver from 7.1, copying the generated libfbdevhw.so.

Copying over libfbdevhw from another (identical) system would do the job, but it's more of a quick fix.



As for your flatpanel:
If it's a 1680x1050 flatpanel, you might have some luck in 7.2 with this snippet for /etc/fb.modes:

Code:

mode "1680x1050-58"
    # Generated by gtf
    # PCLK: 141.09 MHz, H: 62.99 kHz, V: 58.00 Hz
    geometry 1680 1050 1680 1050 32
    timings 7088 280 104 32 1 176 3
    hsync low
    vsync high
endmode

All you have to do is use fbset -a 1680x1050-58 (omit the -a if you want it only on one terminal). Then launch Xorg as usual. It should fill up the screen.


For reference, here's my xorg.conf that I used. This should work with Xorg 7.2, even with the driver swap.
Code:

# **********************************************************************
# Refer to the xorg.conf(5x) man page for details about the format of
# this file.
# **********************************************************************

Section "Module"
    Load        "dbe"   # Double buffer extension
    Load        "damage"
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "freetype"
    Load       "glx"
EndSection


Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

#    RgbPath    "/usr/share/X11/rgb"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/Type1/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/75dpi/"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc101"
    Option "XkbLayout"  "us"
    Option "XkbVariant" "us"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "PS/2" # PS/2 Mouse
    Option "Device"      "/dev/input/mice"
EndSection

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 64.3
    VertRefresh 50-70
    Modeline "1280x1024"  89.38  1280 1352 1488 1696  1024 1025 1028 1054  -HSync +Vsync
    Modeline "1400x1050"  122.00  1400 1488 1640 1880  1050 1052 1064 1082 +Hsync +Vsync
    Modeline "1600x1200"  160.96  1600 1704 1880 2160  1200 1201 1204 1242 +HSync +Vsync
    Modeline "1680x1050"  147.14  1680 1784 1968 2256  1050 1051 1054 1087 +HSync +Vsync
EndSection

Section "Device"
    Identifier  "GXT4500"
    Driver      "fbdev"
    Option "UseFBDev" "False"
    Option "ShadowFB" "True"
    VideoRam  131072
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "GXT4500"
    Monitor     "My Monitor"
    DefaultDepth 24
    DefaultFbBpp 32
    Subsection "Display"
        Depth       8
        Modes       "1600x1200"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1600x1200"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1600x1200"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

_________________
44P-270 (GXT6500P, 15.5GB memory)
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Sun Aug 03, 2008 1:52 pm    Post subject: Reply with quote

I tried the xorg.conf file. It still didn't work. Perhaps it's because I'm connecting with a vga adapter?

The DVI is being taken by the PC.
_________________
Greg
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Mon Sep 15, 2008 12:24 am    Post subject: Reply with quote

I played around with the settings listed in sethstorms's xorg.conf file. I did finally get 1680x1050 working, but I still have the wrong colors. I guess I'll keep testing different settings and maybe different versions of xorg until I get the right ones.
_________________
Greg
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 234
Location: Arkansas

PostPosted: Sun Oct 26, 2008 1:20 pm    Post subject: Reply with quote

I finally got X to start up in 1680x1050. I guess each monitor has its own special settings. Here are the lines I put on xorg.conf to get it to work.

Code:
Section "Monitor"
    Identifier  "My Monitor"
    DisplaySize 473.76 296.1
    HorizSync   30-81
    VertRefresh 56-75
    Option "DPMS"
    ModeLine "1680x1050"  141.00  1680 1784 1960 2240  1050 1051 1054 1086 +hsync +vsync -csync
EndSection

and
Code:
Section "Screen"
    Identifier  "Screen 0"
    Device      "GXT4500"
    Monitor     "My Monitor"
    DefaultDepth 24
    DefaultFbBpp 32
    Subsection "Display"
        Depth       24
        Modes       "1680x1050"
        ViewPort    0 0
    EndSubsection
EndSection


For my next trick, I'll get 1440x900-75 to work.

I've given up on getting the colors right for now.
_________________
Greg
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