Jag har löst problemet!
Det finns en användare här som heter invaderjohn som gjort ett skript, som switchar mellan den vanliga xorg.conf filen och xorg.conf.tv och när den switchar öppnar den också filmen i MPlayer i fullskärm.
Skriptet heter video.sh, ligger i /usr/bin/video.sh, och ska ha rättigheter 0755. Så då gör vi såhär:
När gedit öppnar klistrar vi in detta kod-stycke:
Kod: Markera allt
#!/bin/sh
X :1 vt8 -xf86config xorg.conf.tv +bs -ac -br &
export DISPLAY=:1
/usr/bin/xterm -bg black -e /usr/bin/gmplayer -fs -zoom "$*"
export DISPLAY=:0
Stänger fönstret, och säkerhetskopierar våran xorg.conf fil.
Kod: Markera allt
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_bak
Vi kan också passa på att kopiera våran xorg.conf-fil om du inte har kvar din xorg.con-orginalfil, isåfall kan du hoppa över detta steget.
Kod: Markera allt
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.tv
Nu öppnar vi xorg.conf.tv
Här ska du ställa in din xorg fil till att använda tv-out. Jag går inte in på hur man gör detta då det finns flertalet andra guider, och det varierar sig dessutom på tillverkare.
Se till så att dessa rader är med.
Kod: Markera allt
Option "TVOutFormat" "SVIDEO"
Option "TVStandard" "PAL-B"
Option "ConnectedMonitor" "TV"
När du är klar så gör vi en säkerhetskopia av den filen med.
Kod: Markera allt
sudo cp /etc/X11/xorg.conf.tv /etc/X11/xorg.conf.tv_bak
Nu måste vi också ändra lite i filen Xwrapper.config
Så då börjar vi med att säkerhets kopiera den.
Kod: Markera allt
sudo /etc/X11/Xwrapper.conf /etc/X11/Xwrapper.conf_bak
Nu ska vi ändra från allowed_users=terminal till allowed_users=anybody.
Då ändrar vi till allowed_users=anybody.
När du är klar, så stänger du allt.
Sedan är det bara att högerklicka på en film och välja
Öppna med annat program -> Använd ett anpassat kommando och bara skriva in
/usr/bin/video.sh så startar filmen på tv:n. Då stängs skärmarna av. När du sedan vill byta till skärmarna igen trycker du
Ctrl+Alt+Backspace.
Tips: Att ha din orginal-fil är ett plus. Se till att MPlayer fungerar som det ska, innan du använder scriptet, jag fick nämligen bara fram ett medelande där det stod att den inte kunde hitta vilken video-output som skulle användas. Om du bara får en svart-vit bild på tv:n så kan du ändra mellan
SVIDEO och
Composite i
TVOutFormat under
Device. Kan också vara bra att säga att den Sessionen som du har på skärmarna
inte försvinner när du byter!
Jag tänkte även att för enkelhetens skull posta mina xorg-filer. Ska tilläggas att detta är ett Gainward GeForce 7800GTX GS kort.
Min
xorg.conf
Kod: Markera allt
# /etc/X11/xorg.conf (xorg 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 xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
Fontpath "/usr/share/fonts/X11/misc"
Fontpath "/usr/share/fonts/X11/cyrillic"
Fontpath "/usr/share/fonts/X11/100dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/75dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/Type1"
Fontpath "/usr/share/fonts/X11/100dpi"
Fontpath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
Fontpath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "se"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "evdev"
Option "CorePointer"
Option "Name" "Logitech USB-PS/2 Optical Mouse"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen1" 1280 0
Screen 1 "Screen0" 0 176
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
Inputdevice "stylus" "SendCoreEvents"
Inputdevice "cursor" "SendCoreEvents"
Inputdevice "eraser" "SendCoreEvents"
EndSection
Section "ServerFlags"
Option "Xinerama" "1"
EndSection
Section "Device"
Identifier "GeForce 7800 GTX RIGHT"
Driver "nvidia"
Busid "PCI:1:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Screen 0
EndSection
Section "Device"
Identifier "GeForce 7800 GTX LEFT"
Driver "nvidia"
Busid "PCI:1:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Screen 1
EndSection
Section "Monitor"
Identifier "LG"
Option "DPMS"
HorizSync 28.0 - 51.0
VertRefresh 43.0 - 60.0
EndSection
Section "Monitor"
Identifier "PHILIPS"
Option "DPMS"
HorizSync 30.0 - 92.0
VertRefresh 50.0 - 160.0
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
EndSection
Section "Screen"
Identifier "Screen 0"
Device "GeForce 7800 GTX RIGHT"
Monitor "LG"
Defaultdepth 24
Option "metamodes" "CRT-1: 1280x1024 +0+0"
SubSection "Display"
Depth 1
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen 1"
Device "GeForce 7800 GTX LEFT"
Monitor "PHILIPS"
Defaultdepth 24
Option "metamodes" "CRT-0: 1600x1200 +0+0; CRT-0: 1280x1024 +0+0; CRT-0: 1024x768 +0+0; CRT-0: 800x600 +0+0; CRT-0: 640x480 +0+0"
SubSection "Display"
Depth 1
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Mode 0666
EndSection
Min
xorg.conf.tv
Kod: Markera allt
# /etc/X11/xorg.conf (xorg 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 xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
Fontpath "/usr/share/fonts/X11/misc"
Fontpath "/usr/share/fonts/X11/cyrillic"
Fontpath "/usr/share/fonts/X11/100dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/75dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/Type1"
Fontpath "/usr/share/fonts/X11/100dpi"
Fontpath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
Fontpath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "se"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection
Section "Device"
Identifier "nVidia Corporation G70 [GeForce 7800 GTX]"
Driver "nvidia"
Busid "PCI:1:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Option "TwinView" "true"
Option "TwinViewOrientation" "Clone"
Option "TVOutFormat" "Composite"
Option "TVStandard" "PAL-B"
Option "ConnectedMonitor" "TV"
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"
Option "MetaModes" "1024x768,1024x768;800x600,800x600,800x600;640x480,640x480; 512x384,512x384"
EndSection
Section "Monitor"
Identifier "TV"
Option "DPMS"
Horizsync 28-51
Vertrefresh 43-60
EndSection
Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G70 [GeForce 7800 GTX]"
Monitor "TV"
Defaultdepth 24
SubSection "Display"
Depth 1
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
Inputdevice "stylus" "SendCoreEvents"
Inputdevice "cursor" "SendCoreEvents"
Inputdevice "eraser" "SendCoreEvents"
EndSection
Section "DRI"
Mode 0666
EndSection
Jag använde denna guiden för att confa min xorg.conf fil till tv-out.
http://www.ubuntulinux.se/node/590
Jag använde även invaderjohns tråd ang, detta script.
http://ubuntu-se.org/smf/index.php/topic,9142.msg69382.html
Jag vill även tacka Hund som gav mig länken till invaderjohns script.