Login  Register

Window freezes on Nvidia Optimus Laptops, Ubuntu 11.10

Posted by SciePy on Feb 10, 2012; 12:18pm
URL: https://forum.jogamp.org/Window-freezes-on-Nvidia-Optimus-Laptops-Ubuntu-11-10-tp3732317.html

Hello,

we are experiencing some weird issues with a Java project using the Jogl library on Ubuntu 11.10. Basically the AWT window completely freezes as soon as the canvas object is added to the frame, in source code

        frame            = new Frame("test");
        canvas          = new GLCanvas();
        animator     = new FPSAnimator(canvas, 60);
       
        renderer     = new Renderer();
       
        canvas.addGLEventListener(renderer);

        frame.setSize(dim.getWidth(), dim.getHeight());
        frame.add(canvas);   // here it freezes


The application can then only be terminated using SIGKILL.
This problem seems to be somehow related to Nvidias optimus technology since the application works on 3 linux machines (2 x intel integrated graphics, 1 x ATI HD 5870; Ubuntu 11.10, Arch, Debian sid) and crashes on 2 different laptops with Nvidias optimus technology and Ubuntu 11.10.

On both those laptops the nvidia card is disabled at startup using the acpi_call module (https://github.com/mkottman/acpi_call), basically the test_off.sh script is executed.
The glx extension is working and the intel integrated graphics driver is active.
Below I added some command outputs,  if you need more info just say so ;)
glxinfo.txt 
test.log
Note: on the test.sh output the window that opens also freezes and the script must be terminated, so the output is probably not complete.


Thanks,
Sam