Bumblebee-Project/Bumblebee — pull request #260 by ssaavedra (2012-09-22 16:02:22+00:00)
Title: dual-nvidia

This patch would make dual-nvidia cards work with Bumblebee (when no udev rule is installed, and there's no work on bbswitch about that yet).

It is not an NVidia Optimus configuration, but it is anyway supported by the code with this tiny fix.
I couldn't figure out how to know, when there's two nvidia cards, which one should be the discrete one, so the current setting is hardcoded so it matches my Laptop settings.

I can test this works on an Early 2009 Macbook Pro 17" (MacbookPro 5,1) with the proprietary nvidia drivers.

I could not test the project with nouveau, because nouveau does not work with my two nvidia cards' configuration at its current version.

For simplicity's sake, the get_by_vendor function has been replaced by get_by_kind(discrete|integrated), which actually makes sense if we don't restrict the project just to NVidia Optimus.