You are not logged in.

#1 2022-12-31 18:45:49

JustAlternate
Member
Registered: 2022-12-31
Posts: 4

ASUS TUF A15 discrete nvidia gpu wont work.

Hello, and happy new year !

The issue : My discrete GPU is never working, everything I launch something it uses my integrated AMD processor as gpu.
which mean that anytime I launch a game it goes on my integrated amd gpu which is obviously not good.

PC :  ASUS TUF GAMING A15 FA506IV (laptop)

My config :

GeForce RTX 3050 (laptop)
AMD Ryzen™ 7 4800H Mobile Processor
16go RAM
...

When I run lspci :

 lspci | grep -iE "(vga|3d)"
01:00.0 VGA compatible controller: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] (rev a1)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c7)

I tried to follow as close as possible the wiki for

1) installing NVIDIA drivers (https://wiki.archlinux.org/title/NVIDIA)
=> - installed "nvidia"drivers
     - added nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm to the initramfs
     - made a hooks to run mkincpio -P when upgrading...

2) Making use of PRIME (https://wiki.archlinux.org/title/PRIME)
=> - installed xf86-video-nouveau xf86-video-amdgpu

 xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 2 associated providers: 1 name:modesetting
Provider 1: id: 0x27d cap: 0x2, Sink Output crtcs: 4 outputs: 2 associated providers: 1 name:NVIDIA-G0

BUT ran into an error when doing :

 xrandr --setprovideroffloadsink 1 0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  34 (RRSetProviderOffloadSink)
  Value in failed request:  0x27d
  Serial number of failed request:  16
  Current serial number in output stream:  17

Anytime I write something in a xorg.conf, it black screen on boot and i have to chroot with an usb stick to remove the xorg.conf to make it work. (cant escape the black screen with CTRL+ALT+F2/3/4...)

I also tried to follow this post :

https://bbs.archlinux.org/viewtopic.php?id=261486

which was somehow similar to my problems, but his final solution wont work for me (but dont black screen)

For example if i do a

 prime-run firefox 

and go to about:support
i have :

https://imgur.com/rvgP77V.png

when i get into nvtop (to see gpu usage, my nvidia gpu is here but always at 0% usage)

Im kinda desperate...

here are my xorg.log and journalctl.

xorg.0.log = https://pastebin.com/xf81maK5

journalctl = https://pastebin.com/8WXdQuZF (only nvidia related stuff if need more, ask)

moderator edit -- replaced oversized image with link.
Pasting pictures and code

Last edited by 2ManyDogs (2023-01-01 23:45:44)

Offline

#2 2023-01-01 15:07:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,736

Re: ASUS TUF A15 discrete nvidia gpu wont work.

You do not need to configure anything. Just try running applications on the discrete GPU with prime-run after installing the nvidia packages and the nvidia-prime package. And maybe don't use firefox as it has some more stipulations and logistics, what do you get from comparing a simple glxinfo -B with and without prime-run?

Also test the modesetting driver by removing xf86-video-amdgpu

Last edited by V1del (2023-01-01 15:09:20)

Offline

#3 2023-01-02 16:41:36

JustAlternate
Member
Registered: 2022-12-31
Posts: 4

Re: ASUS TUF A15 discrete nvidia gpu wont work.

Everything works fine now with prime-run, thanks you very much !

So basically, anytime I want to use my discrete gpu for something i have to run the process using "prime-run" thats it ?

Offline

Board footer

Powered by FluxBB