Subject: Re: Anyone compiling X on NetBSD-current ?
To: None <current-users@netbsd.org>
From: Wolfgang Rupprecht <wolfgang+gnus20020419T093733@wsrcc.com>
List: current-users
Date: 04/19/2002 09:58:59
tron@zhadum.de (Matthias Scheler - Sun Germany - Solaris Development Engineer) writes:
> In article <x71yde9p04.fsf@capsicum.wsrcc.com>,
> Wolfgang Rupprecht <wolfgang+gnus20020417T110116@wsrcc.com> writes:
> > I just built it and can report that it doesn't work for me. The X
> > server loops wildly in it's configuration routines, chewing
> > up 100% of the CPU.
>
> I've imported the latest fixes for the MGA driver from the XFree86 sources
> a few minutes ago. Please update your X11 sources in the directory
> "xsrc/xfree/xc/programs/Xserver/hw/xfree86/drivers/mga", rebuild the
> server and try again.
Just a quick followup for the archives. Matthias's fixes along with
playing with the /etc/X11/XF86Config did the trick.
One thing to note is that the new 4.2.0 XFree86 does not output as
much to /var/log/xdm-errors as the previous one. One now has to look
at /var/log/XFree86.0.log for the full probing/initialization
transcript.
Another thing to watch for is stale modules in /usr/X11R6/lib/modules.
I finally ended up doing a
find /usr/X11R6/lib/modules -mtime +10 -print | xargs rm
Upgrading the /etc/X11/XF86Config file has some pitfalls to watch out
for. I started off with the file created by "XFree86 -config" and
then added some select lines by hand. One has to be very careful not
to add any xf4.1.0-specific settings. One of the keyboard settings
that I moved from the 4.1.0 config caused my keyboard to stop working.
I'm still not sure what to do about some of the old 4.1.0 settings
suck as:
Section "Module"
...
Load "type1"
Load "freetype"
-wolfgang
--
Wolfgang Rupprecht <wolfgang+gnus@dailyplanet.wsrcc.com>
http://www.wsrcc.com/wolfgang/
Coming soon: GPS mapping tools for Open Systems. http://www.gnomad-mapping.com/
Just to save some other folks the trouble of rediscovering some nice
optional settings, here is my diff from the default ~/XF86Config.new:
--- /home/wolfgang/XF86Config.new.~1~ Fri Apr 19 00:36:18 2002
+++ /etc/X11/XF86Config Fri Apr 19 09:53:29 2002
@@ -1,8 +1,27 @@
+###############################################################################
+## ##
+## File: XF86Config ##
+## Author: Wolfgang Rupprecht <wolfgang@capsicum.wsrcc.com> ##
+## Created: Wed Jan 3 00:07:53 PST 2001 ##
+## Contents: mga400 and hitachi 803 supreme (capsicum)
+## ##
+## Copyright (c) 2001 Wolfgang Rupprecht. ##
+## All rights reserved. ##
+## ##
+## $Id$ ##
+###############################################################################
+
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
+
+ # added these next 4 -wsr
+ Option "blank time" "10" # 10 minutes
+ Option "standby time" "20"
+ Option "suspend time" "30"
+ Option "off time" "60"
EndSection
Section "Files"
@@ -29,6 +48,8 @@
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
+# added this next one -wsr
+ Option "XkbModel" "pc104"
EndSection
Section "InputDevice"
@@ -36,6 +57,9 @@
Driver "mouse"
Option "Protocol" "wsmouse"
Option "Device" "/dev/wsmouse0"
+# added these next two -wsr
+ Option "Buttons" "5"
+ Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
@@ -43,6 +67,10 @@
Identifier "Monitor0"
VendorName "HTC"
ModelName "abea"
+# added these next two by hand -wsr
+ HorizSync 31-115
+ VertRefresh 50-160
+
Option "DPMS"
EndSection
@@ -90,6 +118,9 @@
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
+# added this next one -wsr
+ DefaultDepth 24
+
SubSection "Display"
Depth 1
EndSubSection
@@ -107,6 +138,9 @@
EndSubSection
SubSection "Display"
Depth 24
+# added these next two -wsr
+# Modes "1600x1280" "2048x1536"
+ Modes "1600x1200" "2048x1536"
EndSubSection
EndSection