MrMEEE / bumblebee-Old-and-abbandoned

OUTDATED!!!!! - Replaced by "The Bumblebee Project" and "Ironhide"
http://www.martin-juhl.dk/2011/08/ironhide-reporting-for-duty/
469 stars 50 forks source link

Bumblebee X Server init.d script start/stop/restart weird logic #561

Closed michalsmolinski closed 13 years ago

michalsmolinski commented 13 years ago

Hi All,

I'm using bumblebee ppa on Ubuntu 11.04 with Samsung SF310 laptop (Downloaded it today, the bumblebee, not the laptop :) ). I configured bumblebee using bumblebee-configure using one of the available scripts for my laptop. Initially I had a problem with enable/disable scripts, because they shoud have been empty files (for my laptop no appropriate ACPI calls have been found so far) but these files contained one strange byte. Nevertheless, I replaced these files with empty ones and I discovered that the optirun is still complaining:

$optirun glxspheres

Polygons in scene: 62464

When I look closer I discovered that the /etc/init.d/bumblebee script does strange thing - it actually stops the Bubmblebee X Server when invoked with parameter "start". Such a parameter is passed to the above script by the optirun program.

A simple workaround is to say: $sudo /etc/init.d/bumblebee restart

which restarts the X Server as one may expect.

It seems that the optirun script should use "enable" and "disable" parameters to the /etc/init.d/bumblebee script instead of "start" and "stop".

What do you think?

Cheers, Michal

Lekensteyn commented 13 years ago

Actually, you're affected by a logic error in the bumblebee optirun script. The optirun script in the PPA starts /etc/init.d/bumblebee only if:

Since your card is never disabled as no ACPI call has been done, optirun skips the start of bumblebee. Until the PPA is updated, you need to run /etc/init.d/bumblebee enable before starting optirun.