Geforce 3 TVout Gentoo

Jaksoinpa sitten vihdoin ja viimein laittaa koneeni tvoutin kuntoon, kun löysin toimivat ohjeetkin. Joskus kauan sitten tvout toimi lähes ilman ongelmia, mutta asennettuani Gentoon, ei ohjelma jota ennen käytin tvouttiin suostunut toimimaan. Enpä kyllä ole pahemmin tvouttia tarvinnutkaan, mutta oli pakko keksiä jotain tekemistä, jottei lomalla olisi tylsää.

Ensimmäiseksi kävin xorgin conffeihin käsiksi ja sain ne näyttämään tältä. Tärkeimmät huomioitavat kohdat ovat Monitor -osion TV-monitor, Device -osion TV-device, Screen -osion TV ja ServerFlags -osion Xinerma. Tietenkin samalla laitoin myös Composite -lisäosan päälle, jotta pääsisin nauttimaan Xorgin tarjoamasta mahdollisuudesta käyttää translucencyä (ikkunoista ja kaikesta mistä vain haluaa tulee läpikuultavia).

Section "Module"
Load "dbe"
SubSection "extmod"
Option "omit xfree86-dga"
EndSubSection
Load "type1"
#Load "speedo"
Load "freetype"
Load "glx"
#Load "xtt"
EndSection

Section “Files”
RgbPath “/usr/lib/X11/rgb”
FontPath “/usr/share/fonts/local/”
FontPath “/usr/share/fonts/misc/”
FontPath “/usr/share/fonts/75dpi/:unscaled”
FontPath “/usr/share/fonts/100dpi/:unscaled”
FontPath “/usr/share/fonts/Speedo/”
FontPath “/usr/share/fonts/Type1/”
#FontPath “/usr/share/fonts/TrueType/”
#FontPath “/usr/share/fonts/freefont/”
FontPath “/usr/share/fonts/75dpi/”
FontPath “/usr/share/fonts/100dpi/”
EndSection

Section “ServerFlags”
Option “Xinerama” “false”
EndSection

Section “InputDevice”

Identifier “Keyboard1″
Driver “kbd”
Option “AutoRepeat” “500 30″
Option “XkbModel” “pc105″
Option “XkbLayout” “fi”
EndSection

Section “InputDevice”
Identifier “Mouse1″
Driver “mouse”
Option “Protocol” “IMPS/2″
Option “Device” “/dev/input/mice”
Option “ZAxisMapping” “4 5″
EndSection

Section “Monitor”
Identifier “Samtron 96P”
VendorName “Samtron”
ModelName “96P”
HorizSync 30-96
VertRefresh 50-160
EndSection

Section “Monitor”
Identifier “TV-monitor”
VendorName “Philips”
ModelName “Television”
Option “ConnectedMonitor” “TV”
HorizSync 30-50
VertRefresh 60
EndSection

Section “Device”
Identifier “Geforce3″
Driver “nvidia”
BusID “PCI:1:0:0″
Option “CursorShadow” “TRUE”
Option “RenderAccel” “true”
Option “AllowGLXWithComposite” “true”
EndSection

Section “Device”
Identifier “TV-device”
Driver “nvidia”
VendorName “Monitor Vendor”
BoardName “nVidia GeForce 3″
Option “RenderAccel” “true”
Option “AllowGLXWithComposite” “true”
Screen 0
Option “TVStandard” “PAL-B”
Option “TVOutFormat” “COMPOSITE”
Option “ConnectedMonitor” “TV”
EndSection

Section “Screen”
Identifier “Screen 1″
Device “Geforce3″
Monitor “Samtron 96P”
DefaultDepth 24

Subsection “Display”
Depth 8
Modes “1280×1024″ “1024×768″ “800×600″ “640×480″
ViewPort 0 0
EndSubsection
Subsection “Display”
Depth 16
Modes “1280×1024″ “1024×768″ “800×600″ “640×480″
ViewPort 0 0
EndSubsection
Subsection “Display”
Depth 24
Modes “1280×1024″ “1024×768″ “800×600″ “640×480″
ViewPort 0 0
EndSubsection
EndSection

Section “Screen”
Identifier “TV”
Device “TV-device”
Monitor “TV-monitor”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “800×600″
EndSubSection
EndSection

Section “ServerLayout”
Identifier “AGP”
Screen “Screen 1″
InputDevice “Mouse1″ “CorePointer”
InputDevice “Keyboard1″ “CoreKeyboard”
EndSection

Section “Extensions”
Option “Composite” “Enable”
EndSection

Seuraavaksi tein ~/.kde/share/apps/konqueror/servicemenus -kansioon tiedoston View_on_TV.desktop, jonka sisällöksi lykkäsin seuraavan.

# ~/.kde/share/apps/konqueror/servicemenus/View_on_TV.desktop
# Service Menu for viewing Videos on TV
# based on an idea for TV-Out with Nvidia Cards seen on
# http://www.iofcea.de/cgi-bin/seite.pl?file=linuxtvout
# Thanks go to Markus Iofcea
[Desktop Entry]
ServiceTypes=video/*
Actions=ViewOnTvMplayer

[Desktop Action ViewOnTvMplayer]
Name=View on TV (MPlayer)
Icon=mplayer
Exec=/bin/sh -c “X -screen TV :1 -ac & sleep 2; DISPLAY=:1 mplayer -fs -vo x11 -zoom -really-quiet %U; ps ax|grep ‘X -screen TV’|cut -f 1 -d’ ‘|xargs kill”

Nyt elokuvia on helppo katsella telkkarin kautta, muutamalla hiirenpainalluksella. ;)

View on TV

Jätä vastaus

XHTML: Voit käyttää kommentoinnissa apuna: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>