my life

day to day

Archive for June 15th, 2005

SiS + Debian

Wednesday, June 15th, 2005

Debian’s SiS drivers are by default out of date. The most current drivers can be obtained by adding a new source to /etc/apt/sources.list

 
deb http://www.winischhofer.net/sis/debian/unstable ./
deb-src http://www.winischhofer.net/sis/debian/unstable ./
apt-get install sisctrl x-driver-sis

After installing, make sure to use a SiS X11 configuration. See associated posting.

add to del.icio.us    add to technorati favs   email this

SiS DualHead Configuration

Wednesday, June 15th, 2005
# XF86Config-4 (XFree86 X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 >/var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "PS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
#Section "Device"
#    Identifier "Generic Video Card"
#    Driver "sis"
#    Option "ForceCRT1Type" "LCD"
#    Option "ForceCRT2Type" "SVIDEO"
#    Option "SISTVAntiFlicker" "OFF"  "ADAPTIVE"
#    Option "CHTVOverscan" "TRUE"
#    Option "TVStandard" "NTSC"
#    Option "XvOnCRT2" "TRUE"
#    Option "HWcursor"
#    Option "EnableSiSCtrl" "yes"
#    VideoRam 65536
#EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "@@@:0000"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

#
# In Dual Head mode, this "Monitor" section is only used
# for CRT2. A second one, for CRT1, is added below.
# "Monitor" section

Section "Monitor"
Identifier "@@@:0000"
# VertRefresh ??-?? (optional; used for CRT2 only)
# HorizSync ??-?? (optional; used for CRT2 only)
# Option "DPMS" (optional; used for CRT2 only)
# Gamma correction for CRT2 Gamma 1.000 1.000 1.000
EndSection
# In Dual Head mode, this "Device" section is only used
# for CRT2. A second one, for CRT1, is added below.
# "Device" section
Section "Device"
Identifier "Generic Video Card"
# Now for the real thing: Driver "sis"
# "BusID" is mandatory for Dual Head mode. BusID "PCI:1:0:0"
# "Screen" is mandatory for Dual Head mode.
# "Screen 0" is CRT2 (master), "Screen 1" is CRT1 (slave) Screen 0
# EnableSiSCtrl must be set to use SiSCtrl
Option "EnableSiSCtrl" "yes"
# [sisctrl] Set CRT1 device type (Note: overrides auto-detection)
Option “ForceCRT1Type” “LCD”
# [sisctrl] Set CRT2 device type (Note: overrides auto-detection)
Option “ForceCRT2Type” “SVIDEO”
# [sisctrl] LCD related options
# All set to defaults
# [sisctrl] TV related options
Option “TVStandard” “NTSC”
Option “SISTVAntiFlicker” “adaptive”
Option “SISTVSaturation” “0″
Option “SISTVColorCalibCoarse” “0″
Option “SISTVColorCalibFine” “0″
Option “SISTVCFilter” “on”
Option “SISTVYFilter” “1″
Option “SISTVXScale” “0″
Option “SISTVYScale” “0″
Option “TVXPosOffset” “0″
Option “TVYPosOffset” “0″
# [sisctrl] Enable/disable gamma correction for CRT2
Option “CRT2Gamma” “on”
# [sisctrl] Gamma brightness for CRT2
# The driver does NOT write these to the hardware. Instead, for
# using gamma brightness, you need to execute sisctrl with the
# -setgammabrightness (or -sg) switch at X server start. It is
# most convenient to do this by adding this to your ~/.xsession
# or ~/.xinitrc file:
# sisctrl -sg
# If you run Xinerama, do that twice for both screens. Add this:
# sisctrl -screen 1 -sg
# In Dual Head mode, the option “GammaBrightness” is
# preferred over “CRT2GammaBrightness” (although both # are accepted equally).
Option “GammaBrightness” “1.000 1.000 1.000″
# Xv (video overlay) head selection
Option “XvOnCRT2″ “no”
# [sisctrl] Xv (video overlay) related options for CRT2
Option “XvDefaultContrast” “2″
Option “XvDefaultBrightness” “10″
Option “XvDefaultHue” “0″
Option “XvDefaultSaturation” “0″
Option “XvDefaultDisableGfxLR” “no”
EndSection
# For Dual Head mode, a second “Monitor” section is required.
# The above “Monitor” section is for CRT2, while the following
# one is for CRT1. For example:  Section “Monitor”
# Replace IDENTIFIER with the real one from the “Monitor”
# tag in your “Screen” section for CRT1
Identifier “Generic Video Card”
# VertRefresh ??-?? (optional, used for CRT1 only) # HorizSync ??-?? (optional, used for CRT1 only) # Option “DPMS” (optional, used for CRT1 only)  # Gamma correction for CRT1 Gamma 1.000 1.000 1.000 EndSection  # For Dual Head mode, a second “Device” section is required. # The above “Device” section is for CRT2, while the following # one is for CRT1. Note that not all options can be set in this # second “Device” section. Options that determine settings # which both heads need to know about are only allowed in the # “Device” section for CRT2. # Options that are allowed here are all “XvDefault…”, all # gamma correction related options and a few more. For example:  Section “Device” # Replace IDENTIFIER with the real one from the “Device” # tag in your “Screen” section for CRT1 Identifier “Generic Video Card”  # Now for the real thing: Driver “sis”  # “BusID” is mandatory for Dual Head mode. BusID “PCI:1:0:0″  # “Screen” is mandatory for Dual Head mode. # “Screen 0″ is CRT2 (master), “Screen 1″ is CRT1 (slave) Screen 1  # EnableSiSCtrl must be set to use SiSCtrl Option “EnableSiSCtrl” “yes”  # Enable/disable gamma correction for CRT1 Option “CRT1Gamma” “on”  # Gamma brightness for CRT1 # The driver does NOT write these to the hardware. Instead, for # using gamma brightness, you need to execute sisctrl with the # -setgammabrightness (or -sg) switch at X server start. It is # most convenient to do this by adding this to your ~/.xsession # or ~/.xinitrc file: # sisctrl -sg # If you run Xinerama, do that twice for both screens. Add this: # sisctrl -screen 1 -sg Option “GammaBrightness” “1.000 1.000 1.000″  # Xv (video overlay) related options for CRT1 Option “XvDefaultContrast” “2″ Option “XvDefaultBrightness” “10″ Option “XvDefaultHue” “0″ Option “XvDefaultSaturation” “0″ Option “XvDefaultDisableGfxLR” “no” Option “XvGamma” “off” EndSection  Section “ServerLayout” Identifier “Default Layout” Screen “Default Screen” InputDevice “Generic Keyboard” InputDevice “Configured Mouse” InputDevice “Generic Mouse” EndSection  Section “DRI” Mode 0666 EndSection
add to del.icio.us    add to technorati favs   email this