Ubuntu Linux + Octave

Hi,
I'm trying to get Psychtoolbox running under Ubuntu Linux and octave.
I am nearly there, but not quite. I seem to be missing some X11
configuration, as shown here.

octave:2> DrawSomeTextDemo
PTB-WARNING: Couldn't enable AUX buffers on onscreen window
due to limitations of your gfx-hardware or driver. Some
features may be disabled or limited...

PTB-ERROR[glXChooseVisual() failed]: Couldn't get any suitable
visual from X-Server.

PTB-ERROR[Low-Level setup of window failed]:The specified
display may not support double buffering and/or stereo output.
There could be insufficient video memory

Does anybody happen to know what I'm missing?

I'm loading the following X11 modules in /etc/X11/xorg.conf
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "int10"
Load "type1"
Load "vbe"
Load "dbe" # Double-buffering extension
Load "glx" # 3D layer
Load "dri" # Direct Rendering Support
EndSection

Section "DRI"
Mode 0666
EndSection


Apart from the standard Ubuntu (6.06 LTS) packages, I am using
octave-2.1.73, libdc1394-2.0.0-pre7, libraw1394-1.2.0 and the
psychtoolbox source code from the head of the beta tree
svn://svn.berlios.de/osxptb/beta
Which driver are you using for the video card? If you are using the
"vesa" driver - you will not have buffering enabled. Also, if using an
nvidia card, make sure you have the proprietary nvidia kernel modules
installed instead of the "nv" driver.

Could you forward your entire xorg.conf file?

Kevin


Stewart Heitmann wrote:
>
> Hi,
> I'm trying to get Psychtoolbox running under Ubuntu Linux and octave.
> I am nearly there, but not quite. I seem to be missing some X11
> configuration, as shown here.
>
> octave:2> DrawSomeTextDemo
> PTB-WARNING: Couldn't enable AUX buffers on onscreen window
> due to limitations of your gfx-hardware or driver. Some
> features may be disabled or limited...
>
> PTB-ERROR[glXChooseVisual() failed]: Couldn't get any suitable
> visual from X-Server.
>
> PTB-ERROR[Low-Level setup of window failed]:The specified
> display may not support double buffering and/or stereo output.
> There could be insufficient video memory
>
> Does anybody happen to know what I'm missing?
>
> I'm loading the following X11 modules in /etc/X11/xorg.conf
> Section "Module"
> Load "i2c"
> Load "bitmap"
> Load "ddc"
> Load "dri"
> Load "extmod"
> Load "freetype"
> Load "int10"
> Load "type1"
> Load "vbe"
> Load "dbe" # Double-buffering extension
> Load "glx" # 3D layer
> Load "dri" # Direct Rendering Support
> EndSection
>
> Section "DRI"
> Mode 0666
> EndSection
>
> Apart from the standard Ubuntu (6.06 LTS) packages, I am using
> octave-2.1.73, libdc1394-2.0.0-pre7, libraw1394-1.2.0 and the
> psychtoolbox source code from the head of the beta tree
> svn://svn.berlios.de/osxptb/beta <svn://svn.berlios.de/osxptb/beta>
>
>
Hi,

Could you please post the output of the "glxinfo" command ? There could
be a hint in there.

Thanks,

Simon Barthelmé


Stewart Heitmann a écrit :
>
> Hi,
> I'm trying to get Psychtoolbox running under Ubuntu Linux and octave.
> I am nearly there, but not quite. I seem to be missing some X11
> configuration, as shown here.
>
> octave:2> DrawSomeTextDemo
> PTB-WARNING: Couldn't enable AUX buffers on onscreen window
> due to limitations of your gfx-hardware or driver. Some
> features may be disabled or limited...
>
> PTB-ERROR[glXChooseVisual() failed]: Couldn't get any suitable
> visual from X-Server.
>
> PTB-ERROR[Low-Level setup of window failed]:The specified
> display may not support double buffering and/or stereo output.
> There could be insufficient video memory
>
> Does anybody happen to know what I'm missing?
>
> I'm loading the following X11 modules in /etc/X11/xorg.conf
> Section "Module"
> Load "i2c"
> Load "bitmap"
> Load "ddc"
> Load "dri"
> Load "extmod"
> Load "freetype"
> Load "int10"
> Load "type1"
> Load "vbe"
> Load "dbe" # Double-buffering extension
> Load "glx" # 3D layer
> Load "dri" # Direct Rendering Support
> EndSection
>
> Section "DRI"
> Mode 0666
> EndSection
>
> Apart from the standard Ubuntu (6.06 LTS) packages, I am using
> octave-2.1.73, libdc1394-2.0.0-pre7, libraw1394-1.2.0 and the
> psychtoolbox source code from the head of the beta tree
> svn://svn.berlios.de/osxptb/beta <svn://svn.berlios.de/osxptb/beta>
>
>
Simon Barthelmé wrote:
> Could you please post the output of the "glxinfo" command ? There could
> be a hint in there.

Sure, here it is:

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_EXT_import_context, GLX_OML_swap_method,
GLX_SGI_make_current_read,
GLX_SGIS_multisample, GLX_SGIX_hyperpipe, GLX_SGIX_swap_barrier,
GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample,
GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating,
GLX_MESA_allocate_memory,
GLX_MESA_swap_control, GLX_MESA_swap_frame_usage,
GLX_OML_swap_method,
GLX_OML_sync_control, GLX_SGI_make_current_read,
GLX_SGI_swap_control,
GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group,
GLX_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample,
GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
GLX_SGI_make_current_read,
GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: VA Linux Systems Inc.
OpenGL renderer string: Mesa DRI G400 20050609 AGP 4x
OpenGL version string: 1.2 Mesa 6.4.1
OpenGL extensions:
GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_texture_compression,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_crossbar, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_program, GL_ARB_window_pos,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_logic_op,
GL_EXT_clip_volume_hint,
GL_EXT_compiled_vertex_array, GL_EXT_copy_texture,
GL_EXT_draw_range_elements, GL_EXT_fog_coord,
GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_polygon_offset, GL_EXT_rescale_normal,
GL_EXT_secondary_color, GL_EXT_separate_specular_color,
GL_EXT_stencil_wrap, GL_EXT_subtexture, GL_EXT_texture,
GL_EXT_texture3D,
GL_EXT_texture_edge_clamp, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_object,
GL_EXT_texture_rectangle, GL_EXT_vertex_array,
GL_APPLE_packed_pixels,
GL_ATI_texture_env_combine3, GL_IBM_rasterpos_clip,
GL_MESA_ycbcr_texture,
GL_MESA_window_pos, GL_NV_light_max_exponent,
GL_NV_texture_rectangle,
GL_NV_texgen_reflection, GL_NV_vertex_program,
GL_NV_vertex_program1_1,
GL_OES_read_format, GL_SGIS_generate_mipmap,
GL_SGIS_texture_edge_clamp,
GL_SGIS_texture_lod, GL_SUN_multi_draw_arrays
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x24 24 tc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x25 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x26 24 tc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x27 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x28 24 tc 0 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x29 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0x2a 24 tc 0 24 0 r . . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0x2b 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x2c 24 dc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
0x2d 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x2e 24 dc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
0x2f 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x30 24 dc 0 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
0x31 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
0x32 24 dc 0 24 0 r . . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow

--
Stewart Heitmann
Just set the pixelSize argument in Screen('OpenWindow',...) to 16 and you should be done.
PTB requests an 8 bit alpha channel, which your gfx-card doesn't provide, that's why it
fails. If you set pixelSize to 16, PTB will do without an alpha channel, but still use the RGB8
24 bpp color buffer. As long as you don't need complex alpha blending (e.g., like in gaze
contingent displays) it should be fine.

The gfx-performance of the G450 is about one third of the Geforce-2, roughly the state of
the art from 8 years ago. But for the stimuli you describe it should do.

-mario

--- In psychtoolbox@yahoogroups.com, Stewart Heitmann <stewart@...> wrote:
>
> Well I'm getting nowhere with my matrox driver.
> I have it configured for a 32bpp framebuffer...
>
> (--) MGA(0): Chipset: "mgag400" (G450)
> (II) MGA(0): Creating default Display subsection in Screen section
> "Screen1" for depth/fbbpp 24/32
> (--) MGA(0): Depth 24, (**) framebuffer bpp 32
> (==) MGA(0): RGB weight 888
> (**) MGA(0): Option "AGPMode" "4"
> (**) MGA(0): Using AGP 4x mode
>
> ...but Screen('OpenWindow',0) still fails to get any suitable visual
> from the X-Server.
>
> PTB-WARNING: Couldn't enable AUX buffers on onscreen window due
> to limitations of your gfx-hardware or driver. Some features may
> be disabled or limited...
>
> PTB-ERROR[glXChooseVisual() failed]: Couldn't get any suitable
> visual from X-Server.
>
> PTB-ERROR[Low-Level setup of window failed]:The specified display
> may not support double buffering and/or stereo output. There could
> be insufficient video memory
>
> I also get the same problem at lower screen resolutions, so I dont think
> its just a matter of insufficient memory.
>
> As for the Matrix driver configuration, the mga driver will not accept
> a colour depth greater than 24.
> The driver manual is adamant that a colour depth of 32 is meaningless
> although it does permit a 32bpp framebuffer depth, wherein (I presume)
> that it regards the fourth byte of each pixel as unused padding.
>
> I presume this depth/fbbpp 24/32 setup is what PTB requires (correct?).
>
> Even with a 32bpp framebuffer, glxinfo reports only 24 bit depth.
>
> visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
> id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
> ----------------------------------------------------------------------
> 0x23 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
> 0x24 24 tc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
> 0x25 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
> 0x26 24 tc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
> 0x27 24 tc 0 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
> 0x28 24 tc 0 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
> 0x29 24 tc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
> 0x2a 24 tc 0 24 0 r . . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
> 0x2b 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
> 0x2c 24 dc 0 24 0 r . . 8 8 8 0 0 0 0 0 0 0 0 0 0 None
> 0x2d 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
> 0x2e 24 dc 0 24 0 r . . 8 8 8 0 0 24 8 0 0 0 0 0 0 None
> 0x2f 24 dc 0 24 0 r y . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
> 0x30 24 dc 0 24 0 r . . 8 8 8 0 0 0 0 16 16 16 0 0 0 Slow
> 0x31 24 dc 0 24 0 r y . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
> 0x32 24 dc 0 24 0 r . . 8 8 8 0 0 24 8 16 16 16 0 0 0 Slow
>
> I am new to Matlab, Octave, and PTB, so I'm uncertain as to what PTB
> is needing from my driver config that I'm not giving it.
>
> Is there anything obvious wrong with my configuration?
> If not then I'll try it with an NVidia card.
>
> My stimuli will be 2D dot fields, oscillating back and forth every
> second. Nothing 3D. I dont imagine it would require a whizz-bang
> graphics card.
> --
> Stewart Heitmann
>
>
> But
> > spending 100-150$ on a up to date NVidia card will be worth the money if you do
more
> > complex stims.
> >
> > What kind of stimuli do you use?
> >
> > -mario
>
Got it, thanks!
--
Stewart Heitmann


Mario Kleiner wrote:
> Just set the pixelSize argument in Screen('OpenWindow',...) to 16 and you should be done.
> PTB requests an 8 bit alpha channel, which your gfx-card doesn't provide, that's why it
> fails. If you set pixelSize to 16, PTB will do without an alpha channel, but still use the RGB8
> 24 bpp color buffer. As long as you don't need complex alpha blending (e.g., like in gaze
> contingent displays) it should be fine.
>
> The gfx-performance of the G450 is about one third of the Geforce-2, roughly the state of
> the art from 8 years ago. But for the stimuli you describe it should do.
>
> -mario