docsmooth / vmware-bumblebee

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

does not work on Fedora 26 #22

Open chriscjs opened 7 years ago

chriscjs commented 7 years ago

Here is some terminal output. When vmware opens and I try to start a vm I get "Unable to change virtual machine power state: Internal error" message box. Fedora does not have gksudo, gksu, or kdesudo packages, so it uses sudo -E. Primusrun and optirun work OK with other apps.

$ vmware which: no gksudo in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) which: no gksu in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) which: no kdesudo in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) WARNING: no graphical sudo found - using 'sudo -E', which requires a working terminal. which: no dpkg in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) Using NVIDIAVERSION nvidia-bumblebee from directory '/usr/lib64/nvidia-bumblebee' head: cannot open '/sys/class/power_supply/AC*/online' for reading: No such file or directory [sudo] password for : primus: fatal: failed to connect to Bumblebee daemon: Permission denied attempting to clean up any chown operations vmware may have done to you

$ vmware -f which: no gksudo in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) which: no gksu in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) which: no kdesudo in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) WARNING: no graphical sudo found - using 'sudo -E', which requires a working terminal. which: no dpkg in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/chris/.local/bin:/home/chris/bin) Using NVIDIAVERSION nvidia-bumblebee from directory '/usr/lib64/nvidia-bumblebee' forcing 3d on primus: fatal: failed to connect to Bumblebee daemon: Permission denied attempting to clean up any chown operations vmware may have done to you

$ sudo -E vmware which: no gksudo in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) which: no gksu in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) which: no kdesudo in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) WARNING: no graphical sudo found - using 'sudo -E', which requires a working terminal. which: no dpkg in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) Using NVIDIAVERSION nvidia-bumblebee from directory '/usr/lib64/nvidia-bumblebee' head: cannot open '/sys/class/power_supply/AC*/online' for reading: No such file or directory primus: fatal: failed to load any of the libraries: /usr/$LIB/libGL.so.1 /dev/null/dlopen/denied: invalid mode for dlopen(): Invalid argument attempting to clean up any chown operations vmware may have done to you

$ sudo -E vmware -f which: no gksudo in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) which: no gksu in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) which: no kdesudo in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) WARNING: no graphical sudo found - using 'sudo -E', which requires a working terminal.
which: no dpkg in (/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) Using NVIDIAVERSION nvidia-bumblebee from directory '/usr/lib64/nvidia-bumblebee' forcing 3d on primus: fatal: failed to load any of the libraries: /usr/$LIB/libGL.so.1 /dev/null/dlopen/denied: invalid mode for dlopen(): Invalid argument

docsmooth commented 7 years ago

Well, a simple problem is that I don't know the power supply classes for Fedora, can you run: ls -l /sys/class/power_supply and post the results? second, the "nvidia-bumblebee" directory is, I think, wrong - it's picking up /usr/lib64/nvidia-bumblebee. Please run: find /usr -name libGL.so -print and paste those results, too.

docsmooth commented 7 years ago

the rest of this is the same as issue #12 , which I haven't been able to solve. I'll be testing Workstation/Player 14 this week or next.

seandex commented 6 years ago

Hello I'm using Fedora 27 guest / Win10 host using Nvidia GTX 770 on VMware Workstation 12

ls -l /sys/class/power_supply lrwxrwxrwx. 1 root root 0 Dec 21 13:46 ACAD -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD

sudo find /usr -name libGL.so -print /usr/lib64/libGL.so