You are not logged in.
Hello, i recently installed arch Linux on my new alienware, with the bumblebee dual graphics setup, everything is working 100% in optirun, but as i know from using Debian, i get great performance improvements with primusrun. primusrun works for most things except for certain apps like minecraft. i have checked through my bumblebee.cfg and i have noted no problems. but what i have noted is that when primusrun is run as root it loads fine. i have tried to symlink the libraries and change their permissions to no effect any help would be greatly appreciated.
bellow as standard user running minecraft (no root)
christian@christians-arch /data % primusrun java -jar Minecraft.jar
Bootstrap (v5)
Current time is Nov 26, 2014 5:00:30 PM
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '3.17.3-1-ARCH'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.8.0_25'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64'
Looking for update
Downloading: [url]https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma[/url]
Got reply in: 1235ms
No update found.
Reversing LZMA on /home/christian/.minecraft/launcher.pack.lzma to /home/christian/.minecraft/launcher.pack
Unpacking /home/christian/.minecraft/launcher.pack to /home/christian/.minecraft/launcher.jar
Cleaning up /home/christian/.minecraft/launcher.pack
Starting launcher.
primus: fatal: failed to load any of the libraries: /usr/$LIB/libGL.so.1
dlopen: cannot load any more object with static TLS
primusrun java -jar Minecraft.jar 7.06s user 0.59s system 81% cpu 9.364 totalhere the launcher opens for about 2 seconds and crashes
i have checked for /usr/$LIB/libGL.so.1
as $LIB is symlinked to /usr and i have added a symlink of /usr/lib/mesa/libGL.so.1 to here
but even without this it functions fine as root
now as root
christian@christians-arch /data % sudo primusrun java -jar Minecraft.jar
[sudo] password for christian:
Bootstrap (v5)
Current time is Nov 26, 2014 5:03:51 PM
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '3.17.3-1-ARCH'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.8.0_25'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64'
Looking for update
Downloading: [url]https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma[/url]
Got reply in: 2086ms
No update found.
Reversing LZMA on /root/.minecraft/launcher.pack.lzma to /root/.minecraft/launcher.pack
Unpacking /root/.minecraft/launcher.pack to /root/.minecraft/launcher.jar
Cleaning up /root/.minecraft/launcher.pack
Starting launcher.
[17:03:57 INFO]: Minecraft Launcher 1.5.3 (through bootstrap 5) started on linux...
[17:03:57 INFO]: Current time is Nov 26, 2014 5:03:57 PM
[17:03:57 INFO]: System.getProperty('os.name') == 'Linux'
[17:03:57 INFO]: System.getProperty('os.version') == '3.17.3-1-ARCH'
[17:03:57 INFO]: System.getProperty('os.arch') == 'amd64'
[17:03:57 INFO]: System.getProperty('java.version') == '1.8.0_25'
[17:03:57 INFO]: System.getProperty('java.vendor') == 'Oracle Corporation'
[17:03:57 INFO]: System.getProperty('sun.arch.data.model') == '64'
[17:03:58 INFO]: Refreshing local version list...
[17:03:58 INFO]: Refreshing remote version list...
[17:03:58 INFO]: Refresh complete.
[17:03:58 INFO]: Loaded 1 profile(s); selected '(Default)'
sudo primusrun java -jar Minecraft.jar 9.40s user 0.75s system 86% cpu 11.736 totalas seen here loads perfectly to menu
note i do not have any problems for running steam games with primus
thanks again for any help
Last edited by tuffguy10 (2014-11-26 06:13:40)
Offline
I was able to fix this by creating a Minecraft shell script and using that with primusrun.
# minecraft.sh
java -jar Minecraft.jarAnd then I just:
primusrun minecraft.sh I think primus run doesn't like the executable it runs to have any extra arguments.
Offline
Sorry but i continue to have the exact same error as above
"primus: fatal: failed to load any of the libraries: /usr/$LIB/libGL.so."
Offline
I had the same problem. But the shell script solution caused the same problem. With sudo Minecraft could be launched without sudo not.
The cause was the LD_LIBRARY_PATH was not set correctly.
I've solved the problem as follows:
# cat mincraft.sh
LD_LIBRARY_PATH=/usr/lib/ java -jar /home/ronny/.minecraft/minecraft.jar# cat minecraft.desktop
[Desktop Entry]
Name=Minecraft
Name[de]=Minecraft
Exec=primusrun /home/user/.minecraft/mincraft.sh
Icon=/home/user/.minecraft/minecraft_icon.png
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;Last edited by Firedrake (2015-07-07 19:15:13)
Offline