The problem is solved, I started with an fresh Xorg.conf and changed this one to use with the nvidia driver. Now everything works fine. I think it had something to do with my xorg.conf that was messed up. Maybe with the composite and allowglxwithcomposite options.
Sorry to bother and thanks again.