There is a race condition between virtualgl and the display manager init scripts. The virtualgl script waits a minimum of three and a maximum of six seconds for the xauth file to be generated. This causes bumblebee to initialize in an invalid state. Reproducible: Always Steps to Reproduce: Add a seven second delay before starting the display manager (e.g. sleep 7).
Created attachment 420344 [details, diff] suggested patch This lowers the wait time to a minimum of a second, and guarantees a consistent state between the display manager, virtualgl, and bumblebee.
Github pull request (https://github.com/gentoo/gentoo/pull/531).
Github pull request (https://github.com/gentoo/gentoo/pull/533). Ignore last.
Merged.