km400 s-video

Problems and successes with specific brands/models of computer video hardware
Post Reply
Message
Author
heALer
Posts: 3
Joined: Thu 10 Apr 2008, 22:34

km400 s-video

#1 Post by heALer »

Hi there.
I'm running Puppy 3.01 and I wonder if anyone here knows how to get the tv out working? I have a KM400 chipset with S-Video out, I have googled for hours and can't find anything good, so I hope someone here knows how to do it :)
Right now I haveing 1024x768x16 resolution on my computer monitor that I congifured with xorg, that works fine! But the TV screen is black. Do I need anymore driver or something?
If you want you can look at my xorg.conf here:

Code: Select all

Section "Module"
	Load "synaptics"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
    Load        "freetype"

# This loads the GLX module
    Load       "glx"
    Load       "dri"

# This loads xtrap extension, used by xrandr
    Load       "xtrap"

EndSection

# **********************************************************************
# 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/X11R7/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)

    FontPath   "/usr/X11R7/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R7/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R7/lib/X11/fonts/TTF/"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

    Option "RandR" "on"

EndSection

#everything past here is auto-generated by Puppy's Xorg Wizard...


Section "ServerLayout"
	InputDevice "Synaptics Mouse" "AlwaysCore"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbRules" "xorg"
	Option      "XkbModel" "pc102"
	Option      "XkbLayout" "se" #xkeymap0
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto" #mouse0protocol
	Option	    "Device" "/dev/mouse"
	#Option      "Emulate3Buttons"
	#Option      "Emulate3Timeout" "50"
	Option      "ZAxisMapping" "4 5" #scrollwheel
EndSection

Section "InputDevice"
	Identifier "Synaptics Mouse"
	Driver "synaptics"
	Option "Device" "/dev/psaux"
	Option "Protocol" "auto-dev"
	Option "LeftEdge" "1700"
	Option "RightEdge" "5300"
	Option "TopEdge" "1700"
	Option "BottomEdge" "4200"
	Option "FingerLow" "25"
	Option "FingerHigh" "30"
	Option "MaxTapTime" "180"
	Option "MaxTapMove" "220"
	Option "VertScrollDelta" "0"
	Option "HorizScrollDelta" "0"
	Option "MinSpeed" "0.10"
	Option "MaxSpeed" "0.30"
	Option "AccelFactor" "0.0030"
	Option "SHMConfig" "on"
	#Option "Repeater" "/dev/ps2mouse"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    31.5-48.5
	VertRefresh  40-70
	#UseModes     "Modes0" #monitor0usemodes
	EndSection
	
Section "Modes"
	Identifier "Modes0"
	#modes0modeline0
EndSection

Section "Device"
	### Available Driver options are:-
	### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
	### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
	### [arg]: arg optional
	#Option     "VBEModes"           	# [<bool>]
	#Option     "NoAccel"            	# [<bool>]
	#Option     "AccelMethod"        	# <str>
	#Option     "HWCursor"           	# [<bool>]
	#Option     "SWCursor"           	# [<bool>]
	#Option     "ShadowFB"           	# [<bool>]
	#Option     "Rotate"             	# [<str>]
	#Option     "VideoRAM"           	# <i>
	#Option     "ActiveDevice"       	# [<str>]
	#Option     "LCDDualEdge"        	# [<bool>]
	#Option     "BusWidth"           	# [<str>]
	#Option     "Center"             	# [<bool>]
	#Option     "PanelSize"          	# [<str>]
	#Option     "ForcePanel"         	# [<bool>]
	#Option     "TVDotCrawl"         	# [<bool>]
	#Option     "TVDeflicker"        	# <i>
	#Option     "TVType"             	# [<str>]
	#Option     "TVOutput"           	# [<str>]
	#Option     "DisableVQ"          	# [<bool>]
	#Option     "DRIXINERAMA"        	# [<bool>]
	#Option     "DisableIRQ"         	# [<bool>]
	#Option     "EnableAGPDMA"       	# [<bool>]
	#Option     "NoAGPFor2D"         	# [<bool>]
	#Option     "NoXVDMA"            	# [<bool>]
	#Option     "ExaNoComposite"     	# [<bool>]
	Option "ActiveDevice" "LCD,TV" ## can be one, or both 
	Option "TVType" "PAL" ## or "PAL" 
	Option "TVOutput" "S-Video" ## or "S-Video"

	Identifier  "Card0"
	Driver      "via" #card0driver
	VendorName  "Unknown Vendor"
	BoardName   "Unknown Board"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
    DefaultDepth 16
    Subsection "Display"
        Depth       16
        Modes       "1024x768"
    EndSubsection
EndSection

#PuppyHardwareProfile=VIA_KN400

heALer
Posts: 3
Joined: Thu 10 Apr 2008, 22:34

script

#2 Post by heALer »

Now it's working!
problem was, I couldn't have both devices active at the same time.
so I made 2 xorg.conf files

xorg.tv
xorg.notv

And then I did a simple script to switch between xorg files

Code: Select all

#!/bin/bash

case $1 in
tv ) cp /etc/X11/xorg.tv /etc/X11/xorg.conf ;;
notv ) cp /etc/X11/xorg.notv /etc/X11/xorg.conf ;;
* ) echo 
echo "Usage"
echo 
echo " tv - use TV"
echo " notv - use LCD"
;; 
esac
saved it as display
and put it in /usr/local/bin

then I did 2 shortcutscripts on the desktop:
display notv
display tv

then I have to restart X so the changes will take effect.. or CTRL+BACKSPACE
but can I add to the script so the X server will start automatically? So I dont have to press CTRL-BACKSPACE?? I know that sounds very lazy, hehe.. but I just want it to be perfect you know :) Anyone knows??

heALer
Posts: 3
Joined: Thu 10 Apr 2008, 22:34

working

#3 Post by heALer »

Well, thanks for all help :)
It was to simple.. just add this line at the end: restartwm
it works like a charm!

Post Reply