One more thing.. I realized that if I edit /etc/bumblebee/xorg.conf.nvidia and don't run the /etc/init.d/bumblebee restart command after, optirun glxspherest64 works, but only once. Here's the optirun and dmesg after it works for the first time.
optirun glxspheres64
Code:
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 750M/PCIe/SSE2
dmesg
Code:
[ 1219.791269] vgaarb: this pci device is not a vga device
[ 1219.791988] nvidia 0000:01:00.0: irq 54 for MSI/MSI-X
[ 1219.801105] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.801210] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.801273] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.801331] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.801386] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.801441] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.801529] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.801585] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1219.802873] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1220.019129] vgaarb: this pci device is not a vga device
[ 1265.335361] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1265.345654] [drm] Module unloaded
[ 1265.347855] bbswitch: disabling discrete graphics
[ 1265.347873] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[ 1265.364199] pci 0000:01:00.0: Refused to change power state, currently in D0
Everything after the second "this pci device is not a vga device" ([ 1220.019129]) is after I close out of the glxsphere window.
Thanks for your help!
edit:
I had thought I read all of the posts before posting but it seems I may have missed one.
Using the solution tonrin posted worked for me too!
Still lots of errors in dmesg but deviceQuery results in a pass!