I tried it many times and finally installed CUDA 7.5 on my laptop (Nvidia GeForce 750M) with optimus. It was very tricky but these steps worked for me.
Step 1: Switch to kubuntu.
(Some other linux desktop should also work, e.g. lubuntu, mate) According to this tutorial, both Ubuntu Unity and Gnome3 desktops were very susceptible to black-screen states and/or corrupted workspaces. KDE didn’t seem to suffer from these problems. Following commands can help you to do the switch:
This website is going to be used for all kinds of personal notes and blogs.