Closed keithsand777 closed 9 years ago
Yes, Workstation has to run as root in order for 3D support to work, according to the creator of the thread on the forums that spawned my creation of the script. Can you try installing gksudo or gksu and trying again? the "sudo -E" is an attempt, but it may not pass through all the graphical paramaters required.
Also, check the version of nvidia drivers you're using. My current copy is "nvidia-331-updates", but I can't see from the output if you're using nvidia-331-updates or ndidia-331. If you're using "nvidia-331", you'll likely need to change line 17.
On my system:
kubuntu4:~$ ls /usr/lib/nvidia*/libGL.so
/usr/lib/nvidia-331-updates/libGL.so
so line 17 says "nvidia-331-updates". If you have to change that, run the install/uninstall routines again.
and "primusrun glxgears" works, right? If so, try "sudo -E primusrun glxgears". That does work on my system. If it doesn't on yours, it'd help explain why vmware isn't working.
I did install gksu but no help there. Both "primusrun glxgears" and "sudo -E primusrun glxgears" (if it is supposed to run at 60 FPS that is). I do have "nvidia-331-updates" installed - but I have tried it with 337 and 340 as well with no success. Simply running "sudo optirun vmware" or "sudo primusrun vmware" also fail to get me 3D support.
I just did a complete system rebuild. A fresh install of Xubuntu Desktop 14.04 64 bit. I used no external repositories. Here is what I did (as root) to install driver support for my Intel HD4000 GEFORCE GT 635M combo/hybrid:
apt-get install nvidia-331-updates nvidia-cuda-dev nvidia-cuda-doc nvidia-cuda-gdb nvidia-cuda-toolkit nvidia-libopencl1-331-updates nvidia-opencl-icd-331-updates
nvidia-xconfig
apt-get install bumblebee bumblebee-nvidia bumblebee-dbg nvidia-prime primus primus-libs primus-libs-dbg
reboot
After this I installed VMware Workstation 10.0.3 using the following as root:
optirun sh ~/VMware-Workstation-Full-10.0.3-1895310.x86_64.bundle
I even kept root as the primary user rather than my desktop user (on my previous attempts I chose my desktop user as the primary, but I figured I would try root since bumble requires root privileges with VMware any way). So I still get no 3D support with the following commands (again as root):
optirun vmware
sh ~/vmware-bumblebee-d43012f670240ca2fb00a06f36ddec35f5ef243b/vmware --yes
Trying not to bang my head - might break the computer.
I just commited a change to hopefully help us hunt this down. Run: bash -x ./vmware
And send me the full screen output (it'll be hefty).
user@localhost:~/Downloads/vmware-bumblebee-d43012f670240ca2fb00a06f36ddec35f5ef243b$ bash -x ./vmware
I found a different approach to the problem here:
http://forums.opensuse.org/showthread.php/494522-No-3d-Support-or-graphics-accelleration
Essentially add "mks.gl.allowBlacklistedDrivers = "TRUE"" to the .vmx file
I am no sure if this is actually working, but it does get rid of the typical error message of the 3D support not being available. It does, however, for my machine give a new warning:
"The GPU driver on this host might cause issues with VMware products. If you experience problems, disable 3D support in the affected virtual machines."
Hi Keith, I'm hoping you had a chance to review this after your semester ended. The output that you pasted in July shows that you never ran the "./vmware-bumblebee -i" command to install the helper script in /usr/bin/vmware, otherwise it would have been launched with the "-x" as well, and there'd be more output.
The workaround you found uses the Intel 3d card, rather than the NVidia. If it's getting what you want, it's a solution, and congratulations! However, if you're suffering performance, you may want to come back to "trying to get the nvidia card to work." Let me know if you're still interested in troubleshooting.
Going to close this, as I've made several updates to detection since this was opened for Workstation 10.0.1, and there were fixes for 10.0.4 support, and I have confirmation of it working on other systems. Please re-open if it's still not working.
Here is my output when using the script:
user@localhost:~/vmware-bumblebee-d43012f670240ca2fb00a06f36ddec35f5ef243b$ sudo sh -x vmware
Please let me know what else you may need. I have removed and installed various nvidia drivers, bumblebee, and VMware Workstation in order to try and figure out what the problem might be, but so far nothing is working. Does Workstation always have to run with root privileges to get 3D support with Optimus?