Jerky Graphics

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

Davcefai and NilsR,

go into the 'oolite.app' folder and execute the following:

Code: Select all

./oolite 2>> oolite_stderr.txt &
Wait until the 'Load Commander (Y/N)' appears and exit (i.e. press Shift+ESC). Post the contents of 'oolite.app/oolite_stderr.txt' and 'xorg.conf' here.
Last edited by Getafix on Sat May 03, 2008 2:39 pm, edited 1 time in total.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
NilsR
Average
Average
Posts: 10
Joined: Tue Apr 29, 2008 11:26 pm
Location: Oslo, Norway
Contact:

Post by NilsR »

Getafix wrote:
Davcefai and NilsR,

go into the 'oolite.app' folder and execute the following:

Code: Select all

./oolite >> oolite_stderr.txt &
I suspect you meant this?

Code: Select all

./oolite 2>> oolite_stderr.txt &
Getafix wrote:
Wait until the 'Load Commander (Y/N)' appears and exit (i.e. press Shift+ESC). Post the contents of 'oolite.app/oolite_stderr.txt' and 'xorg.conf' here.

oolite_stderr.txt:

Code: Select all

2008-05-02 20:23:22.637 oolite[13770] initialising SDL
2008-05-02 20:23:22.744 oolite[13770] init: numSticks=0
2008-05-02 20:23:22.744 oolite[13770] CREATING MODE LIST
2008-05-02 20:23:22.744 oolite[13770] Added res 1024 x 768
2008-05-02 20:23:22.744 oolite[13770] Added res 800 x 600
2008-05-02 20:23:22.744 oolite[13770] Added res 640 x 480
2008-05-02 20:23:22.744 oolite[13770] Found mode {Height = 800; RefreshRate = 0; Width = 1280; }
2008-05-02 20:23:22.771 oolite[13770] drawRect calling initialiseGLWithSize
2008-05-02 20:23:22.780 oolite[13770] Creating a new surface of 1272 x 722
2008-05-02 20:23:22.792 oolite[13770] no universe, clearning surface
2008-05-02 20:23:23.183 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:23.186 oolite[13770] ---> searching paths:
("/usr/lib/GNUstep/System/Applications/oolite.app/Contents/Resources", "/usr/lib/GNUstep/System/Applications/AddOns", "/home/nils/Library/Application Support/Oolite/AddOns", "/home/nils/.Oolite/AddOns")
2008-05-02 20:23:23.186 oolite[13770] DEBUG ** found cache - loading data ...**
2008-05-02 20:23:23.626 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:23.889 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:24.084 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:24.279 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:24.468 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:24.668 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:24.852 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:25.039 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:25.227 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:25.418 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:25.606 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:25.620 oolite[13770] Vertex Array Range optimisation - not supported
2008-05-02 20:23:25.807 oolite[13770] File NSData.m: 922. In [NSDataMalloc -writeToFile:atomically:] Open (http+_www.apple.com_DTDs_PropertyList-1.0.dtd) failed - Permission denied
.:3: validity error : Validation failed: no DTD found !
<plist version="1.0">
                    ^
2008-05-02 20:23:26.072 oolite[13770] DEBUG ** resetting track for <ShipEntity Player 100> **
2008-05-02 20:23:26.562 oolite[13770] Populating a system with economy 5, and government 3
2008-05-02 20:23:26.562 oolite[13770] ... adding 3 trading vessels
2008-05-02 20:23:26.562 oolite[13770] ... adding 0 sun skimming vessels
2008-05-02 20:23:26.562 oolite[13770] ... adding 7 pirate vessels
2008-05-02 20:23:26.562 oolite[13770] ... adding 2 sun skim pirates
2008-05-02 20:23:26.562 oolite[13770] ... adding 1 law/bounty-hunter vessels
2008-05-02 20:23:26.562 oolite[13770] ... adding 1 sun skim law/bounty hunter vessels
2008-05-02 20:23:26.562 oolite[13770] ... adding 0 Thargoid warships
2008-05-02 20:23:26.562 oolite[13770] ... adding 0 asteroid clusters
2008-05-02 20:23:26.562 oolite[13770] ... for a total of 14 ships
2008-05-02 20:23:26.767 oolite[13770] Creating a new surface of 1280 x 725
2008-05-02 20:23:26.810 oolite[13770] OPENGL_DEBUG GL_ERROR (1280) 'invalid enumerant' in: Universe before doing anything
xorg.conf:

Code: Select all

# /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	"bitmap"
	Load	"ddc"
	Load	"dri"
	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"	"gb"
	Option		"XkbVariant"	"no2"
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"
	Identifier	"Synaptics Touchpad"
	Driver		"synaptics"
	Option		"SHMConfig"		"true"
	Option		"SendCoreEvents"	"true"
	Option		"Device"		"/dev/psaux"
	Option		"Protocol"		"auto-dev"
	Option		"HorizScrollDelta"	"0"
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	"Intel i915"
	Driver		"intel"
	BusID		"PCI:0:2:0"
EndSection

Section "Monitor"
	Identifier	"Dell"
	Option		"DPMS"
	HorizSync	28-51
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Intel i915"
	Monitor		"Dell"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1024x768" "800x600" "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"
	InputDevice	"Synaptics Touchpad"
EndSection

Section "DRI"
	Mode	0666
EndSection
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

NilsR wrote:
Getafix wrote:
Davcefai and NilsR,

go into the 'oolite.app' folder and execute the following:

Code: Select all

./oolite >> oolite_stderr.txt &
I suspect you meant this?
Yes, I have corrected it. I am looking into your post now.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

NilsR, please, run <glxinfo> (w/ verbose option if necessary) again and see if you can find a line like:

Code: Select all

...
direct rendering: Yes
...
Furthermore, the following two posts show different models of Intel video card:
The first post shows 945 model
NilsR wrote:
But then this is only a Dell Inspiron 6400 (also called e1505) laptop with two Intel Core Duo T2080 (1.73 GHz) and this for graphics:

OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) 945GM 20061017 x86/MMX/SSE2
OpenGL version string: 1.3 Mesa 7.0.3-rc2
while the second post shows 915 model
NilsR wrote:
xorg.conf:

Code: Select all

...
Section "Device"
   Identifier   "Intel i915"
   Driver      "intel"
   BusID      "PCI:0:2:0"
EndSection

Section "Monitor"
   Identifier   "Dell"
   Option      "DPMS"
   HorizSync   28-51
   VertRefresh   43-60
EndSection

Section "Screen"
   Identifier   "Default Screen"
   Device      "Intel i915" 
...
Could you, please, post the model of Intel video card you actually have?
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
NilsR
Average
Average
Posts: 10
Joined: Tue Apr 29, 2008 11:26 pm
Location: Oslo, Norway
Contact:

Post by NilsR »

Getafix wrote:
NilsR, please, run <glxinfo> (w/ verbose option if necessary) again and see if you can find a line like:

Code: Select all

...
direct rendering: Yes
...
Yes, it's there:

Code: Select all

nils@dell:~$ glxinfo | grep direct
direct rendering: Yes
Getafix wrote:
Furthermore, the following two posts show different models of Intel video card:
Good catch! I never noticed that. :-/
Getafix wrote:
Could you, please, post the model of Intel video card you actually have?
These are the relevant parts when running "sudo lshw":

Code: Select all

     *-pci
          description: Host bridge
          product: Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 03
          width: 32 bits
          clock: 33MHz
          configuration: driver=agpgart-intel module=intel_agp
        *-display:0 UNCLAIMED
             description: VGA compatible controller
             product: Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list
             configuration: latency=0
        *-display:1 UNCLAIMED
             description: Display controller
             product: Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2.1
             bus info: pci@0000:00:02.1
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: latency=0
Does it matter what "Identifier" is used in xorg.conf, isn't that only a name? The "intel" driver would presumably work for both, and detect the actual card? Or maybe I'm being naive...

I suppose I could try answering that myself, by changing the identifier in xorg.conf and see if it matters. I'll report back about that later. [Later: It had no effect whatsoever, good or bad, to change the "Identifier" value to "i945".]
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

Which linux distro are you using? Specify if the distro is for 32 or 64bit arch.
(I didn't manage to find this info posted.)

EDIT: Could you please run

Code: Select all

lspci -vn | grep VGA | awk '{ print $3 }'
and post the result?
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
NilsR
Average
Average
Posts: 10
Joined: Tue Apr 29, 2008 11:26 pm
Location: Oslo, Norway
Contact:

Post by NilsR »

Getafix wrote:
Which linux distro are you using? Please, specify if the distro is for 32 or 64bit arch.
(I didn't manage to find this info posted.)
When first posting in this thread it was 32 bit Ubuntu 7.10 ("Gutsy Gibbon"), later upgraded to 32bit Ubuntu 8.4 ("Hardy Heron").

"uname -a" gives this version of the kernel:

Code: Select all

Linux dell 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux
Upgrading did not change the situation.

Some links, in case it helps:
http://support.dell.com/support/edocs/s ... #wp1054574
http://support.intel.com/products/chips ... /index.htm
http://www.intel.com/products/chipsets/gma950/index.htm

I suppose the " DirectX* 9 3D hardware acceleration" is what makes it faster under MS Windows...
Getafix wrote:
EDIT: Could you please run

Code: Select all

lspci -vn | grep VGA | awk '{ print $3 }'
and post the result?
Here you are:

Code: Select all

nils@dell:~$ lspci -vn | grep VGA | awk '{ print $3 }'
8086:27a2
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

The good news (for me) is that I'm running 8.04 too, and that will facilitate my investigation.

The bad news (for you) is that if the value returned by "lspci" is 8086:27ae, then
the solution is posted in Ubuntu forum. Tough luck!

Thanks for the useful links. The investigation will go on.

EDIT: Have you upgraded from 7.10 to 8.04, or did a fresh install?
Is there a way for you to test a fresh installation of 8.04 (see this post)?
I had 7.10 with recompiled kernel (to use nVidia drivers) and upgrading to 8.04 was a disaster,
as far as it concerns the display. A fresh install (I didn't have much to loose, though) solved my problems.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
User avatar
NilsR
Average
Average
Posts: 10
Joined: Tue Apr 29, 2008 11:26 pm
Location: Oslo, Norway
Contact:

Post by NilsR »

Getafix wrote:
The good news (for me) is that I'm running 8.04 too, and that will facilitate my investigation.
Though you seem to run the 64bit version?
Getafix wrote:
The bad news (for you) is that if the value returned by "lspci" is 8086:27ae, then
the solution is posted in Ubuntu forum. Tough luck!
Good find, though the bad news is actually that I do have the 945GM ("8086:27a2"), so the solution in that thread doesn't apply to me. Too bad.
Getafix wrote:
Thanks for the useful links. The investigation will go on.
You have been most helpful! However, I suspect this is only solvable by the driver developers.

Some links I've found there:

https://bugs.freedesktop.org/show_bug.cgi?id=10485
Summary: Hardware accelerated compositing is slow
http://lists.freedesktop.org/archives/x ... 32528.html
Difference blocks are still memcpy-ed into buffers that allocated to
device, which is bad. Will see how to use new bufmgr to fix this.
Getafix wrote:
EDIT: Have you upgraded from 7.10 to 8.04, or did a fresh install?
Is there a way for you to test a fresh installation of 8.04 (see this post)?
I had 7.10 with recompiled kernel (to use nVidia drivers) and upgrading to 8.04 was a disaster,
as far as it concerns the display. A fresh install (I didn't have much to loose, though) solved my problems.
I might try that, though a little reluctantly. It's a preinstalled Dell with some special partitions. I am going to liberate myself from that setup at some point, if for nothing else to switch away from Gnome. But I haven't got the time right now to make sure I don't mess it up... Also, I use the standard driver, so probably will not benefit like you did.
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

Post by Getafix »

The differences between the two distros (32 & 64 bit) have nothing to do with your case.

I know the solution could not be applied to your case. I just posted it in case it was useful to someone with the correct values.

I dive back in now.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
Post Reply