Hi!
I've got a C/C++ app using the GLFW Library on a netbook-like device running Ubuntu 8.10.
As far as I understand the source the GLFW lib, it creates its window using calls to the X-Window library.
We do not use any desktop on the machine but login to a tty and start a X-server in the background. When running the compiled application from a tty* on the target platform during the call to
glfwOpenWindow( ... );
glXQueryExtension( ...);
_glfwChooseVisual( ... );
XGetVisualInfo( ... );
the application halts. It does NOT crash. When switching to the X-Window by hitting Ctrl+Alt+F7 the application continues normally.
What could cause this weird behaviour?
BEGIN_EDIT:
Now I am quite sure the problem is related to the configuration of either Ubuntu or the x-server. When I try to run
glxinfo
in the shell the command also hangs until I switch to the X-window by hitting CTRL+ALT+F7. When I return to my shell after hitting the keys the command has finished.
Could it be that the X-server is put to 'sleep' when in console mode?
END_EDIT;