bumblebee team mailing list archive
-
bumblebee team
-
Mailing list archive
-
Message #00181
ppa buildscripts bug: upstart script on Ubuntu has improper start semantics
Hello! Most of the information here is irrelevant to this bug, but
providing anyway as requested:
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux rbatteylaptop 3.2.0-32-generic-tuxonice #51~ppa1-Ubuntu SMP Sat
Oct 13 07:58:37 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
baseboard-manufacturer: LENOVO
baseboard-product-name: 2436CTO
baseboard-version : Not Defined
system-manufacturer : LENOVO
system-product-name : 2436CTO
system-version : ThinkPad W530
bios-vendor : LENOVO
bios-version : G5ET61WW (2.03 )
bios-release-date : 09/13/2012
optirun (Bumblebee) 3.0.1
ii bumblebee 3.0.1-3~precis nVidia Optimus support
ii nvidia-current 304.60-0ubuntu NVIDIA binary Xorg driver, kernel module and
BUG:
The upstart script starts on runlevel 2345, and stops on runlevel 016.
However, the hybrid-detect task that runs upon starting lightdm (from
the nvidia-current package in x-updates) changes the graphics settings
in a way that, at least on this system, causes the graphical
environment to fail. (The VT changes but you see no video, however
from the sounds of the system it's clear that the graphical
environment is running in some framebuffer *somewhere* just not
attached to the screen -- I expect it's running on the wrong GPU.)
The solution is to have the bumblebeed service start when the
login-session-start (for the usual graphical login) and
desktop-session-start (for those running "startx") events occur, which
is *after* the display manager is running. In short, change the
upstart script start/stop semantics to this:
start on (login-session-start or desktop-session-start)
stop on (desktop-shutdown)
By the way, thank you so much for developing such robust support for
these weird hybrid video systems. In the past, I just disabled the
discrete adaptor through vgaswitcheroo -- it's great that I can
actually use it now, without always running in discrete mode. :-)
Cheers!
-robin
Attachment:
bumblebee-bugreport-20121028_163534.tar.gz
Description: GNU Zip compressed data
Follow ups