OpenGL not working properly
When I was first using 64Studio I was using the latest from NVIDIA... I have since installed the nvidia drivers from the repository, and they work. Except i noticed today OpenGL doesnt go very fast.
ryan@64studio:~$ glxgears -printfps 3749 frames in 5.1 seconds = 731.105 FPS 3720 frames in 5.1 seconds = 727.463 FPS
I think it's a missing library or maybe a broken symlink. Can someone point me in the right direction?
Does my xorg.conf look alright?
nvidia-xconfig: X configuration file generated by nvidia-xconfig
nvidia-xconfig: version 1.0 (buildmeister@builder58) Thu Jun 5 00:08:24 PDT 2008
/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 "ServerLayout" Identifier "Default Layout" Screen "Default Screen" 0 0 InputDevice "Generic Keyboard" InputDevice "Configured Mouse" Option "AIGLX" "true" EndSection
Section "Files"
# path to defoma fonts
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
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 "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" "ImPS/2"
Option "Emulate3Buttons" "true"
EndSection
Section "Monitor" Identifier "MX90" Option "DPMS" EndSection
Section "Device" Identifier "nVidia Corporation GeForce 7100 GS" Driver "nvidia" Option "AllowGLXWithComposite" "true" Option "RenderAccel" "true" EndSection
Section "Screen" Identifier "Default Screen" Option "XAANoOffscreenPixmaps" Option "AddARGBGLXVisuals" "true" Device "nVidia Corporation GeForce 7100 GS" Monitor "MX90" DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Extensions" Option "Composite" "Enable" EndSection
Thanks, Ryan


mine with the 64 Studio
mine with the 64 Studio nVidia drivers, and a GeForce 6200
~$ glxgears -printfps 3089 frames in 5.0 seconds = 617.698 FPS 3089 frames in 5.0 seconds = 617.694 FPS
How fast to you need it to go?
Delta?
What does concern me though is the fact that you have variances in the consecutive calculations. Were you using the system at the time to do something else?
Everything else looks ok though.
Cleaning up xorg.conf
Hi, 1: read: /var/log/Xorg.0.log and try:
$ grep "WW" /var/log/Xorg.0.log $ grep "EE" /var/log/Xorg.0.log
This will show a list of warnings look for errors: e.g. non-existent font paths, resolutions and comment out or delete wrong parameters
$ su (password)
cp /etc/X11/xorg.conf /etc/X11/xorg.conf-backup
If you ever have problems and are dropped into a terminal
ls -la /etc/X11/
cp /etc/X11/xorg.conf-backup /etc/X11/xorg.conf
and reboot should take you back to your default xorg.conf
Example: non-existent font paths.
Section "Files" FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
EndSection
2: Comment out or delete unused resolutions. I leave 16 and 24 only.
Section "Screen" Identifier "Default Screen" Device "nVidia Corporation NV34 [GeForce FX 5200]" Monitor "hp L1702" DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1024x768"
EndSubSection
EndSection
Always BackUp before you begin...
Keep an eye on Section_SubSection_EndSection. Keep the comments in the right places.
Cheers, dave
After tuning...
~$ glxgears -printfps 3090 frames in 5.0 seconds = 617.824 FPS 3089 frames in 5.0 seconds = 617.699 FPS
no noticeable difference here...
Any there?
Crash
~$ glxgears -printfps Crash (gdm welcome screen appears) (64studio 2.1 for 32 bits)
In ubuntu hardy (kernel 2.6.24-19-generic for X86-64): 12537 frames in 5.0 seconds = 2507.209 FPS which is quite a difference compared to your numbers. My video card: 01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400 GS (rev a1)
This being said, I don't see any problem, except that I won't run glxgears in 64studio again. Cheers Pablo
Numbers
Well, if you take into account what I paid for my card I think it performs good enough.
I would expect your card to kick the door down in terms of performance...
Section Examples
One of my xorg.conf's (not 64studio) has over "160" lines of unused code I comment out. It makes a marked difference to how xorg performs. I can see the before/after changes when using the desktop, without using glxgears.
Entries like these.e.g.
Section Identifier "Touchpad" Section Identifier "synaptics" Section Identifier "Appletouch" Section Identifier "Stylus" Section Identifier "Eraser" Section Identifier "Cursor" Section Identifier "Monitor1" Section Identifier "ATIMonitor" Section Identifier "Card1" Section Identifier "Screen1" Section Identifier "ATIScreen" Section "DRI"
Their is no second monitor on this pc, no ATI and no wacom devices. I backup as I make the changes.
cp /etc/X11/xorg.conf xorg.conf-backup1
cp /etc/X11/xorg.conf xorg.conf-backup2 etc,... when done.
cp /etc/X11/xorg.conf xorg.conf-backup3ok
Dont be tempted to copy/paste into xorg.conf, type any changes yourself.
Cheers, dave
Thanks everyone
@Quentin Harley I wasn't doing anything different before I switched to the repo drivers..
In Ubuntu I get
8490 frames in 5.0 seconds = 1697.827 FPS 8565 frames in 5.0 seconds = 1712.932 FPS
compared to in 64studio
3749 frames in 5.1 seconds = 731.105 FPS 3720 frames in 5.1 seconds = 727.463 FPS
When I find time I'll mess around with this but for now I'm just happy X works.
Check your setting in Ubunto and compare...
It should be closely related... and let us know what the differences are.
Cheers,
I went ahead and uninstalled
I went ahead and uninstalled nvidia-glx nvidia-kernel-2.6.21-1-multimedia-amd64 nvidia-kernel-common
Installed NVIDIA-Linux-x86_64-173.14.12-pkg2.run from NVIDIA
It works great:
8657 frames in 5.0 seconds = 1731.224 FPS 8613 frames in 5.0 seconds = 1722.572 FPS 8625 frames in 5.0 seconds = 1724.991 FPS 8635 frames in 5.0 seconds = 1726.802 FPS
Better than in Ubuntu, although I am running fluxbox :)
The problem is everytime I reboot my computer I have to reinstall the NVIDIA driver because X fails to find a screen.
The error message I get is
Fatal server error: No screens found!
Any ideas?
Thanks, Ryan
example settings
Hi,
My Default Screen settings are different to yours? (0 0)? Also there is an entry for the card slot.
examples from my xorg
Section "Device" BusID "PCI:1:0:0"
Section "Screen" Identifier "Default Screen"
Section "ServerLayout" Screen "Default Screen"
your first post xorg settings
Section "ServerLayout" Screen "Default Screen" 0 0
To check old nvidia packages are removed:
$ dpkg -l |grep nvidia
Also once you have installed the 64studio nvidia package and then installed the binary drivers the paths can get confused, I have always managed by uninstalling the binary driver and then reinstalling again. Sometimes I have to repeat the uninstall/install a couple of times. Always with gdm stopped and running init 3 (X stopped).
[ctrl]+[alt]+[f1] login.
init 3
if no root prompt press [Enter] again.
/etc/init.d/gdm stop
sh NVIDIA-Linux-x86_64-173.14.12-pkg2.run --uninstall
Then install the driver.
Refresh rate settings can also cause screen problems. in the past I have used this type of setting. You would need the settings for your monitor. Section "Monitor" #Option "DPMS" VertRefresh 55-160 HorizSync 30-96
Edit: Check to make sure uninstalling the nvidia.deb package also removed the scripts. If not.
$ cd /etc/init.d/ $ ls -a $ sudo update-rc.d -f nvidia-glx remove $ sudo update-rc.d -f nvidia-kernel remove
You may have to uninstall/reinstall the binary driver again.
If you still have no luck try an earlier driver.
keep an eye on these for clues
$ grep "WW" /var/log/Xorg.0.log $ grep "EE" /var/log/Xorg.0.log $ grep "II" /var/log/Xorg.0.log
Cheers, dave
Thanks Dave!
It works!
I ran,
$ sudo update-rc.d -f nvidia-glx remove $ sudo update-rc.d -f nvidia-kernel remove
and removed the "0 0" after default screen in xorg.conf (Nice job spotting that!).
rebooted and works like a charm :)
I still have one more 'weird' problem but I'm thinking it's maybe a defect in my video card. Sometimes, only sometimes, my computer wont boot into X. Dmesg outputs
NVRM: RmInitAdapter failed! (0x12:0x2b:1607) NVRM: rm_init_adapter(0) failed eth1: no IPv6 routers present NVRM: RmInitAdapter failed! (0x12:0x2b:1607) NVRM: rm_init_adapter(0) failed NVRM: RmInitAdapter failed! (0x12:0x2b:1607) NVRM: rm_init_adapter(0) failed NVRM: RmInitAdapter failed! (0x12:0x2b:1607) NVRM: rm_init_adapter(0) failed
I am certain I have gotten the same error in Ubuntu. Like I said, its pretty random. I think this occurs when I'm running windows and reboot back into Linux. Thing is, I don't ever remember this happening before I repartitioned and installed 64studio and windows. I'm going to go try and reproduce this error. This time I'll be sure to run
$ grep "WW" /var/log/Xorg.0.log $ grep "EE" /var/log/Xorg.0.log $ grep "II" /var/log/Xorg.0.log
Thanks again, Ryan
IRQ Sharing & ipv6
Hi Ryan, I install the binary driver first without using the .deb ones. So /etc/init.d/ has no entries to begin with. You only get these scripts when installing the .deb nvidia, thats why I had to edit the post. nVidia and binary drivers have always been a pain with linux. I try hard here to configure X and do without binary drivers on my main studio. One day nvidia might release the code and the linux developers will be able to move forward with graphics development for the cards.
Make sure your IRQ's are not sharing?
$ cat /proc/interrupts
Take a look at the section: Temporarily Edit the GRUB Menu
http://users.bigpond.net.au/hermanzone/p15.htm#Temporarily_Edit_the_GRUB_Menu
By typing "e" you can temporarily edit the kernel boot line, here is how mine are set, Take note some laptops need acpi. Once $ cat /proc/interrupts shows IRQ's are not being shared you can edit your /boot/grub/menu.lst to make the changes permanent.
e.g. ro acpi=off pci=noacpi apm=off noapic vga=791
$ cat /proc/interrupts
10: 42286 XT-PIC-XT nvidia
My nvidia card is not sharing with other cards "noapic" did the job.
Disable ipv6
sudo nano /etc/modprobe.d/aliases or sudo gedit /etc/modprobe.d/aliases
Will look like this
alias net-pf-10 ipv6
Change it and add the second line underneath so it looks like this. This will disable ipv6.
alias net-pf-10 off
alias ipv6 off
You will see better web browsing performance with ipv6 disabled.
Cheers,
dave