Bumblebee-Project/Bumblebee — pull request #601 by Dalrik (2014-08-13 23:51:42+00:00)
Title: Error on X shutdown

When X exits, it emits an error stating that it is exiting:
> Aug 13 19:26:50 beta bumblebeed[5777]: [54001.328316] [ERROR][XORG\] (EE) Server terminated successfully (0). Closing log file.

Bumblebee detects this as a real error and subsequently reports an error when querying server status (sending 'S' on bumblebee.socket) rather than stating that the server is not running:
>Error (3.2.1): [XORG\] (EE) Server terminated successfully (0). Closing log file.

Expected:

>Ready (3.2.1). X inactive. Discrete video card is off.

Bumblebee should discard this error, like it does with "Failed to load module kbd"