Eu tive problemas, mas segui esses passos e tudo começou bem: Como instalar o driver nvidia optimus?
Basicamente, tirado do CruzBishop:
#if you have previously installed nvidia or bumblebee from the repos:
sudo apt-get purge bbswitch-dkms bumblebee-nvidia
#if you have previously installed nvidia drivers from the Nvidia.com binary, you can uninstall it running the same installer.
#next steps:
sudo apt-get install linux-headers-3.5.0-17-generic
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get install bumblebee bumblebee-nvidia
#reboot
#install cuda the old way, as you have done in 12.04
Funcionou para mim.