# File written by nelson@santafe.edu, modified from XFree86 3.1.1 default # File modified by whitis@freelabs.com # This file was prepared to work on a NEC Versa P (C&T65545) # displaying to its internal LCD (800x600x8), and secondarily to work # on a Sony Multiscan 15sf. # XFree86 3.1.1 barely supports the C&T655xx, this doesn't work too well. # Only clocks available are 25.2 and 28.3 # # Copyright (c) 1994 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. # # ********************************************************************** # Refer to the XF86Config(4/5) man page for details about the format of # this file. # ********************************************************************** # ********************************************************************** # Files section. This allows default font and rgb paths to be set # ********************************************************************** 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/X11R6/lib/X11/rgb" # Multiple FontPath entries are allowed (which are concatenated together), # as well as specifying multiple comma-separated entries in one FontPath # command (or a combination of both methods) # # If you don't have a floating point coprocessor and emacs, Mosaic or other # programs take long to start up, try moving the Type1 and Speedo directory # to the end of this list (or comment them out). # FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" EndSection # ********************************************************************** # Server flags section. # ********************************************************************** Section "ServerFlags" # Uncomment this to cause a core dump at the spot where a signal is # received. This may leave the console in an unusable state, but may # provide a better stack trace in the core dump to aid in debugging # NoTrapSignals # Uncomment this to disable the server abort sequence # This allows clients to receive this key event. # DontZap # Uncomment this to disable the / mode switching # sequences. This allows clients to receive these key events. # DontZoom EndSection # ********************************************************************** # Input devices # ********************************************************************** # ********************************************************************** # Keyboard section # ********************************************************************** Section "Keyboard" Protocol "Standard" # when using XQUEUE, comment out the above line, and uncomment the # following line # Protocol "Xqueue" AutoRepeat 500 5 # Let the server do the NumLock processing. This should only be required # when using pre-R6 clients # ServerNumLock # Specifiy which keyboard LEDs can be user-controlled (eg, with xset(1)) # Xleds 1 2 3 # To set the LeftAlt to Meta, RightAlt key to ModeShift, # RightCtl key to Compose, and ScrollLock key to ModeLock: LeftAlt Meta RightAlt ModeShift # RightCtl Compose # ScrollLock ModeLock EndSection # ********************************************************************** # Pointer section # ********************************************************************** Section "Pointer" Protocol "PS/2" Device "/dev/mouse" # When using XQUEUE, comment out the above two lines, and uncomment # the following line. # Protocol "Xqueue" # Baudrate and SampleRate are only for some Logitech mice # BaudRate 9600 # SampleRate 150 # Emulate3Buttons is an option for 2-button Microsoft mice Emulate3Buttons # ChordMiddle is an option for some 3-button Logitech mice # ChordMiddle EndSection # ********************************************************************** # Monitor section # ********************************************************************** # Any number of monitor sections may be present Section "Monitor" Identifier "C&T Laptop" VendorName "C&T" ModelName "Cirrus Vision" # Bandwidth is in MHz unless units are specified Bandwidth 110 # HorizSync is in kHz unless units are specified. # HorizSync may be a comma separated list of discrete values, or a # comma separated list of ranges of values. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S # USER MANUAL FOR THE CORRECT NUMBERS. HorizSync 20-64 # HorizSync 30-64 # multisync # HorizSync 31.5, 35.2 # multiple fixed sync frequencies # HorizSync 15-25, 30-50 # multiple ranges of sync frequencies # VertRefresh is in Hz unless units are specified. # VertRefresh may be a comma separated list of discrete values, or a # comma separated list of ranges of values. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S # USER MANUAL FOR THE CORRECT NUMBERS. VertRefresh 25-140 # Modes can be specified in two formats. A compact one-line format, or # a multi-line format. # These two are equivalent # ModeLine "1024x768i" 45 1024 1048 1208 1264 768 776 784 817 Interlace # Mode "1024x768i" # DotClock 45 # HTimings 1024 1048 1208 1264 # VTimings 768 776 784 817 # Flags "Interlace" # EndMode # This is a set of standard mode timings. Modes that are out of monitor spec # are automatically deleted by the server (provided the HorizSync and # VertRefresh lines are correct), so there's no immediate need to # delete mode timings (unless particular mode timings don't work on your # monitor). With these modes, the best standard mode that your monitor # and video card can support for a given resolution is automatically # used. ### First, a bunch of attempted hacks by Nelson. # Some of these are probably not a good thing to try to use, mostly # here for history. Note that we have four clocks available: 25.2, # 28.3, 40.0, and 65.0 For the CT65545, 40.0 is only available if LCD # is off, and 65.0 is only available if you've managed to program the # chipset that way somehow (XFree86 3.1.2 can't do it). # ModeLine "1152x900" 65.0 1152 1152 1368 1400 900 912 929 945 # ModeLine "1024x768" 65.0 1024 1080 1120 1344 768 771 777 806 # from modeDB.txt, some Tatung monitor. Doesn't work for me. # ModeLine "1024x768" 65 1024 1152 1184 1360 768 766 772 806 # an attempt to do 1024x768 on a 40MHz dot clock. Doesn't work, interlace? # ModeLine "1024x768" 40.00 1024 1048 1096 1184 768 768 769 788 # various modes that are bigger than 800x600, but less than 1024x768. # these are awfully hackish. # ModeLine "800+600" 28.3 1024 1064 1144 1288 600 600 602 636 # ModeLine "800+600" 65.0 880 910 1000 1100 680 682 700 712 # ModeLine "800+600" 40.0 880 910 1000 1100 680 682 700 712 # various 800x600 #ModeLine "800x600" 28.3 800 816 856 920 600 600 601 618 # ModeLine "800x600" 65.0 800 840 920 1064 600 600 602 636 # ModeLine "800x600" 40.00 800 824 872 960 600 600 601 625 # 704x600: known to work without (some) C&T655xx sync problems. Bogus # values for sync (use only on LCD) # Modeline "704x600" 28.3 704 704 704 704 600 600 600 600 ### Now, my current recommended mode lines. A combination of what ### works, what xconfig.awk says, and what modeDB.txt suggests # from modeDB.txt, a VESA standard # ModeLine "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync # modified from VESA standard to move image to the left. # this mode will cause your display to go all screwy if the LCD # is enabled and may damage the LCD. It will also hang things up # so your only recorse is an immediate power-off #ModeLine "1024x768" 65 1024 1064 1208 1344 768 771 777 806 -hsync -vsync #ModeLine "800x600" 65.0 800 840 920 1064 600 600 602 636 # 640x480: works. Modeline "640x480" 28.3 640 664 760 800 480 491 493 525 # from modeDB.txt # Modeline "640x480" 28.322 640 680 720 864 480 488 491 521 # modeline someone suggested for versa 4050H/4080H 800x600 mode # note: requires hitting lcd/crt key multiple times (fn-F3) Modeline "800x600" 40 800 848 1000 1056 600 605 607 633 EndSection # ********************************************************************** # Graphics device section # ********************************************************************** # Any number of graphics device sections may be present # Standard VGA Device: Section "Device" Identifier "Generic VGA" VendorName "Unknown" BoardName "Unknown" Chipset "generic" # VideoRam 256 # Clocks 25.2 28.3 EndSection Section "Device" Identifier "Laptop" VendorName "Chips & Technology" BoardName "Cirrus Vision" Chipset "ct65545" VideoRam 1024 Option "fix_panel_size" Option "use_modeline" # Clocks 25.2 28.3 65.0 EndSection # Sample Device for accelerated server: # Section "Device" # Identifier "Actix GE32+ 2MB" # VendorName "Actix" # BoardName "GE32+" # Ramdac "ATT20C490" # Dacspeed 110 # Option "dac_8_bit" # Clocks 25.0 28.0 40.0 0.0 50.0 77.0 36.0 45.0 # Clocks 130.0 120.0 80.0 31.0 110.0 65.0 75.0 94.0 # EndSection # Device configured by xf86config: # ********************************************************************** # Screen sections # ********************************************************************** # The Colour SVGA server Section "Screen" Driver "svga" # Use Device "Generic VGA" for Standard VGA 320x200x256 Device "Laptop" Monitor "C&T Laptop" Subsection "Display" Depth 8 # Omit the Modes line for the "Generic VGA" device Modes "1024x768" "800+600" "800x600" "704x600" "640x480" ViewPort 0 0 # Use Virtual 320 200 for Generic VGA Virtual 0 0 EndSubsection Subsection "Display" Depth 16 Modes "640x480" "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection Subsection "Display" Depth 32 Modes "640x400" ViewPort 0 0 Virtual 640 400 EndSubsection EndSection # The 16-color VGA server Section "Screen" Driver "vga16" Device "Generic VGA" Monitor "C&T Laptop" Subsection "Display" Modes "640x480" "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection EndSection # The Mono server Section "Screen" Driver "vga2" Device "Generic VGA" Monitor "C&T Laptop" Subsection "Display" Modes "640x480" "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection EndSection # The accelerated servers (S3, Mach32, Mach8, 8514, P9000, AGX, W32, Mach64) Section "Screen" Driver "accel" Device "Laptop" Monitor "C&T Laptop" Subsection "Display" Depth 8 Modes "640x480" "800x600" "808x600" "1024x768" ViewPort 0 0 Virtual 1152 900 EndSubsection Subsection "Display" Depth 16 Modes "640x480" "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection Subsection "Display" Depth 32 Modes "640x400" ViewPort 0 0 Virtual 640 400 EndSubsection EndSection