You are not logged in.

#1 2008-09-28 18:05:02

coda
Member
Registered: 2008-08-21
Posts: 36

[Solved] Thinkpad x61 video tearing with X3100 & intel driver

I've been holding off posting for help with this issue. But after reading this tread >>

http://bbs.archlinux.org/viewtopic.php?id=55464

It would seem the X3100 is a good card for playing video. I'm using a thinkpad X61, X3100 card , intel driver & mplayer to play avi files and always get video tearing.

I'm using awesome wm and have a bare bones system I think I may have forgot to install some critical components to get video working nicely.

I've tryed lots of xorg configs, driconf settings,followed the wiki on Intel_Graphics >>

http://wiki.archlinux.org/index.php/Intel_Graphics

nothing I try fixes the tearing problem.

Anyone got any tips? I think it may have something to do with refresh rates but I maybe wrong. I got my refresh rates by doing "hwd -s" and putting them in my xorg.conf

HARDWARE DETECT ver 5.3.4 (simple mode)
  Kernel     : 2.6.26-ARCH
  CPU & Cache: Processor 0: Intel(R) Core(TM)2 Duo CPU     T7100  @ 1.80GHz 800MHz, 2048 KB Cache
Processor 1: Intel(R) Core(TM)2 Duo CPU     T7100  @ 1.80GHz 800MHz, 2048 KB Cache

  Sound(a)   : 82801H ICH8 Family HD Audio Controller module: snd-hda-intel 
  Video      : Mobile GM965/GL960 Integrated Graphics Controller server: Xorg (intel)  
  Driver     : xf86-video-intel   module: - 
  Monitor    : Generic Monitor  H: 28.0-96.0kHz V: 50.0-75.0Hz
  Mouse      : Logitech, Inc. M-UV69a/HP M-UV96 Optical Wheel xtype: IMPS2 device: /dev/input/mice
  HDD        : 82801HBM/HEM ICH8M/ICH8ME IDE Controller module: ata_piix 
  USB        : 82801H ICH8 Family USB2 EHCI Controller #1 module: ehci_hcd 
  USB2       : 82801H ICH8 Family USB2 EHCI Controller #2 module: ehci_hcd 
  SD Slot    : R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter module: sdhci 

  Ethernet   : 82566MM Gigabit Network Connection module: e1000e 
  Ethernet   : AR5212/AR5213 Multiprotocol MAC/baseband processor module: ath_pci 
  Network    : PRO/Wireless 3945ABG Network Connection module: - 
  Firewire   : R5C832 IEEE 1394 Controller  module: ohci1394 
  PCMCIA slot: RL5c476 II module: yenta_cardbus 

  Menu       : Main menu: hwd
  All        : Detect all hardwares: hwd -e
  X sample   : Generate X sample: hwd -x
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
        Option "AIGLX" "true"
EndSection

Section "Files"
    RgbPath      "/usr/share/X11/rgb"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc:unscaled"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/100dpi"
    #FontPath     "/usr/share/fonts/PEX"
        FontPath     "/usr/share/fonts/TTF"
        FontPath     "/usr/share/fonts/artwiz-fonts"
        FontPath     "/usr/share/fonts/local"
        FontPath     "/usr/share/fonts/misc"
# Additional fonts: Locale, Gimp, TTF...
#    FontPath     "/usr/share/fonts/cyrillic"
#    FontPath     "/usr/share/lib/X11/fonts/latin2/75dpi"
#    FontPath     "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
#    FontPath     "/usr/share/fonts/Type1"
##    FontPath     "/usr/share/fonts/ttf/western"
#    FontPath     "/usr/share/fonts/ttf/decoratives"
#    FontPath     "/usr/share/fonts/truetype"
#    FontPath     "/usr/share/fonts/truetype/openoffice"
#    FontPath     "/usr/share/fonts/truetype/ttf-bitstream-vera"
#    FontPath     "/usr/share/fonts/latex-ttf-fonts"
#    FontPath     "/usr/share/fonts/defoma/CID"
#    FontPath     "/usr/share/fonts/defoma/TrueType"
EndSection

Section "Module"
        #Load  "ddc"  # ddc probing of monitor
    Load "vbe"
        Load "i2c"
        Load  "dbe"
    Load  "dri"
    Load  "extmod"
    Load  "glx"
        Load  "GLcore"
        Load  "bitmap" # bitmap-fonts
    #Load  "type1"
    Load  "freetype"
    Load  "record"
    Load  "xtrap"
        #   Load  "synaptics"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
        Option "XkbRules"   "xorg"
        Option "XkbModel"   "pc105"
        Option "XkbLayout"   "gb"
        Option "XkbOptions"   "ctrl:nocaps"
        #Option "XkbLayout" "uk"
        #Option "XkbVariant" ""
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    #DisplaySize      250   180    # mm
    Identifier   "Monitor0"
    #VendorName   "LEN"
    #ModelName    "4000"
    Option        "DPMS"
        #Option "DPMS" "true"
        #DisplaySize 269 201 # 96 DPI @ 1024x768
        #DisplaySize 245 184 # 96 DPI @ 1024x768
        #DisplaySize 245 184 # 120 DPI @ 1024x768
        #DisplaySize 250 180 # 126 DPI @ 1024x768
        #DisplaySize 245 184 # 126 DPI @ 1024x768
        DisplaySize 206 154 # 126 DPI @ 1024x768
        HorizSync    28.0-96.0
        VertRefresh  50.0-75.0
        #Gamma 1.10 0.90 0.80
        #Gamma 1.00 1.00 1.00
        #Gamma 1.10 1.10 1.10
        #Gamma 0.93 0.93 0.93
        #Gamma 1.00 0.98 0.95
        #Gamma 0.93 0.93 0.93
        Gamma 0.80 0.80 0.80
        #Gamma 0.60 0.60 0.60
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     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"                    # [<bool>]
        #Option     "NoDDC"                  # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
    ##Option      "XAANoOffscreenPixmaps" "true"
        #Option      "DRI"     "true"
        #Option      "AccelMethod"   "xaa"
        ##Option      "MigrationHeuristic" "greedy"
        Identifier  "Card0"
    VideoRam       229376
        Option "CacheLines" "1980"
        Driver      "intel"
    #BusID "PCI:0:2:1"
    BusID "PCI:0:2:0"
        Option "DRI" "true"
        Option "XVideo" "true"
        Option      "MigrationHeuristic" "greedy"
        #Option "DisplayInfo" "true"
        Option "RenderAccel" "true"
        Option "XAANoOffscreenPixmaps" "true"
        #old
        Option "AccelMethod" "EXA"
        #VendorName  "Intel Corporation"
    #BoardName   "Mobile GM965/GL960 Integrated Graphics Controller"
    #BusID       "PCI:0:2:0"
        #Option          "UseFBDev"              "true"
        #VideoRam        32768
        #Option     "NoAccel"   "true"
        #Option     "PageFlip"   "true"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
#DefaultDepth 32
#DefaultDepth 24
DefaultDepth 24
Option "RenderAccel" "True"
Option "AllowGLXWithComposite" "True"
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
#Modes "1280×800"
Modes "1224×768"
#Modes "800×600"
EndSubSection
EndSection

Section "DRI"
    Mode 0666
EndSection

Section "Extensions"
   Option "Composite"   "Enable"
EndSection

#Section "Extensions"
#Option "Composite" "false"
#EndSection

Last edited by coda (2009-01-12 20:54:10)

Offline

#2 2008-09-28 20:39:12

qubit
Member
Registered: 2007-04-25
Posts: 47

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

Hi, i have R61 with x3100 and the problem for me was sync. with vertical refresh. The solution is to use driconf and check always synchronize with vertical refresh. Of course this only works for OpenGL so you have to use gl output. It doesn't work with XV so if you know how to set it, let me know.

Last edited by qubit (2008-09-28 20:41:32)

Offline

#3 2008-09-29 04:55:34

coda
Member
Registered: 2008-08-21
Posts: 36

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

heres my drirc

<driconf>
<device screen="0" driver="i965">
<application name="all">
<!-- Always synchronize with vertical refresh to avoid tearing -->
<option name="vblank_mode" value="3"/>
</application>
</device>
</driconf>

I have to go to work now, I'll read your post again when I get back. I have some questions but I have to go now, speak to you later.

Thanks

Offline

#4 2008-09-29 20:07:49

coda
Member
Registered: 2008-08-21
Posts: 36

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

How do I set video to use "gl output"?

I need to do some more testing but this may have fixed the tearing problem.

mplayer -vo gl

I will post back tomorrow night & let you know, Thanks qubit for helping me out.

edit#2

yes it would seem the tearing has gone I have been getting some slowdown in places even thought my cpu's are around 20% and memory is at 300mb. I'm sure with some tweaking I can sort it out. Also I've been trying

mplayer -vo gl2

I need to play about and read some more about mplayer, thanks again cool

Last edited by coda (2008-09-30 21:04:31)

Offline

#5 2008-10-03 07:47:32

adamc83
Member
Registered: 2008-06-01
Posts: 40

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

Yeah, its a problem with the intel driver... a workaround for mplayer is:

Run xvinfo to find the overlay port, mine looks like this:

Adaptor #1: "Intel(R) Video Overlay"
 number of ports: 1
 port base: 79

Then:

mplayer -vo xv:port=[portnumber goes here]

Offline

#6 2008-10-03 15:13:30

coda
Member
Registered: 2008-08-21
Posts: 36

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

Great tip adamc83, Using this method & testing with a copy of "big_buck_bunny_720p_h264" & various .avi files the tearing has gone & also seems to use less cpu, The picture looks very nice.

This is great news I can start enjoying movies on my laptop,

My port number was 99

So I've put >>>

alias mp='mplayer -vo xv:port=99'

In my .bashrc file now.

Many thanks

Last edited by coda (2008-10-03 16:11:23)

Offline

#7 2008-10-17 23:24:05

bredin
Member
From: sweden
Registered: 2008-06-28
Posts: 135

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

I have the same problem.
But you have to port all applications to openGL output?


Lenovo ThinkPad x61
Core2Duo 2ghz, 4gig ram, 16gig SSD.
Archlinux x64 + Fluxbox!

Offline

#8 2008-10-17 23:47:20

coda
Member
Registered: 2008-08-21
Posts: 36

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

I only really noticed the tearing when using a media player like mplayer, vlc etc

When you say "all applications" what else are you seeing the tearing in?

YouTube videos in firefox sometimes get some tearing for me, But its harder to spot because the of the smaller size viewing area and generally poorer quality of the video.

Offline

#9 2008-10-18 11:52:51

bredin
Member
From: sweden
Registered: 2008-06-28
Posts: 135

Re: [Solved] Thinkpad x61 video tearing with X3100 & intel driver

I made a official x61 thread

Please post your tips.


I have videotearing in all applications. Just that it's easier to notice in videoplaybacks. Try supertux or something and you will notice videotearing there to.


Lenovo ThinkPad x61
Core2Duo 2ghz, 4gig ram, 16gig SSD.
Archlinux x64 + Fluxbox!

Offline

Board footer

Powered by FluxBB