Bumblebee-Project / Bumblebee-old

nVidia Optimus support for GNU/Linux aimed at stability. Rewritten and improved fork
https://launchpad.net/~bumblebee
117 stars 5 forks source link

Bumblebee X server not available, check /bumblebee.log #103

Closed MattMatthew closed 12 years ago

MattMatthew commented 13 years ago

I had this problem when I tried to run optirun glxgears.

Lekensteyn commented 13 years ago

Are you sure it says /bumblebee.log and not /var/log/bumblebee.log? How did you install Bumblebee, where did you get it from? What distro are you using? Please send the bugreport generated with sudo bumblebee-bugreport to bumblebee@lists.launchpad.net

MattMatthew commented 13 years ago

Sorry, wasn't specific enough.

The Bumblebee X server was not available, please check the Bumblebee logfile at /var/log/bumblebee.log

I installed it with add-apt-repository ppa:bumblebee/stable usermod -a -G bumblebee "username"

Ubuntu Natty. I already sent the bugreport. It didn't arrive?

Lekensteyn commented 13 years ago

We haven't received a mail related to this issue. Please check the emailaddress you're submitting the bugreport to.

MattMatthew commented 13 years ago

Sent it again, hope it will arrive!

Lekensteyn commented 13 years ago

No luck, try sending it to me, I'll forward it to the mailing list. lekensteyn@gmail.com

MattMatthew commented 13 years ago

I sent it to you.

Lekensteyn commented 13 years ago

Thanks, the message in bumblebee.log was misleading, I fixed that with the last commit. The real problem is that your nVidia card is disabled. Is there a BIOS option to turn it on? Have you enabled Power Management or used something calles "acpi call" before? It looks like you executed the wrong commands.

MattMatthew commented 13 years ago

In the BIOS I can choose between Switchable and Dedicated, and currrently it's on dedicated.

I tried ironhide before, but i uninstalled it.

Lekensteyn commented 13 years ago

Ironhide does not clean up properly leaving your system in an unstable state. Do you know what power scripts were used by Ironhide?

MattMatthew commented 13 years ago

I do not know.

Lekensteyn commented 13 years ago

I wish Ironhide was fixing their own bugs, they do not even uninstall properly.

I looked up the calls which are:

\_SB.PCI0.PEG0.PEGP._ON
\_SB.PCI0.PEG0.PEGP._OFF

Do NOT run these without understanding of what you're doing because they are plain WRONG. Please run the below commands and show the output of them:

LC_ALL=C ls -lA /etc/pm/power.d/*-disablecard-on-powerup /usr/local/bin/*card /usr/bin/ironhide*

After that, I'll give you possible instructions to "fix" it.

MattMatthew commented 13 years ago

I reinstalled Natty, so it's probably unaffected by ironhide. Now I should install bumblebee with "add-apt-repository ppa:bumblebee/stable usermod -a -G bumblebee "username" " Right?

Lekensteyn commented 13 years ago

That's correct (sudo is needed though). Depending on your video card, you may also need to install newer drivers from the ubuntu-x-swat PPA:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

Run that command after adding bumblebee, then run sudo apt-get update && sudo apt-get install bumblebee.

jrfbal commented 13 years ago

I'm having the same issue with the

"The Bumblebee X server was not available, please check the Bumblebee logfile at /var/log/bumblebee.log"

I've followed every instruction and have the latest nvidia drivers installed. Can I be because I installed Ubuntu using Wubi?

I'm using a fresh install of oneiric ocelot.

Thanks.

I installed the drivers using this instructions: http://ubuntuforums.org/showthread.php?p=11293922#post11293922 (post #27) Now it runs using optirun, but if I try to run directly it gives an error:

Xlib: extension "GLX" missing on display ":0". ERROR (584): Could not obtain RGB visual with requested properties

MattMatthew commented 13 years ago

Updated to 11.10 an the optirun glxgears works fine. Without optirun it says "Error: couldn't get an RGB, Double-buffered visual"

Lekensteyn commented 13 years ago

@jrfbal: do not install the nvidia drivers from nvidia.com, it'll break OpenGL on your default display. Uninstall it with sudo nvidia-uninstall (obviously in a text console) and reinstall the libgl1-mesa-glx package:

sudo apt-get --reinstall install libgl1-mesa-glx

Please send us a bugreport

@MattMatthew: please send us a new bugreport

jrfbal commented 13 years ago

Uninstalling the nvidia drivers and reinstalling the libgl1-mesa-glx package made the same error appear.

Bugreport sent.

Lekensteyn commented 13 years ago

@MattMatthew Found the issue! After an upgrade to Oneiric, all PPA's are removed. Your nvidia-current package is not upgraded properly, please add the ubuntu-x-swat/x-updates PPA again and upgrade nvidia-current:

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get upgrade

@jrfbal: you're likely affected by the same issue. If not please send the report to lekensteyn@gmail.com as Launchpad won't accept mails from unregistered users.

jrfbal commented 13 years ago

In my case the PPA was correct, the problem persists.

I've sent the report to the email you provided.

Thank you for your time.

Lekensteyn commented 13 years ago

@jrfbal Your kernel log says:

NVRM: API mismatch: the client has the version 285.05.09, but
NVRM: this kernel module has the version 280.13.  Please
NVRM: make sure that this kernel module and all NVIDIA driver
NVRM: components have the same version.

Please try reinstalling the nvidia module: sudo apt-get install --reinstall nvidia-current. If that fails, use sudo apt-get purge nvidia-current&&sudo apt-get install nvidia-current.

jrfbal commented 13 years ago

That didn't work, but I checked google and it seems thats a known problem. I deleted all the nvidia modules I had installed, rebooted, reinstalled them and now it's fine. It wasn't a problem with bumblebee at all.

I just have one question, when I used the nvidia drivers from the website I was getting 70 fps on glxspheres, now I'm at between 59fps to 64fps with the optirun and 60 with the intel. Is this normal?

Lekensteyn commented 12 years ago

That seems a bit low, could you run the below command and send it together with a bugreport (sudo bumblebee-bugreport) to bumblebee@lists.launchpad.net and lekensteyn@gmail.com:

optirun --debug-log "" glxspheres

Wait for 20 seconds or something.

Lekensteyn commented 12 years ago

@jrfbal Could you try changing "DFP-0" to "CRT-0" in /etc/bumblebee/xorg.conf.nvidia and see if your performance improves? If you disable desktop effects, the FPS will also increase.

jrfbal commented 12 years ago

Changing it made no difference. It's weird because it was faster when I installed the nvidia drivers wrong. Oh well maybe I screwed something up.

Thanks for your help!

Lekensteyn commented 12 years ago

@jrfbal You could check whether it's an installation issue by booting from a Live CD and installing Bumblebee in there after adding the ubuntu-x-swat/x-updates PPA.

jrfbal commented 12 years ago

I tried with the Live CD and got the same results, however:

That must have been what happened, when I installed the drivers from nvidia it disabled the effects and I didn't even notice, but still it's quite a big drop in performance!