You are not logged in.
I have just yesterday installed Arch on my Desktop PC after I got really fed up with Windows. Have been using Arch on my laptop for a while now, usually being able to figure everything by Googling or reading Arch Wiki in a thorough manner.
Of course it's hard to say no to games so I went ahead and tried running League of Legends over wine-staging... and so my struggles begun... ;
I have NVIDIA GeForce GTX 770 thus I installed nvidia package for my drivers, went ahead and also installed Bumblebee's optirun, and primusrun, carefully reading the Wiki and (as far as I can tell) following each step carefully.
I was able to successfully test optirun with
$ optirun glxspheres64 out of the box (though glxgears didn't work at first for some reason, though works now).
primusrun, however, didn't work and gave me following error:
$ primusrun glxspheres64Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x3a
Segmentation fault (core dumped)and doing
$ optirun -b primus glxspheres64just pops a new window up for a second and closes, without saying anything.
Well, for my case specifically where I encounter the really strange behavior:
When I try to run League of Legends without Bumblebee, it works, but with very bad performance, which is to be expected assuming it uses the integrated video card.
When I try to run it with
$ optirun wine League.exe game itself runs but all I can see is my in-game cursor and a black screen.
When I try to run it with
$ optirun -b primus wine League.exe it works, runs at decent FPS (around 50), but with a pretty bad tearing - pretty unplayable.
When I try to run it with
$ primusrun wine League.exeit doesn't even start.
What surprises me that when testing optirun with glxspeheres - that works; when running actual game - it doesn't.
When running optirun -b primus with glxspeheres - that doesn't work; when running actual game it does.
Could someone point me in right direction as to how would I go trying to fix this behavior?
What I really am trying to achieve is to make primusrun work to see whether it would run better than optirun, and if not, I would know I haven't yet properly configured wine.
Last edited by NumeroSMG (2017-10-29 10:40:48)
Offline
Just wanted to put a quick update - I managed to make the game work with $ optirun wine League.exe, it works better than with $ optirun -b primus wine League.exe - same fps, but no screen-tearing or stuttering, it's basically playable now.
But still that doesn't change the fact why can it use primus as bridge on the game itself, but can't do it on the glxspheres/glxgears. Also, why primusrun doesn't run on its own - not for the game, nor for the glxspheres/glxgears.
Last edited by NumeroSMG (2017-10-29 10:45:05)
Offline
Try to reinstall primus with:
sudo pacman -Rns primus && sudo pacman -S primusOffline
Try to reinstall primus with:
sudo pacman -Rns primus && sudo pacman -S primus
Did that, nothing changed. Even rebooted to be sure; still doesn't run.
Offline
What is your
journalctl -b0says when you execute the game or other program with primusrun?
Offline
What is your
journalctl -b0says when you execute the game or other program with primusrun?
After running:
$ primusrun glxgearsjournalctl -b0 output:
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289302] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289313] [WARN][XORG] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289319] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289322] [WARN][XORG] (WW) Warning, couldn't open module mouse
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289329] [WARN][XORG] (WW) NVIDIA(0): Unable to get display device for DPI computation.
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289333] [WARN][XORG] (WW) NVIDIA(0): Option "NoLogo" is not used
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289335] [WARN][XORG] (WW) Warning, couldn't open module mouse
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289340] [ERROR][XORG] (EE) PreInit returned 2 for "<default pointer>"
Oct 30 01:10:08 archlinux bumblebeed[374]: [13238.289344] [ERROR][XORG] (EE) PreInit returned 2 for "<default keyboard>"
Oct 30 01:10:08 archlinux kernel: glxgears[15842]: segfault at 0 ip 00007f919fa373d2 sp 00007ffc286d91d0 error 4 in libGL.so.1[7f919fa12000+41000]
Oct 30 01:10:08 archlinux systemd[1]: Started Process Core Dump (PID 15850/UID 0).
Oct 30 01:10:08 archlinux systemd-coredump[15851]: Process 15842 (glxgears) of user 1000 dumped core.
Stack trace of thread 15842:
#0 0x00007f919fa373d2 glXCreateContext (libGL.so.1)
#1 0x000055ea28bad351 n/a (glxgears)
#2 0x000055ea28bab6a8 n/a (glxgears)
#3 0x00007f919eff0f6a __libc_start_main (libc.so.6)
#4 0x000055ea28bac08a n/a (glxgears)
Stack trace of thread 15849:
#0 0x00007f919edbf38d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f919adc98d4 n/a (swrast_dri.so)
#2 0x00007f919adc9728 n/a (swrast_dri.so)
#3 0x00007f919edb908a start_thread (libpthread.so.0)
#4 0x00007f919f0c624f __clone (libc.so.6)
Stack trace of thread 15846:
#0 0x00007f919edbf38d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f919adc98d4 n/a (swrast_dri.so)
#2 0x00007f919adc9728 n/a (swrast_dri.so)
#3 0x00007f919edb908a start_thread (libpthread.so.0)
#4 0x00007f919f0c624f __clone (libc.so.6)
Stack trace of thread 15847:
#0 0x00007f919edbf38d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f919adc98d4 n/a (swrast_dri.so)
#2 0x00007f919adc9728 n/a (swrast_dri.so)
#3 0x00007f919edb908a start_thread (libpthread.so.0)
#4 0x00007f919f0c624f __clone (libc.so.6)
Stack trace of thread 15848:
#0 0x00007f919edbf38d pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
#1 0x00007f919adc98d4 n/a (swrast_dri.so)
#2 0x00007f919adc9728 n/a (swrast_dri.so)
#3 0x00007f919edb908a start_thread (libpthread.so.0)
#4 0x00007f919f0c624f __clone (libc.so.6)Offline
As I see, libGL.so.1 cause the segfault. But I'm not sure if glxgears is trying to read the native libGL library or the primus libGL library. Try to reinstall all the opengl libraries with:
sudo pacman -S mesa libglvnd nvidia-utils primusrunSorry if I'm doing you reinstall primus so much ![]()
Last edited by i_love_r34 (2017-10-30 05:19:16)
Offline
As I see, libGL.so.1 cause the segfault. But I'm not sure if glxgears is trying to read the native libGL library or the primus libGL library. Try to reinstall all the opengl libraries with:
sudo pacman -S mesa libglvnd nvidia-utils primusrunSorry if I'm doing you reinstall primus so much
No problem at all, I am thankful you are trying to help.
sudo pacman -S mesa libglvnd nvidia-utils primusrun(actully sudo pacman -S mesa libglvnd nvidia-utils primus is what you meant I think - that's what I ran, primus is the name of the package)
did no change - still the same error on the glxgears and glxspheres
I did however earlier at nigh try to run 2 of my games over the wine (world of warcraft, league of legeds) using the primusrun... and they started - performance was pretty bad however.
Then I tried running some games that are running natively on Linux from Steam - and with the primusrun they again gave the segmentation error and crashed... I am very confused now.
Same result if I try running the Steam itself with primusrun (tried both primusrun and optirun -b primus).
And here's what journalctl -b0 has to say about the native for Linux game:
Oct 30 10:52:26 archlinux systemd-coredump[23306]: Process 23295 (starbound) of user 1000 dumped core.
Stack trace of thread 23295:
#0 0x00007fc31da1c8a0 raise (libc.so.6)
#1 0x00007fc31da1df09 abort (libc.so.6)
#2 0x0000000000aaa84d n/a (/home/justuser/.local/share/Steam/steamapps/common/Starbound/linux/starbound)
Oct 30 10:52:30 archlinux org.gnome.SettingsDaemon.MediaKeys.desktop[875]: /run/user/1000/.lxterminal-socket-:1Last edited by NumeroSMG (2017-10-30 09:55:32)
Offline
Bumblebee only works with laptops:
https://github.com/Bumblebee-Project/Bu … leshooting
Offline
Bumblebee only works with laptops:
https://github.com/Bumblebee-Project/Bu … leshooting
Interesting, though according to Archlinux wiki:
It has also been tested successfully with desktop machines with Intel integrated graphics and an nVidia dedicated graphics card.
Which is my case.
https://wiki.archlinux.org/index.php/bu … _for_Linux
Offline
Bumblebee only works with laptops:
https://github.com/Bumblebee-Project/Bu … leshooting
Not true.
It might not be optimal but it works if configured correctly (don't use bbswitch). Still I ask why do you want to use bumblebee on desktop? Any reason to turn the discrete card on and off? There are a few scenarios where it makes sense but not all.
After one has played a vast quantity of notes and more notes,
it is simplicity that emerges as the crowning reward of art. - Chopin
Offline
Not true.
It might not be optimal but it works if configured correctly (don't use bbswitch). Still I ask why do you want to use bumblebee on desktop? Any reason to turn the discrete card on and off? There are a few scenarios where it makes sense but not all.
True, for the desktop this isn't the perfect solution. Thus I decided to use only my dedicated nVidia GPU for everything, per instructions in;
https://wiki.archlinux.org/index.php/NV … ing_nvidia
And I uninstalled both bumblebee and primus.
Want to thank all involved for the help provided.
My first thought process was that since that's what I am using on my laptop, this was the way to go for my desktop too, which wasn't a very good solution after all (even if I managed to make it run).
So, although the particular issue of primus not working (or working in a very strange way) was not solved, the goal I was pursuing is met for me, just using another method.
Thus I am not sure whether should I mark this thread as solved, or just leave it as it is...
Offline