You are not logged in.

#1 2020-12-27 20:38:27

thatnewbie
Member
Registered: 2020-12-27
Posts: 3

PRIME is not working

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name:modesetting
Provider 1: id: 0xd4 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 2 outputs: 1 associated providers: 1 name:nouveau

here it looks like everything is in order. my system recognizes my two different cards.

prime-run glxinfo

name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

and here is the error output when i try to run my dedicated graphics card.

I did everything in the wiki said in order:
- I installed nouveau drivers
- I set the offloading and created `xorg.conf` file in `/etc/X11`.

I did them correctly but still it's not working.

and this is the error code i get when i try to prime-run minecraft-launcher

[1227/233956.137331:ERROR:gl_context_glx.cc(192)] Failed to create GL context with glXCreateNewContext.
[1227/233956.138339:ERROR:gpu_info_collector.cc(51)] gl::init::CreateGLContext failed
[1227/233956.138436:ERROR:gpu_info_collector.cc(119)] Could not create context for info collection.
[1227/233956.138620:ERROR:gpu_init.cc(53)] gpu::CollectGraphicsInfo failed (fatal).
[1227/233956.316122:WARNING:x11_util.cc(1349)] X error received: serial 175, error_code 2 (BadValue (integer parameter out of range for operation)), request_code 153, minor_code 24 (X_GLXCreateNewContext)
[1227/233956.390985:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[1227/233957.532053:INFO:main_context.cpp(107)] CEF initialized successfully.

Gtk-Message: 23:39:58.071: Failed to load module "appmenu-gtk-module"
[1227/234001.897638:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[1227/234002.049893:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[1227/234002.051890:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[1227/234003.489263:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[1227/234003.491224:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[1227/234004.729366:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[1227/234004.731498:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[1227/234006.028776:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[1227/234006.030550:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[1227/234007.152089:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[1227/234007.152667:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[1227/234007.153280:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[1227/234007.153877:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
[1227/234007.154365:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.
/usr/bin/prime-run: line 2: 18154 Segmentation fault      (core dumped) __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"

Last edited by thatnewbie (2020-12-27 20:50:52)

Offline

#2 2020-12-27 20:47:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,354

Re: PRIME is not working

you don't want nouveau but the nvidia driver and nvidia-utils if you intend to use nvidia-prime.

and please use [ code ] not [ quote ] tags for output.

Last edited by V1del (2020-12-27 20:50:20)

Offline

#3 2020-12-27 21:00:41

thatnewbie
Member
Registered: 2020-12-27
Posts: 3

Re: PRIME is not working

when I tried to install the appropriate version of nvidia driver on my lts kernel it gave me this error

==> Making package: nvidia-390xx 390.138-8 (Sun 27 Dec 2020 11:55:49 PM +03)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
error: target not found: nvidia-390xx-utils=390.138
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> nvidia-390xx-utils=390.138
  -> linux-headers
==> ERROR: Could not resolve all dependencies.

I think it doesn't support lts-kernel and I couldn't find this driver's lts kernel version.
maybe I should install linux-headers

Last edited by thatnewbie (2020-12-27 21:01:34)

Offline

#4 2020-12-27 21:11:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,665

Re: PRIME is not working

You esp. need to install nvidia-390xx-utils before nvidia-390xx and it's advisable to use nvidia-390xx-dkms so you won't have to re-install the nvidia-390xx package w/ every kernel update.

Offline

#5 2020-12-27 21:13:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,354

Re: PRIME is not working

...and 390xx won't work with prime-run, you'll need to pick other methods from https://wiki.archlinux.org/index.php/NVIDIA_Optimus

Offline

#6 2020-12-27 21:40:30

thatnewbie
Member
Registered: 2020-12-27
Posts: 3

Re: PRIME is not working

well thank you so much everyone it worked with bumblebee

Offline

Board footer

Powered by FluxBB