Page 1 of 1

Celestia Debian woes

Posted: 16.01.2009, 08:40
by LordFerret
Howdy all -

I've got Celestia v1.5.1 installed, finally, I've been out of the loop for a bit, and I find I now have a few problems. I'm not sure if this belongs in the 'Bugs' section, so if it does, Selden, please move it. Thanks.

The first issue is that none of the settings I make are saved - like setting Auto Mag Limit, or un-checking the Limit Frame Rate box in the Options menu. I think I have a possible answer for that though (confirm it for me please) - because I installed Celestia as a root and am now running it as a user? A permissions thing?

Second is the application's cursor. It used to be a fine line reticule, and now it's a big blocky square cross. The cursor also disappears when the mouse stops moving, and then reappears as the mouse moves again... is this normal?

Third is that nividia's OpenGL drivers do not seem to be available. The best render path available is multitexture.

My machine's specifications have changed (my signature needs to be updated)...

Compaq 5900Z, AMD Athlon @ 1ghz, a whopping 512mb memory, nvidia Riva TNT2 Ultra (AGP x1) graphics card. Debian Etch (4.0) with nvidia's own drivers installed, with Gnome 2.14.3 desktop. I may not be entirely up to date as far as Debian/Gnome is concerned. :(

Vendor: NVIDIA Corporation
Renderer: RIVA TNT2/AGP/3DNOW!
Version: 1.5.3 NVIDIA 71.86.06
Max simultaneous textures: 2
Max texture size: 2048

Supported Extentions:
GL_ARB_imaging
GL_ARB_multitexture
GL_ARB_point_parameters
GL_ARB_texture_env_add
GL_ARB_texture_mirrored_repeat
GL_ARB_transpose_matrix
GL_ARB_vertex_buffer_object
GL_ARB_window_pos
GL_EXT_texture_env_add
GL_EXT_abgr
GL_EXT_bgra
GL_EXT_compiled_vertex_array
GL_EXT_draw_range_elements
GL_EXT_fog_coord
GL_EXT_multi_draw_arrays
GL_EXT_packed_pixels
GL_EXT_pixel_buffer_object
GL_EXT_point_parameters
GL_EXT_rescale_normal
GL_EXT_secondary_color
GL_EXT_separate_specular_color
GL_EXT_stencil_wrap
GL_EXT_texture_edge_clamp
GL_EXT_texture_env_combine
GL_EXT_texture_lod_bias
GL_EXT_texture_object
GL_EXT_vertex_array
GL_IBM_rasterpos_clip
GL_IBM_texture_mirred_repeat
GL_KTX_buffer_region
GL_NV_blend_square
GL_NV_fog_distance
GL_NV_light_max_exponent
GL_NV_packed_depth_stencil
GL_NV_texgen_reflection
GL_NV_texture_env_combine4
GL_SGIS_multitexture
GL_SUN_slice_accum

Other than the above, the application runs fine, with a decent framerate even - which I'll imagine would improve were OpenGL working properly. Oh and there is one more thing - the clouds on Earth are over the wrong continents (again). Any help or ideas would be appreciated - thanks! :D

Re: Celestia Debian woes

Posted: 17.01.2009, 06:02
by John Van Vliet
--- edit ---

Re: Celestia Debian woes

Posted: 17.01.2009, 08:22
by LordFerret
Thanks for the tips John. I thought there might be a permissions problem, just wasn't too sure. It's been so long since I've worked with this stuff and I've forgotten a lot of it. :(

According to the nvidia docs I did grab the proper driver package, the exact one you've mentioned (NVIDIA-Linux-x86-71.86.06-pkg1.run). I also had to install gcc and let it compile the driver(s) because there was nothing predefined for my system.

I edited the x-term cfg file manually (/etc/X11/xorg.conf) because I neglected to install their configuration utility. That was no big deal and easy enough to do. I followed the docs provided for my card, but there was no mention of defining a ModulePath - only a FontPath. There is however a section defining Device with Driver set to "nvidia". I'll have to re-read the docs, and I think I'll also install their configuration utility and start using it. I seem to recall now mention being made that if you install other packages you'll likely need to reinstall the drivers again. I'll have to look at that too because I've done exactly that. :roll:

I was unaware I needed to reinstall mesaGL.deb and the dev.deb.

Guess I've got my homework cut out for me. Thanks for pointing me in the right direction. :D

Re: Celestia Debian woes

Posted: 17.01.2009, 11:28
by cartrite
On the Suse systems, the kernel source pkgs also need to be installed. You might need that installed as well as gcc.
cartrite

Re: Celestia Debian woes

Posted: 17.01.2009, 20:00
by John Van Vliet
--- edit ---

Re: Celestia Debian woes

Posted: 17.01.2009, 20:33
by LordFerret
Yes, there is a legacy driver for the card, and supposedly it's installed. As for the kernel sources issue, I had to install the headers prior to building the driver(s)... they must be present before the installer is run. I still need to check if the modules/extensions were indeed autodetected, a project for today, because while all indications are that the drivers are installed and present - Celestia still is not using them (which is strange, because Celestia reports the OpenGL extensions detected, as I showed in my first post). :|

I changed the permissions no problem. Now settings made in Celestia stick. :D

Re: Celestia Debian woes

Posted: 18.01.2009, 00:57
by John Van Vliet
--- edit ---

Re: Celestia Debian woes

Posted: 02.02.2009, 22:59
by LordFerret
Update -

I ended up uninstalling Nvidia's drivers, I couldn't get it configured where Celestia sees OpenGL. Instead I installed Debian's version (Etch) of the Nvidia drivers, which includes the legacy set which covers my card. Oddly enough, even after following the suggested "Debian way" (see http://wiki.debian.org/NvidiaGraphicsDrivers) Celestia still does not see OpenGL... although the glxgears demo in Debian works just fine (indicating OpenGL works). The best I can get is still Multitexture. :?

You mentioned earlier (John) about my xorg.conf setup...

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 /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"
EndSection

Section "Files"
   # path to xorg stuff
    ModulePath      "/usr/lib/xorg/modules"
    ModulePath      "/usr/lib/xorg/modules/extensions"
   # 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     "Generic Monitor"
    HorizSync       28.0 - 64.0
    VertRefresh     43.0 - 60.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "nVidia Corporation NV5 [RIVA TNT2 Ultra]"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "nVidia Corporation NV5 [RIVA TNT2 Ultra]"
    Monitor        "Generic Monitor"
    DefaultDepth    24
    Option         "RenderAccel" "true"
    Option         "AllowGLXWithComposite" "true"
    Option         "AddARGBGLXVisuals" "true"
    SubSection     "Display"
        Depth       1
        Modes      "1280x1024" "1280x768" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1280x1024" "1280x768" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1280x1024" "1280x768" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1280x1024" "1280x768" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024" "1280x768" "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1280x768" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection



I'm open to any and all suggestions. Thanks.

Re: Celestia Debian woes

Posted: 03.02.2009, 03:01
by John Van Vliet
--- edit ---

Re: Celestia Debian woes

Posted: 03.02.2009, 07:00
by LordFerret
Humm, this is odd.

I have a /usr/X11R6/lib/X11 directory, but the only thing in it is another directory called "fonts".

All of my drivers and such are in the following -
/usr/lib/xorg

Code: Select all

libXvMCNVIDIA_dynamic.so.1 libXvMCNVIDIA.so.1

/usr/lib/xorg/modules

Code: Select all

drivers      libcfb.so    libpcidata.so   libvgahw.so      libxf8_32bpp.so
extensions   libddc.so    librac.so       libvm86.so       linux
fonts        libexa.so    libramdac.so    libx86emu.so     multimedia
input        libfb.so     libscanpci.so   libxaa.so
libafb.so    libi2c.so    libshadowfb.so  libxf1bpp.so
libcfb16.so  libint10.so  libshadow.so    libxf4bpp.so
libcfb32.so  libmfb.so    libvbe.so       libxf8_16bpp.so

/usr/lib/xorg/modules/extensions

Code: Select all

libdbe.so  libextmod.so  libglx.so           librecord.so
libdri.so  libGLcore.so  libglx.so.1.0.7184  libxtrap.so


The only thing I notice different between my configuration and yours is that you have a ModulePath for a directory called "drivers", which I'm missing. I've since added it to my xorg.conf file. The directory contents -

Code: Select all

apm_drv.so        glint_drv.so     r128_drv.so           trident_drv.so
ark_drv.so        i128_drv.so      radeon_drv.so         tseng_drv.so
ati_drv.so        i740_drv.so      rendition_drv.so      v4l_drv.so
atimisc_drv.so    i810_drv.so      s3_drv.so             vesa_drv.so
chips_drv.so      imstt_drv.so     s3virge_drv.so        vga_drv.so
cirrus_alpine.so  mga_drv.so       savage_drv.so         via_drv.so
cirrus_drv.so     neomagic_drv.so  siliconmotion_drv.so  vmware_drv.so
cirrus_laguna.so  newport_drv.so   sis_drv.so            voodoo_drv.so
cyrix_drv.so      nsc_drv.so       sisusb_drv.so
dummy_drv.so      nv_drv.so        tdfx_drv.so
fbdev_drv.so      nvidia_drv.o     tga_drv.so

Why "nvidia_drv.o" is named as such, I have no idea. Placing a copy of it as "nvidia_drv.so" has made no difference.

I installed and ran compiz-check, and the outcome doesn't look too good. :(
Distribution: Debian GNU/Linux (4.0)
Desktop environment: GNOME
Graphics chip: nVidia Corporation NV5 [RIVA TNT2 Ultra] (rev 11)
Driver in use: Unknown
Rendering method: Nvidia

Checking if it's possible to run Compiz on your system...

Checking for texture_from_pixmap... [FAIL]
Checking for non power of two support... [FAIL]
Checking for composite extension... [FAIL]
Checking for FBConfig... [ OK ]
Checking for hardware/setup problems... [FAIL]

There has been (at least) one error detected with your setup:
Error: Unknown driver in use.

I'm guessing it might be prudent to start from scratch again, uninstalling everything nvidia and manually deleting any leftover nvidia driver files in those paths. The only drivers that should be currently installed (according to Synaptic Package Manager) are -

Code: Select all

nvidia-glx-legacy
nvidia-kernel-common
nvidia-kernel-legacy-2.6.18-6-486
nvidia-kernel-legacy-source
nvidia-settings
nvidia-xconfig
xserver-xorg-video-nv



Thanks for your continued help, I do appreciate it.