View Full Version : Horizontal scan lines, what to do?
Hi!
Newbie on Linux XBMC (Ubuntu 8.04), but have run xbox XBMC for years...
Have an annoying thing with the linux version, whenever the video scans quickly, I get horizontal lines, kind of like the picture breaks up because it does not move fast enough.
I run this HW-setup: http://xbmc.org/forum/showpost.php?p=183813&postcount=103
Yes, desktop effects are shut off...
Anyone have any idea on how to fix it?
This is what my xorg.conf-device section looks like:
Section "Device"
Identifier "Configured Video Device"
Boardname "NVIDIA GeForce 7 Series"
Busid "PCI:1:0:0"
Driver "nvidia"
Screen 0
Vendorname "NVIDIA"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "ModeValidation" "NoWidthAlignmentCheck"
Option "TripleBuffer" "True"
Option "UseEvents" "True"
Option "NoLogo" "True"
# Important!!! need this option to use nvidia card at 1360 x 768
Option "DynamicTwinView" "false"
Option "CoolBits" "1"
Option "NoFlip" "1"
Option "NvAGP" "1"
# Needed for ACPI uspend to RAM
EndSection
Couple of things to check.
Do you have vsync enabled in xbmc?
What are your interlace settings in xbmc?
I have: settings > Appearance > Screen > Vertical Blank sync set to "Enabled during video playback".
Where do I do the interlace settings?
I run the screen and XBMC in 1360x768 and "Video aspect" is set to "Letterbox". 480p, 720p and 1080i are enabled.
interlace settings are in the OSD, Video Settings.
It was set to "None".
Tried all of them, and none help. Some make the screen greeen when pausing, others (deinterlace) makes XBMC crash with some videos.
"Bob" makes picture-quality poor.
Have set it to "Auto" for now.
What is this recommended to have it at?
Mine is set to Auto Select and Bilinear, but I have no idea what would be optimum.
My xorg.conf is a lot leaner than yours. Mine was created when I installed the drivers with Envy.
Here is mine (Complete)
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Option "AddARGBGLXVisuals" "True"
Defaultdepth 24
EndSection
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
So, what is the recommendation here?
Is it to try using Envy, and then add my specifics for my Vizio LOCD to Envys xorg?
Thanks!
rodalpho
2008-06-16, 18:42
You can try disabling vsync in XBMC and in nvidia-settings application for openGL... although that doesn't make a great deal of sense because generally speaking you enable vsync to get rid of tearing, not the opposite. But it's worth a shot. Also if you're not running the binary drivers from nvidia.com, give em a shot.
...I've been unable to eliminate tearing on my box at all either (component out from an nVidia 8600 GT).
Hopefully you'll have better luck.
Lament Configuration
2008-06-16, 21:06
This phenomenon is called screen tearing (and is very annoying)
see: http://en.wikipedia.org/wiki/Page_tearing
V-sync should be your friend, i'm trying to get rid off the tearing myself but no luck here.
I'll post my findings if i figure it out.
one question you that uses component and such is that the only head that is being used? becus if you have two screens i think you haveto chose wich head the vsync should follow
Fixed it!!
Using the proprietary drivers from apt.
Driver version is 169.12.
Removed triplebuffer from my xorg.conf, and screen tearing is virtually gone!!
This is my new Device section from xorg.conf:
Section "Device"
Identifier "Configured Video Device"
Boardname "NVIDIA GeForce 7 Series"
Busid "PCI:1:0:0"
Driver "nvidia"
Screen 0
Vendorname "NVIDIA"
Option "AddARGBVisuals" "True"
Option "NoLogo" "True"
# Important!!! need this option to use nvidia card at 1360 x 768
Option "NvAGP" "1"
# Needed for ACPI suspend to RAM
Option "AddARGBGLXVisuals" "True"
Option "ModeValidation" "NoWidthAlignmentCheck"
# Option "TripleBuffer" "True"
Option "UseEvents" "True"
# Option "DynamicTwinView" "false"
Option "CoolBits" "1"
Option "NoFlip" "1"
EndSection
I have the same problem with the image tearing...very annoying!
I have reconfigured my xorg inspired by odinb, but no luck!
Can someone help?
Here's my present xorg:
# xorg.conf (X.Org 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 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 "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Option "AddARGBGLXVisuals" "True"
Defaultdepth 24
EndSection
Section "Device"
Identifier "Configured Video Device"
Boardname "NVIDIA GeForce 8 Series"
Busid "PCI:1:0:0"
Driver "nvidia"
Screen 0
Vendorname "NVIDIA"
Option "AddARGBVisuals" "True"
Option "NoLogo" "True"
Option "NvAGP" "1"
Option "AddARGBGLXVisuals" "True"
Option "ModeValidation" "NoWidthAlignmentCheck"
Option "UseEvents" "True"
Option "CoolBits" "1"
Option "NoFlip" "1"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
Option "XkbVariant" "oss"
Option "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
I removed the Triplebuffer option and the tearing is gone thanks to adinb.
here is the device section in my xorg.conf
Section "Device"
Identifier "NVIDIA 7600"
Driver "nvidia"
#Option "TripleBuffer" "True"
Option "UseEvents" "True"
Option "NoLogo" "True"
# Important!!! need this option to use nvidia card at 1360 x 768
Option "DynamicTwinView" "false"
Option "CoolBits" "1"
Option "NoFlip" "1"
Option "NvAGP" "1"
EndSection
Note : I'm using Ubuntu 7.10, NVIDIA 7600 GPU
I have cleaned up my xorg.
The tearing has diminished, but is still there.
Can someone tell me if I can do more?
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Thu Feb 14 18:20:37 PST 2008
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
SubSection "Display"
Depth 24
EndSubSection
Option "AddARGBGLXVisuals" "True"
Defaultdepth 24
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
Vendorname "NVIDIA Corporation"
#Option "TripleBuffer" "True"
Option "UseEvents" "True"
Option "NoLogo" "True"
# Important!!! need this option to use nvidia card at 1360 x 768
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "ServerLayout"
Identifier "Layout0"
screen 0 "Screen0"
Inputdevice "Keyboard0" "CoreKeyboard"
Inputdevice "Mouse0" "CorePointer"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "Monitor"
Identifier "Monitor0"
Vendorname "Unknown"
Modelname "Unknown"
Horizsync 30.0 - 110.0
Vertrefresh 50.0 - 150.0
Option "DPMS"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "Files"
Rgbpath "/usr/X11R6/lib/X11/rgb"
EndSection
I found what my problem was. I had Metacity enabled.
Disabled it....now works great!
XBMC is great!