External monitor on powerbook G4

Stefan Bruda yellowdog-general@lists.terrasoftsolutions.com
Wed Oct 22 09:12:03 2003


At 08:55 -0400 on 2003-10-22 Andrei Smirnov wrote:
 >
 > On Wed, 22 Oct 2003, Stefan Bruda wrote:
 > 
 > > At 00:16 -0400 on 2003-10-22 Andrei Smirnov wrote:
 > > 
 > > In all, it seems to be a matter of XFree86 rather than kernel.
 > 
 > I agree. When I run it under native MacOS 10 it actually autodetects 
 > external connections and resets the display setups (resolution, etc.) 
 > automatically. I tried just to restart with XF86Config resolution changed 
 > to 800x640, but it threw up garbage on the screen. It looks like it likes 
 > its native "1280x854" above anything else. Regarding this, I wonder how 
 > can I change the LCD monitor settings to something more acceptable to the 
 > external CRTs?

There is code for resolution changes in the benh kernels since
2.4.20-ben8 (I think).  Trouble is, this is done differently in OS X
(the low resolution screen continues to fill the whole LCD with the
benh kernel).  There is in the radeon manual page the option
"CloneMode" which allows you to provide a different modeline to the
cloned display (i.e., the external monitor), sounds promising.
Unfortunately, I do not have an external monitor at hand to check it
out right now, so it'll have to wait.

Again, keep in mind that I am working with a development snapshot of
XFRee86 (which I seem to have read that incorporates some Radeon
fixes) so things may be different in the stock 4.3.0.

Irony is that mirroring did work with XFree86 4.2.something and is no
longer working with a more recent version...

 >  An example of XF86Config would be appreciated.

Umm, mine probably does not do any good (since the problem is not
solved) but I am including it below in case it helps.

Stefan

P.S.  Oops, I just now realize that this thread is going to
yellowdog-devel, whilst I believe that it should be on
yellowdog-general; so I am copying this messages on both.

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't. That's logic.
    --Lewis Carroll, Through the Looking-Glass

------ XF86Config begins here ------
# XF86Config-4 (XFree86 server configuration file) by the
# Yellow Dog Linux installation tool and Stefan Bruda.

Section "ServerLayout"
        Identifier   "XFree86 Configured"
        Screen       0  "Normal screen" 0 0
        InputDevice  "Mouse0" "CorePointer"
        InputDevice  "Keyboard0" "CoreKeyboard"
EndSection
          
Section "ServerFlags"
        Option "DontZoom" "false"
        # DPMS:
        Option  "BlankTime" "5"
        Option  "StandbyTime" "0"
        Option  "SuspendTime" "0"
        Option  "OffTime" "30"
EndSection

Section "Files"

        # ModulePath set to "/usr/X11R6/lib/modules"
        # ModulePath  "/usr/local/X11R6/lib/modules"

# 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/X11R6/lib/X11/rgb"
        # RgbPath          "/usr/local/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, YDL 2.0 and later now use a font server independent of
# the X server to render fonts.

       ## Use font server:
       FontPath  "unix/:7100"   # local font server

       ## Use fonts directly:
#       FontPath  "/usr/share/fonts/mstt"
#       FontPath  "/usr/lib/X11/fonts/misc:unscaled"
#       FontPath  "/usr/lib/X11/fonts/75dpi/:unscaled"
#       FontPath  "/usr/lib/X11/fonts/100dpi/:unscaled"
#
#       FontPath  "/usr/share/fonts/default/TrueType"
#       FontPath  "/usr/share/fonts/default/Type1"
#       FontPath  "/usr/lib/X11/fonts/Type1"
#       FontPath  "/usr/lib/X11/fonts/Speedo"
#       FontPath  "/usr/lib/X11/fonts/cyrillic"
#
#       FontPath  "/usr/lib/X11/fonts/misc"
#       FontPath  "/usr/lib/X11/fonts/75dpi"
#       FontPath  "/usr/lib/X11/fonts/100dpi"

       # FontPath  "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
       # FontPath  "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
       # FontPath  "/usr/X11R6/lib/X11/fonts/latin2/75dpi"
       # FontPath  "/usr/X11R6/lib/X11/fonts/latin2/100dpi"
EndSection

Section "Module"
# Extensions
        Load  "dbe"
        Load  "extmod"
        Load  "record"
        Load  "xtrap"
# Video drivers
        Load  "ddc"
        Load  "vbe"
        Load  "int10"
# Font renderers
        Load  "bitmap"
        Load  "freetype"
        Load  "speedo"
        Load  "type1"
# DRM
        Load  "dri"
        Load  "drm"
        Load  "glx"
        Load  "GLcore"
EndSection

Section "InputDevice"
        Identifier        "Keyboard0"
        Driver            "keyboard"

        Option  "Protocol"    "Standard"

        Option  "AutoRepeat"  "250 30"

        Option  "LeftAlt"     "Meta"
        Option  "RightAlt"    "Meta"
        Option  "ScrollLock"  "Compose"
        Option  "RightCtl"    "Control"

        # XkbModel no longer used in XF 4.1.0
        #Option "XkbModel"    "macintosh"
        Option  "XkbLayout"   "us"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "ZAxisMapping" "4 5"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/mouse"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Apple"
        ModelName    "New Titanium LCD"

        Option       "DPMS"
        HorizSync    30-130
        VertRefresh  50-160

        # (modes no longer needed)
        #UseModes     "Modes0"
EndSection

Section "Device"
        Identifier  "Radeon"
        Driver      "radeon"
        #BusID      "PCI:0:16:0"

        Option      "UseFBDev"
        Option      "AGPMode"  "4"
 
        Option "AGPFastWrite"
        Option "EnablePageFlip"

        # (tweakable for the mirroring)
        #Option "CloneDisplay" "2"
        #Option "CloneMode" "800x600 ... " (modeline here)
        #Option "DDCMode"
EndSection

Section "Screen"
        Identifier "Normal screen"
        Device     "Radeon"
        Monitor    "Monitor0"
        DefaultDepth   24
        #DefaultFbBpp  32        
        SubSection "Display"
                Depth    8
                Modes    "1280x854" "1152x768" "1152x864" "1024x768" "800x600"
                Virtual  1280 854
        EndSubSection                                  
        SubSection "Display"                           
                Depth    16                     
                Modes    "1280x854" "1152x768"  "1152x864" "1024x768" "800x600"
                Virtual  1280 854
        EndSubSection                                  
        SubSection "Display"                           
                Depth    24                     
                Modes    "1280x854" "1152x768"  "1152x864" "1024x768" "800x600"
                Virtual  1280 854
        EndSubSection
EndSection

Section "DRI"
        Mode 0666
EndSection


------ XF86Config ends here ------