Bumblebee/optimus problem

Could someone point me to instructions for getting optimus to work properly? I followed the directions here but it doesn’t seem to work. Bumblebee works fine, but when I attempt to run glxgears with optimus I get the following error:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  22
  Current serial number in output stream:  23

Anyone have any idea what might be causing this? This is also apparently causing my computer to be unable to reboot. Shutting down works fine, but rebooting doesn’t, it just hangs forever on a blank screen.

Nevermind, the problem was that the video group was missing from the instructions. It’s working now.