Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to find a suitable X Visual
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Thu Feb 06, 2003 4:21 am    Post subject: Unable to find a suitable X Visual Reply with quote

I'm having a problem with a program I just installed called, "Search And Rescue"... it's a game, yeah.. but it uses OpenGL and I've had this problem a couple other times with OpenGL stuff. It's gotten tot he point that I can't use OpenGL programs and that's bad :)

When I start up the app (normal command line, /usr/games/SearchAndRescue) it says:
Code:

Unable to find a suitable X Visual.

Please verify that you have an X Visual suitable for OpenGL rendering
by running "xdpyinfo". Also note that defining multiple Visuals
may confuse the selection of a proper Visual (in which case try defining
only one Visual.


I've ran xdpyinfo but I'm not sure what to look at in there at all.

here's it's output:
Code:

name of display:    :0.0
version number:    11.0
vendor string:    Gentoo Linux (XFree86 4.2.0, revision r12)
vendor release number:    40200000
XFree86 version: 4.2.0
maximum request size:  4194300 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x2000004, revert to PointerRoot
number of extensions:    29
    BIG-REQUESTS
    DOUBLE-BUFFER
    DPMS
    Extended-Visual-Information
    FontCache
    GLX
    LBX
    MIT-SCREEN-SAVER
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
    NV-CONTROL
    NV-GLX
    NVIDIA-GLX
    RECORD
    RENDER
    SECURITY
    SHAPE
    SYNC
    TOG-CUP
    XC-APPGROUP
    XC-MISC
    XFree86-Bigfont
    XFree86-DGA
    XFree86-Misc
    XFree86-VidModeExtension
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1280x960 pixels (374x271 millimeters)
  resolution:    87x90 dots per inch
  depths (7):    16, 1, 4, 8, 15, 24, 32
  root window id:    0x62
  depth of root window:    16 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    64
  preallocated pixels:    black 0, white 65535
  options:    backing-store NO, save-unders NO
  largest cursor:    32x32
  current input event mask:    0xda4031
    KeyPressMask             EnterWindowMask          LeaveWindowMask
    KeymapStateMask          StructureNotifyMask      SubstructureNotifyMask
    SubstructureRedirectMask PropertyChangeMask       ColormapChangeMask
  number of visuals:    4
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    16 planes
    available colormap entries:    64 per subfield
    red, green, blue masks:    0xf800, 0x7e0, 0x1f
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x22
    class:    DirectColor
    depth:    16 planes
    available colormap entries:    64 per subfield
    red, green, blue masks:    0xf800, 0x7e0, 0x1f
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x23
    class:    TrueColor
    depth:    16 planes
    available colormap entries:    64 per subfield
    red, green, blue masks:    0xf800, 0x7e0, 0x1f
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x24
    class:    DirectColor
    depth:    16 planes
    available colormap entries:    64 per subfield
    red, green, blue masks:    0xf800, 0x7e0, 0x1f
    significant bits in color specification:    8 bits


I know it's not Gentoo that's the problem. But, it may well be my OpenGL setup. I've re-ran "opengl-update nvidia" to make sure that wasn't it, nope.. it wasn't. heh...
I'm at a loss... does anyone have any ideas?
Back to top
View user's profile Send private message
Kezza
n00b
n00b


Joined: 11 Dec 2002
Posts: 49

PostPosted: Tue Feb 11, 2003 2:06 am    Post subject: Reply with quote

I clutching at straws here...

Someone else had the same problem as you. The only advice he ever got was to run with a smaller resolution.

link

Sorry, but this was all I could find.


EDIT: added url tags to long link. -- kanuslupus
Back to top
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Mon Jul 10, 2006 8:39 pm    Post subject: Reply with quote

Set 'DefaultDepth' and 'Depth' in /etc/x11/xorg.conf to 24. That solved it for me.
_________________
My favorite links this month:
- Surf Random
- Web-based SSH
- Stop Spam
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum