# Nvidia + Bumblebee + CUDA for Optimus

**URL:** <https://forums.developer.nvidia.com/t/nvidia-bumblebee-cuda-for-optimus/34022>\
**Category:** Linux\
**Created:** [July 12, 2014, 7:58pm UTC](https://forums.developer.nvidia.com/t/nvidia-bumblebee-cuda-for-optimus/34022 "2014-07-12T19:58:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quest32255](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Quest32255](https://forums.developer.nvidia.com/u/Quest32255)\
**Post date:** [July 12, 2014, 7:58pm UTC](https://forums.developer.nvidia.com/t/nvidia-bumblebee-cuda-for-optimus/34022/1 "2014-07-12T19:58:34Z")

</div>

Hello all,

Not sure if anyone can help me here, but I will try and be as precise as possible in exposing my problem…

I’m trying to install Nvidia 331.67 + Bumblebee 3.2.1 and CUDA 5.5, in Kali Linux 1.0.7 amd64, in order to use the computational power of my GeForce GT 630M to run pyrit and hashcat for pen testing purposes. I have a Toshiba Satellite P850 with 2 video cards, Intel HD4000 and a Geforce GT 630M.

I’m following this guide [https://forums.kali.org/showthread.php?21956-%28Guide%29-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops](https://forums.kali.org/showthread.php?21956-%28Guide%29-Installing-Nvidia-Bumblebee-CUDA-for-Optimus-enabled-Laptops) (and it does work for others but not for me).

Everything worked well, until…

> [@](#):
>
> Now to fix the nvidia-uvm module (You don’t know this yet, but it’s broken.)
> 
> cd /usr/src/nvidia-current-331.67  
> make
> 
> cp Module.symvers uvm/
> 
> cd uvm/  
> make
> 
> Please take care with this next command  
> rm /lib/modules/3.14-kali1-amd64/updates/dkms/nvidia-uvm.ko
> 
> cp /usr/src/nvidia-current-331.67/uvm/nvidia-uvm.ko /lib/modules/3.14-kali1-amd64/updates/dkms/
> 
> The next command will have no errors if all went well  
> modprobe nvidia-uvm

my return on that last command is:

```auto
root@kali:~# modprobe nvidia-uvm
ERROR: could not insert 'nvidia_uvm': No such device

```

If any of you have ideas as to what might be causing this problem, I would greatly appreciate your input.

---

<div class="post-metadata">

**Author:** ![monoid](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@monoid](https://forums.developer.nvidia.com/u/monoid)\
**Post date:** [July 14, 2014, 1:08pm UTC](https://forums.developer.nvidia.com/t/nvidia-bumblebee-cuda-for-optimus/34022/2 "2014-07-14T13:08:05Z")

</div>

On some laptops nvidia driver cannot initialize the GPU after it was powered down by bbswitch. Usually you need to use optirun for nvidia-related activities:

```auto
optirun --no-xorg sudo modprobe nvidia-uvm

```

(although after the above command the GPU will not be powered down automatically unless you manually unload the module and invoke optirun again). You should be able to use “optirun --no-xorg” to run CUDA applications, but note that you need some further manual configuration to make nvidia-uvm unloaded automatically, otherwise the GPU won’t be powered down after the application terminates. See [Bumblebee bug 565](https://github.com/Bumblebee-Project/Bumblebee/issues/565) for details.

The [Bumblebee issue tracker](https://github.com/Bumblebee-Project/Bumblebee/issues) might be a better place for such queries.

---

<div class="post-metadata">

**Author:** ![Quest32255](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Quest32255](https://forums.developer.nvidia.com/u/Quest32255)\
**Post date:** [July 14, 2014, 4:46pm UTC](https://forums.developer.nvidia.com/t/nvidia-bumblebee-cuda-for-optimus/34022/3 "2014-07-14T16:46:37Z")

</div>

Thank you monoid,

I was just dropping by to say that my problem is solved, then I saw your post…

A new Howto(post #25) was added in the first Howto I was following(see link in first post here), and that last Howto(post #25) worked beautifully.

(Now working with Nvidia 340.24 + Bumblebee 3.2.1 and cuda\_6.0.37\_linux\_64)

Still not sure what was my prb, but after a week of intense search on how to do that procedure(Nvidia + Bumblebee + CUDA for Optimus), I don’t really care at this point ;) it w o r k s.

SOLVED !!
