Announcement

Collapse
No announcement yet.

OpenGL apps hangs system

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    OpenGL apps hangs system

    Hi everyone!

    I going out of my mind over this one: Every time I start an OpenGL program it runs fine for about 5 second and then there are hangs whichs duration increases over time. After I kill the OpenGL app the whole xserver has become really slow, i.e. it's updating the screen one line at a time. I'm using nvidia-glx on 2.6.15-26-amd64-k8. Here's my xorg.conf but I don't think that's the problem (it's pretty standard). I commented the wacom lines to see if that was the problem.

    Code:
    # /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 /etc/X11/xorg.conf manual page.
    # (Type "man /etc/X11/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/X11/fonts/misc"
    	FontPath	"/usr/share/X11/fonts/cyrillic"
    	FontPath	"/usr/share/X11/fonts/100dpi/:unscaled"
    	FontPath	"/usr/share/X11/fonts/75dpi/:unscaled"
    	FontPath	"/usr/share/X11/fonts/Type1"
    	FontPath	"/usr/share/X11/fonts/100dpi"
    	FontPath	"/usr/share/X11/fonts/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	"type1"
    	Load	"vbe"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Generic Keyboard"
    	Driver		"kbd"
    	Option		"CoreKeyboard"
    	Option		"XkbRules"	"xorg"
    	Option		"XkbModel"	"pc104"
    	Option		"XkbLayout"	"us"
    EndSection
    
    Section "InputDevice"
    	Identifier	"Configured Mouse"
    	Driver		"mouse"
    	Option		"CorePointer"
    	Option		"Device"		"/dev/input/mice"
    	Option		"Protocol"		"ExplorerPS/2"
    	Option		"ZAxisMapping"		"4 5"
    	Option		"Emulate3Buttons"	"true"
    EndSection
    
    #Section "InputDevice"
    # Driver    "wacom"
    # Identifier  "stylus"
    # Option "ScreenNo" "0"
    # Option    "Device"    "/dev/input/wacom"     # Change to 
                               # /dev/input/event
                               # for USB
    # Option    "PressCurve"  "50,0,100,50"     # Custom preference
    # Option    "Type"     "stylus"
    
    #EndSection
    
    #Section "InputDevice"
    # Driver    "wacom"
    # Identifier  "eraser"
    # Option "ScreenNo" "0"
    # Option    "Device"    "/dev/input/wacom"     # Change to 
                               # /dev/input/event
                               # for USB
    # Option    "Type"     "eraser"
    #EndSection
    
    #Section "InputDevice"
    # Driver    "wacom"
    # Identifier  "cursor"
    # Option "ScreenNo" "0"
    # Option    "Device"    "/dev/input/wacom"     # Change to 
    #                           # /dev/input/event
    #                           # for USB
    # Option    "Type"     "cursor"
    #EndSection
    
    
    
    
    Section "Device"
    	Identifier	"Geforce I"
    	Driver		"nvidia"
    	BusID		"PCI:1:0:0"
    	Screen		0
    	Option "RenderAccel" "true"
    EndSection
    
    Section "Device"
    	Identifier	"Geforce II"
    	Driver		"nvidia"
    	BusID		"PCI:1:0:0"
    	Option "RenderAccel" "true"
    	Screen 		1
    EndSection
    
    Section "Monitor"
    	Identifier	"PLE511S"
    	Option		"DPMS"
    	HorizSync	24-80
    	VertRefresh	56-85
    EndSection
    
    Section "Monitor"
    	Identifier	"Oud"
    	Option		"DPMS"
    	HorizSync	27-102
    	VertRefresh	50-160
    EndSection
    
    
    
    Section "Screen"
    	Identifier	"Screen I"
    	Device		"Geforce I"
    	Monitor		"PLE511S"
    	DefaultDepth	24
    	SubSection "Display"
    		Depth		24
    		Modes		"1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
    	EndSubSection
    EndSection
    
    Section "Screen"
    	Identifier	"Screen II"
    	Device		"Geforce II"
    	Monitor		"Oud"
    	DefaultDepth	24
    	SubSection "Display"
    		Depth		24
    		Modes		"1024x768" "800x600" "720x400" "640x480"
    	EndSubSection
    EndSection
    
    Section "ServerLayout"
    	Identifier	"Default Layout"
    	Screen		0 "Screen I"
    	Screen		1 "Screen II" Below "Screen I"
    	InputDevice	"Generic Keyboard"
    	InputDevice	"Configured Mouse"
    	#InputDevice   "stylus" "SendCoreEvents"
    	#InputDevice   "cursor" "SendCoreEvents"
    	#InputDevice   "eraser" "SendCoreEvents"
    	#InputDevice   "pad"
    EndSection
    
    Section "Extensions"
    	Option "Composite" "Enable"
    EndSection
    
    Section "DRI"
    	Mode	0666
    EndSection

    Any help is really apreciated!

    Cheers,

    Atze

    #2
    Re: OpenGL apps hangs system

    you might need to add this line to each device section:
    Option "AllowGLXWithComposite" "true"
    or disable compositing and see if that fixes the problem

    Comment


      #3
      Re: OpenGL apps hangs system

      Thanks but that doesn't make any kind of difference. I tried that and I tried running Opengl apps with a clean xorg.conf generated by nvidia-xconfig but the system still hangs on opengl apps. Apparently the problem is not my xorg.conf. Any more ideas?

      Comment


        #4
        Re: OpenGL apps hangs system

        via the control centre click display
        then click at the bottom administer mode

        then click for the monitor & graphics change
        view the options available and then set them to your required hardware ...

        Comment


          #5
          Re: OpenGL apps hangs system

          That also doesn't make a difference

          However I did see that it reports only 256 KB of video memory! And I have a Asus GeForce 6800GT 256MB DDR3... Maybe that's the problem. Anyone know how to fix this or another way to solve the problem? Thnx

          Comment


            #6
            Re: OpenGL apps hangs system

            you can specify video ram in your device section(s) by adding this:
            Code:
            Section "Device"
            Identifier "Geforce I"
            Driver "nvidia"
            BusID "PCI:1:0:0"
            Screen 0
            Option "RenderAccel" "true"
            [b]VideoRam 262144[/b]
            This option (the mem is specified in kb) is usually not needed, and I do not know how dual cards/ dual head cards affect this at all.

            Comment


              #7
              Re: OpenGL apps hangs system

              Thanks, but apparently that wasn't the problem either. I noticed games in windows also have hiccups/crashes so maybe it isn't linux related at all

              However I still can't figure out what's wrong, I haven't always had this problem, it worked fine a while ago (also on linux). I've flashed my bios and reset the bios settings! What more can I do! Any help is really appreated as this is getting really fustrating

              EDIT: I've found out that Xorg eats up 100% of the cpu on the hang/hiccups.... Please help

              Comment

              Working...
              X