nvidia-detect: make namebuf[] smaller

Signed-off-by: Philip J Perry <phil@elrepo.org>
Merge branch 'master' of github.com:elrepo/packages
Merge pull request #63 from toracat/master

bumblebee updated to 3.1
nvidia-detect: add device_class

Lets filter by device_class so we don't have to iterate through every
device, only display controllers.

We can also use device_class to easily find Intel display controllers in
possible Optimus hardware configurations.

Signed-off-by: Philip J Perry <phil@elrepo.org>
Merge branch 'master' of github.com:elrepo/packages
nvidia-detect: move pci_lookup_name() out of loop

move pci_lookup_name() out of loop so we're only doing it once per
device.

Signed-off-by: Philip J Perry <phil@elrepo.org>
nvidia-detect: make error message nvidia-specific

Signed-off-by: Philip J Perry <phil@elrepo.org>
nvidia-detect: add detection of Optimus hardware configurations

Assume Optimus hardware configuration if both NVIDIA and Intel display
controllers are detected.

Signed-off-by: Philip J Perry <phil@elrepo.org>
nvidia-detect: add error message for no devices found

Signed-off-by: Philip J Perry <phil@elrepo.org>
libbsd updated to 0.5