Author Topic: no glx visual with NVidia on Fedora 12  (Read 6065 times)

movement

  • Posts: 6
  • Turrets: +1/-0
no glx visual with NVidia on Fedora 12
« on: January 03, 2010, 10:54:20 pm »
$ /usr/local/games/tremulous/tremulous.x86
tremulous 1.1.0 linux-x86 Feb 28 2006
----- FS_Startup -----
Current search path:
/home/moz/.tremulous/base
/usr/local/games/tremulous/base/vms-1.1.0.pk3 (4 files)
/usr/local/games/tremulous/base/map-uncreation-1.1.0.pk3 (110 files)
/usr/local/games/tremulous/base/map-tremor-1.1.0.pk3 (45 files)
/usr/local/games/tremulous/base/map-transit-1.1.0.pk3 (135 files)
/usr/local/games/tremulous/base/map-niveus-1.1.0.pk3 (134 files)
/usr/local/games/tremulous/base/map-nexus6-1.1.0.pk3 (151 files)
/usr/local/games/tremulous/base/map-karith-1.1.0.pk3 (118 files)
/usr/local/games/tremulous/base/map-atcs-1.1.0.pk3 (87 files)
/usr/local/games/tremulous/base/map-arachnid2-1.1.0.pk3 (67 files)
/usr/local/games/tremulous/base/data-1.1.0.pk3 (1229 files)
/usr/local/games/tremulous/base

----------------------
2080 files in pk3 files
execing default.cfg
couldn't exec autogen.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----

------- Input Initialization -------
Joystick is not active.
------------------------------------
...loading libGL.so.1:
Calling SDL_Init(SDL_INIT_VIDEO)...
SDL_Init(SDL_INIT_VIDEO) passed.
Initializing OpenGL display
...setting mode 3: 640 480
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
SDL_SetVideoMode failed: Couldn't find matching GLX visual
Couldn't get a visual
...WARNING: could not set the given mode (3)
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: GLimp_Init() - could not load OpenGL subsystem


$ glxinfo | grep direct
direct rendering: Yes


$ rpm -q kmod-nvidia
kmod-nvidia-190.42-1.fc12.9.x86_64


glxgears work.

+set r_mode 8 (1280x1024, the mode I'm running) doesn't help.

Note I have two 1280x1024 screens enabled via TwinView.

Any suggestions?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: no glx visual with NVidia on Fedora 12
« Reply #1 on: January 03, 2010, 10:56:45 pm »
what's uname -a?
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

movement

  • Posts: 6
  • Turrets: +1/-0
Re: no glx visual with NVidia on Fedora 12
« Reply #2 on: January 03, 2010, 11:01:33 pm »
Linux pent 2.6.31.9-174.fc12.x86_64 #1 SMP Mon Dec 21 05:33:33 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux

movement

  • Posts: 6
  • Turrets: +1/-0
Re: no glx visual with NVidia on Fedora 12
« Reply #3 on: January 03, 2010, 11:02:02 pm »
I also disabled TwinView - same result.

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: no glx visual with NVidia on Fedora 12
« Reply #4 on: January 03, 2010, 11:15:03 pm »
Are the glx extensions being activated via xorg.conf?

movement

  • Posts: 6
  • Turrets: +1/-0
Re: no glx visual with NVidia on Fedora 12
« Reply #5 on: January 03, 2010, 11:15:58 pm »
Yes. xorg.conf:

$ cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (mockbuild@builder.wilsonet.com)  Sun Nov 22 21:42:15 EST 2009

# Xorg configuration created by livna-config-display

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    ModulePath      "/usr/lib64/xorg/modules/extensions/nvidia"
    ModulePath      "/usr/lib64/xorg/modules"
EndSection

Section "ServerFlags"
    Option         "AIGLX" "on"
EndSection

Section "InputDevice"

    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "gb"
    Option         "XkbModel" "pc105"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "HP LP1965"
    HorizSync       24.0 - 83.0
    VertRefresh     48.0 - 76.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "PhilipsTV (5)"
    HorizSync       31.0 - 80.0
    VertRefresh     47.0 - 85.0
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    Option         "AddARGBGLXVisuals" "True"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 295"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro NVS 295"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Videocard0"
    Monitor        "Monitor0"
EndSection

Section "Screen"

# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: nvidia-auto-select +1280+0"
# Removed Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: 1280x1024 +1280+0"
# Removed Option "TwinView" "1"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1280x1024 +1280+0"
# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1280x768 +1280+0"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1280x1024 +1280+0"
# Removed Option "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1024x768 +1280+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "1"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1280x1024 +1280+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "DFP-1: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: no glx visual with NVidia on Fedora 12
« Reply #6 on: January 03, 2010, 11:20:35 pm »
Try disabling composite/AIGLX to avoid trouble with those features.

Also in my xorg.conf I have a glx entry:

Quote
Section "Module"
  Load         "dbe"
  Load         "type1"
  Load         "freetype"
  Load         "extmod"
  Load         "glx"
EndSection

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: no glx visual with NVidia on Fedora 12
« Reply #7 on: January 03, 2010, 11:23:05 pm »
you don't have a 32 bit libgl installed (or it's software mesa), you'll need to install nvidia-glx-ia32 or use a newer client with proper 64 bit support (such as this one)
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

movement

  • Posts: 6
  • Turrets: +1/-0
Re: no glx visual with NVidia on Fedora 12
« Reply #8 on: January 03, 2010, 11:29:06 pm »
I've now also tried a 64-bit RPM from here:

wget ftp://ftp.is.co.za/mirror/fedora.redhat.com/linux/releases/12/Everything/x86_64/os/Packages/tremulous-1.1.0-10.fc12.x86_64.rpm

with no luck.

However, the binary you pointed to does work, thanks!

Next problem, it's using all of both displays. How can I restrict it to only the first half? Setting r_width just affects the size of the image not its positioning.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: no glx visual with NVidia on Fedora 12
« Reply #9 on: January 03, 2010, 11:42:27 pm »
you'll need to look up metamodes for that.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

movement

  • Posts: 6
  • Turrets: +1/-0
Re: no glx visual with NVidia on Fedora 12
« Reply #10 on: January 03, 2010, 11:59:12 pm »
After a little fiddling, I did:

    Option         "metamodes" "DFP-0: 1280x1024 +0+0, DFP-1: 1280x1024 +1280+0; DFP-0: 1280x1024 +0+0"

Now, tremulous when it starts seems to use the second part of this configuration (after the semicolon). Great, thanks!

Finally, I get up the console. But all the info on the web seems to tell me I should have some kind of GUI. I have no
menus at all, just the console prompt and a bunch of info?