Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 1999 11:27:40 -0600 (MDT)
From:      Colin Eric Johnson <colinj@cs.unm.edu>
To:        freebsd-mobile@freebsd.org
Subject:   adjusting X for LCD/external use
Message-ID:  <Pine.LNX.4.10.9908281112010.2766-100000@nobby.cs.unm.edu>

next in thread | raw e-mail | index | archive | help

I know that this isn't *EXACTLY* the right place to ask this question,
pointers to the correct place are appreciated.

I'm trying to get my X display to work with both the LCD and the external
video connector on my laptop. I'm not sure what I need to do to tweak the
XF86Config file to make this happen. Here's the behavior I get now:

If I attempt to switch the display from the internal LCD to the external
video when X is running the screen goes all swimmy and unreadable (like
some psychedelic screen saver gone wrong) and the only way to get back to
what I need is to kill X and then restart it. (this also happens when I
close the lid or suspend when X is running). I'm assuming that this isn't
a known bug with my laptop (Dell Lattitude CPi 266) but rather something
that I need to configure in X.

Attached is my X configuration as it stands right now. Does anyone have
any insight on tweaking X to work with both the internal and external
displays.

trurl 1 % uname -a
FreeBSD trurl 3.2-STABLE FreeBSD 3.2-STABLE #5: Mon Jul 12 16:51:19 MDT
1999     root@:/usr/src/sys/compile/TRURL  i386

vga0: <NeoMagic NM2160 laptop SVGA controller> rev 0x01 int a irq 11 on
pci0.2.0

Dell Lattitude CPi 266


Colin E. Johnson | colinj@unm.edu | http://www.unm.edu/~colinj/
". . .so I simply point to where I keep the soul I have, right by the
exit, just next to the blues." --Nick Hornby _High_Fidelity_

# XF86Config auto-generated by XF86Setup
#
# Copyright (c) 1996 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.
#

# See 'man XF86Config' for info on the format of this file

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

Section "ServerFlags"
EndSection

Section "Keyboard"
   Protocol        "Standard"
   XkbRules        "xfree86"
   XkbModel        "pc104"
   XkbLayout       "us"
EndSection

Section "Pointer"
   Protocol        "Microsoft"
   Device          "/dev/psm0"
   BaudRate        1200
   Emulate3Timeout 50
   Resolution      100
   Buttons         3
   Emulate3Buttons
EndSection

Section "Monitor"
   Identifier      "Primary Monitor"
   VendorName      "Unknown"
   ModelName       "Unknown"
   HorizSync       31.5-57.0
   VertRefresh     50-90
   Modeline  "1024x768"   75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
EndSection

Section "Device"
   Identifier      "Primary Card"
   VendorName      "Unknown"
   BoardName       "NeoMagic (laptop/notebook)"
#    Chipset    "NM2160"
#    IOBase     0xfea00000
#    MemBase    0xfd000000
#    VideoRam   2048
#    DacSpeed   90
#    Option     "linear"
#    Option     "nolinear"
#    Option     "sw_cursor"
#    Option     "hw_cursor"
#    Option     "no_accel"
    Option     "intern_disp"
    Option     "extern_disp"
#    Option     "mmio"
#    Option     "no_mmio"
#    Option     "lcd_center"
#    Option     "no_stretch"


EndSection

Section "Screen"
   Driver          "Accel"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   DefaultColorDepth 16
   SubSection "Display"
      Depth        8
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        15
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        16
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        24
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        32
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "SVGA"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   DefaultColorDepth 16
   SubSection "Display"
      Depth        8
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        15
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        16
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        24
      Modes        "1024x768"
   EndSubSection
   SubSection "Display"
      Depth        32
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "VGA16"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        4
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "VGA2"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        1
      Modes        "1024x768"
   EndSubSection
EndSection

Section "Screen"
   Driver          "Mono"
   Device          "Primary Card"
   Monitor         "Primary Monitor"
   SubSection "Display"
      Depth        1
      Modes        "1024x768"
   EndSubSection
EndSection



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.9908281112010.2766-100000>