View Single Post
Old 11-13-08, 12:17 PM   #21
jyavenard
MythTV developer
 
Join Date: Mar 2006
Posts: 413
Default Re: Integrated Geforce 8200 woes: high X CPU on video playback

Hi

I can confirm that this issue appears when the display's refresh rate is set to a multiple of the source (1X, 2X etc).

Until today, I had my TV set at 50Hz (PAL country), and enjoyed watching videos using the American 23.975Hz without problems.

Today, I configured my system to set the TV to the same refresh rate as the video being played.
As soon as the TV is set to the same refresh rate ; from time to time Xorg will take 100% of the CPU time.

Disabling Vsync to blank fixes this problem ; but will make a lot of tearing.

Device section in xorg.conf already contains the UseEvents option set to true

This is using mplayer. Pressing Rewind or Pause fixes the issue momentarily and Xorg stops using 100% of the CPU time for a few seconds... But problem will occur again shortly after

This happens with 177.80, 177.82 and the latest beta: 177.61.02

This sounds like a NVIDIA bug to me.
graphic card is a 9400GT

Here is my xorg.conf
Code:
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
EndSection

Section "Module"
    Load	"glx"
    Load	"GLcore"
    Load	"v4l"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us"
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 "Monitor"
    Identifier     "Generic Monitor"
    Option         "DPMS"
    # 1920x1080p @ 50Hz (EIA/CEA-861B)
    ModeLine "1920x1080@50" 148.500 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 60Hz (EIA/CEA-861B)
    ModeLine "1920x1080@60" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 24Hz (EIA/CEA-861B)
    ModeLine "1920x1080@24" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 23.976Hz (EIA/CEA-861B)
    ModeLine "1920x1080@23.976" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080i @ 50Hz (EIA/CEA-861B)
    Modeline "1920x1080@50i" 74.250 1920 2448 2492 2640 1080 1085 1095 1125 +hsync +vsync Interlace
    # 1920x1080i @ 60Hz (EIA/CEA-861B)
    Modeline "1920x1080@60i" 74.250 1920 2008 2052 2200 1080 1085 1095 1125 +hsync +vsync Interlace
    # 1920x1080p @ 59.94Hz (EIA/CEA-861B)
    ModeLine "1920x1080@59.94" 148.350 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080i @ 59.94Hz (EIA/CEA-861B)
    Modeline "1920x1080@59.94i" 74.175 1920 2008 2052 2200 1080 1085 1095 1125 +hsync +vsync Interlace
    # 1920x1080p @ 25Hz (EIA/CEA-861B)
    ModeLine "1920x1080@25" 74.250 1920 2448 2492 2640 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 29.97Hz (EIA/CEA-861B)
    ModeLine "1920x1080@29.97" 74.175 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    # 1920x1080p @ 30Hz (EIA/CEA-861B)
    ModeLine "1920x1080@30" 74.250 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
    HorizSync       20.0 - 150.0
    VertRefresh     24.0 - 90.0
    Option         "ExactModeTimingsDVI" "True"
    Option         "UseEDIDFreqs" "False"
EndSection

Section "Device"
    Identifier     "Generic Video Card"
    Driver         "nvidia"
    Option	   "UseEvents"	"True"
#    Option	   "DynamicTwinView" "False"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Generic Video Card"
    Monitor        "Generic Monitor"
    Option         "RenderAccel" "True"
    Option         "AllowGLXWithComposite" "true"
    Option         "AddARGBVisuals" "True"
    Option         "AddARGBGLXVisuals" "True"
    Option         "NoLogo" "False"
    Option "PixmapCacheSize" "1000000"
    Option "AllowSHMPixmaps" "0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
	Modes "1920x1080@50" "1920x1080@60" "1920x1080@24" "1920x1080@23.976" "1920x1080@50i" "1920x1080@60i" "1920x1080@59.94" "1920x1080@59.94i" "1920x1080@25" "1920x1080@29.97" "1920x1080@30"
    EndSubSection
EndSection
If anyone knows a work-around, I'm listening.

This is very frustrating

Looking at the first few lines of top:
top - 05:18:29 up 1:27, 3 users, load average: 2.87, 2.73, 2.31
Tasks: 126 total, 3 running, 123 sleeping, 0 stopped, 0 zombie
Cpu(s): 75.6%us, 0.3%sy, 0.0%ni, 23.4%id, 0.2%wa, 0.0%hi, 0.5%si, 0.0%st
Mem: 2056068k total, 2039120k used, 16948k free, 14036k buffers
Swap: 2000084k total, 2132k used, 1997952k free, 1511932k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6645 root 20 0 448m 86m 27m R 100 4.3 15:25.87 Xorg
7348 myth 20 0 384m 65m 18m S 51 3.3 5:39.44 mplayer
Attached Files
File Type: log nvidia-bug-report.log (146.0 KB, 123 views)
jyavenard is offline   Reply With Quote