Subject: Re: Re: Problem with Xorg and maybe wscons too?
To: Michael Lorenz <macallan@netbsd.org>
From: Marco Trillo <marcotrillo@gmail.com>
List: port-macppc
Date: 10/21/2006 21:22:56
Hi,

In case it helps, this (below) is the XF86Config I use in the eMac. I
use it in 1024x768@24 mode and works fine -- I haven`t tested the
800x600 mode.
I`ve got the ModeLines from some other config file for a eMac, I think
they were calculated with some automated configuration program or
calculator.

> I also tried to kill X and ended up
> with a psychedelic pattern over the entire screen. (over ssh this is).
> It's square dots in wave like patterns, a bit like an 80's fabric
> print maybe. And I get the console in it... all messed up, but it's
> there.

I get also this pattern when exiting X11, but the text displays in
white background so a simple "clear" will clean up the pattern and you
will get normal console black (although some minimal distortion
remains at the edges of the screen where no text is displayed).

Please note that when using wskbd0 in both the wscons wsdisplay0 and
the X server, it will detach from wsdisplay0 when the X server starts
in NetBSD-3 (not in NetBSD-2). You can reconnect it to wsdisplay0 and
everything will work fine (a simple re-plugging of the keyboard USB
cable will do it).

In NetBSD-3, without the iBookHacks the system will crash.
In NetBSD-2, it won`t crash but you will have no console screen
(although you can type commands and they will work, of course).
In fact, this will disconnect the eMac monitor, so it can be of use
for some things.

The XF86Config follows:
----------------------------------------------

# File generated by xf86config.

#
# Copyright (c) 1999 by The XFree86 Project, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# Except as contained in this notice, the name of the XFree86 Project shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from the
# XFree86 Project.
#

Section "Module"
    Load        "dbe"  	# Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
#    Load        "xtt"
# This loads the GLX module
#    Load       "glx"
# This loads the DRI module
#    Load       "dri"
EndSection

Section "Files"
    RgbPath	"/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
#    FontPath   "/usr/pkg/lib/X11/fonts/TTF/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
#    FontPath   "/usr/X11R6/lib/X11/fonts/freefont/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

#    ModulePath "/usr/X11R6/lib/modules"

EndSection

Section "ServerFlags"
#    Option "NoTrapSignals"
#    Option "DontVTSwitch"
#    Option "DontZap"
#    Option "Dont Zoom"
#    Option "DisableVidModeExtension"
#    Option "AllowNonLocalXvidtune"
#    Option "DisableModInDev"
#    Option "AllowNonLocalModInDev"
EndSection
Section "InputDevice"
    Identifier	"Keyboard1"
    Driver	"Keyboard"

    Option     "Protocol"      "wskbd"
    Option     "Device" "/dev/wskbd0"

    Option "AutoRepeat" "500 30"

    Option "XkbRules"	"xfree86"
    Option "XkbModel"	"pc105"
    Option "XkbLayout"	"es"

EndSection


Section "InputDevice"
    Identifier	"Mouse1"
    Driver	"mouse"
    Option "Protocol"    "wsmouse"
    Option "Device"      "/dev/wsmouse"
EndSection

Section "Monitor"
    Identifier  "Apple"

    HorizSync   30-112
    VertRefresh 50-160

ModeLine	"800x600" 112 800 816 824 840 600 616 624 640 -hsync -vsync

ModeLine	"1024x768" 100 1024 1108 1280 1408 768 768 780 796 +hsync +vsync

EndSection

Section "Device"
    Identifier	"Radeon"
    VendorName	"Unknown"
    BoardName	"Unknown"
    Driver     "ati"
    Option "iBookHacks" "true"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "Radeon"
    Monitor     "Apple"
    DefaultDepth 24

    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600"
        ViewPort    0 0
    EndSubsection
EndSection

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

# Section "DRI"
#    Mode 0666
# EndSection