docsmooth / vmware-bumblebee

Bash Script to start VMware Workstation under Bumblebee Primus/Optimus hybrid drivers
GNU General Public License v2.0
29 stars 10 forks source link

What means this: ERROR: NVIDIA_DEST variable is empty #21

Open duruer opened 7 years ago

duruer commented 7 years ago

I'm sorry but what means this: ERROR: NVIDIA_DEST variable is empty, we should have inherited from the user vmware script! also how do i fix this?

docsmooth commented 7 years ago

the script is installed correctly, so mane you didn't launch it as "vmware-bumblebee"?

What I mean is, you have to launch VMware workstation or player from the script, not from the menu link.

--

On Aug 5, 2017 4:08 PM, unlemci notifications@github.com wrote:

I'm sorry but what means this: ERROR: NVIDIA_DEST variable is empty, we should have inherited from the user vmware script! also how do i fix this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/docsmooth/vmware-bumblebee/issues/21, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC3FhASEmmpNt8rgpxjv6X-Oquyr5jiAks5sVNnBgaJpZM4OukND.

duruer commented 7 years ago

I have got VMware Player but i don't understand i started vmware with ./vmplayer bash file but it still gives error?

docsmooth commented 7 years ago

Ok, run it as: ./vmplayer -x

And post the output

duruer commented 7 years ago

Here: https://hastebin.com/qukibaduze.vbs

docsmooth commented 7 years ago

Ahh, got it. OK, the original "vmware-bumblebee" script that you downloaded from this project - where's that? do: ln -s ./vmware-bumblebee ./vmplayer ./vmplayer

then it should work. This tool has 2 components - one that you run, and a 2nd that it installs from inside itself. You did the install correctly (which is why you're getting that error), but now you have to call the main part to run vmplayer properly.

By doing this special linking, the script will know you called "vmplayer" rather than vmware workstation.

The design is made this way so that it works with more versions of VMware workstation and play (10 through 12 all appear to work for me, but I only have a lab for 10 and 12 on ubuntu).

duruer commented 7 years ago

I'm trying to understand...

I downloaded this project and i copied vmware-bumblebee-master to /usr/lib/vmware/bin/ and after i renamed that folder from vmware-bumblebee-master to vmware-bumblebee in bin folder.

But after you said do this ln -s ./vmware-bumblebee ./vmplayer but it creates just a link about that folder in bin.

Maybe you should add a small tutorial to readme.md :) I'm sorry i'm not good at linux just a programmer and want to learn linux... Also want to play games on my linux :P

docsmooth commented 7 years ago

Added instructions to the readme as you requested. :) Short answer for your problem is: you downloaded and installed it into the software, rather than into your home directory.

try removing /usr/lib/vmware-bin/vmware-bumblebee, then just calling ~/vmware-bumblebee-master/vmplayer

it should work that way. If so, try the new instructions in the readme for more seamless long-term access.

duruer commented 7 years ago

Oh thanks... Now it works but i don't understand something again :)

Now i can run with ./vmplayer ... but it didn't effect on games? I have got GTX960M. I tested Minecraft on Win10 Workstation 12. I tested without this project it gives 14 FPS on Minecraft after installed this project and opened by typing ./vmplayer it still gives 14 FPS...

Nothing changed isn't it weird?

docsmooth commented 7 years ago

This script just enables the NVidia Bumblebee drivers to launch vmware connected to the NVidia card, rather than the intel card.

You then have to tell the VMware software that the virtual machine is capable of hardware-accelerated 3d in the .vmx file. In VMware Workstation, you do this by editing the machine, going to "Advanced" and then editing the "Display" setting, but you might have to edit the VMX directly in Player

duruer commented 7 years ago

It's enabled but i think this script doesn't enables the Nvidia Bumblebee driver to launch vmware connected nvidia card :)

docsmooth commented 7 years ago

first, make sure that "primusrun glxinfo |head" shows different output than "glxinfo | head". The first should show bumblebee launching the Nvidia card, the 2nd should show the i915 card.

If that works, and you're still not certain if my script is launching bumblebee properly, you can force it with the "--yes" flag. You can run "bash -x ./vmplayer --yes" and paste the debug output in here.

duruer commented 7 years ago

First: https://hastebin.com/zenaceqale.vbs

Second: https://hastebin.com/ecamakoyit.sql

Idk is there any problem?

docsmooth commented 7 years ago

On your line 235, it doesn't match line 510 of the script, which should be: XAUTHORITY=${XAUTHORITY} $SUDO -- ${bbrun} ${SHOPT} $VMware

Your system ran:

but should have run: /usr/bin/gksudo -k -- /usr/bin/primusrun bash -x /usr/bin/vmplayer

Can you pull the latest version of the script from github and rerun? I'm hoping it's just a recent change you're missing.

duruer commented 7 years ago

I tested with latest version of the script and results are:

Vmware openning great. Vmware starting operating system (windows 10 pro) then windows logo appears... then windows (or vmware idk) gives this error: https://i.hizliresim.com/XXm4r7.png

And here's log: https://hastebin.com/oyujepades.py