You are not logged in.

#1 2022-11-24 18:31:07

aytekinar
Member
From: Stockholm
Registered: 2013-12-19
Posts: 25

[SOLVED] NVIDIA + Intel graphics issue

I have recently installed Arch Linux on my Razer Blade 15 Advanced (mid 2021) laptop, and I cannot get the NVIDIA card working (I guess). I think I have followed the Wiki properly, and installed the required packages, but whenever I run `nvidia-smi` or `prime-run glxinfo`, for instance, the command simply hangs.

Here are some of the details of my system:

$ glxinfo | grep -i "opengl renderer"
OpenGL renderer string: Mesa Intel(R) UHD Graphics (TGL GT1)

$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x49 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 5 outputs: 6 associated providers: 0 name: Intel

$ lspci | grep -iE '(vga|3d)'
00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB] (rev a1)

$ pacman -Q | grep -iE '(nvidia|mesa|intel|cuda)'
cuda 11.8.0-1
cuda-tools 11.8.0-1
intel-ucode 20221108-1
mesa 22.2.3-1
mesa-utils 8.5.0-2
nvidia 520.56.06-11
nvidia-prime 1.0-4
nvidia-settings 520.56.06-1
nvidia-utils 520.56.06-2
opencl-mesa 22.2.3-1
opencl-nvidia 520.56.06-2
xf86-video-intel 1:2.99.917+916+g31486f40-2

$ xrandr --listactivemonitors
Monitors: 1
 0: +*eDP1 3840/340x2160/190+0+0  eDP1

Technically, currently, I am also connected to a second monitor (over a docking station through thunderbolt), which is not recognized by my system. Does this have something to do with the NVIDIA card, as well?

Last edited by aytekinar (2022-11-24 21:06:55)

Offline

#2 2022-11-24 18:41:43

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: [SOLVED] NVIDIA + Intel graphics issue

aytekinar wrote:

I have recently installed Arch Linux on my Razer Blade 15 Advanced (mid 2021) laptop, and I cannot get the NVIDIA card working (I guess). I think I have followed the Wiki properly, and installed the required packages,

Which?

Get rid of xf86-video-intel. You almost certainly don't want it if you machine is in anyway recent.

Are you using X? What's in the journal when the command hangs?

Last edited by cfr (2022-11-24 18:43:20)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2022-11-24 19:20:13

aytekinar
Member
From: Stockholm
Registered: 2013-12-19
Posts: 25

Re: [SOLVED] NVIDIA + Intel graphics issue

cfr wrote:

Which?

Uhm, I have listed in the original post:

$ pacman -Q | grep -iE '(nvidia|mesa|intel|cuda)'
cuda 11.8.0-1
cuda-tools 11.8.0-1
intel-ucode 20221108-1
mesa 22.2.3-1
mesa-utils 8.5.0-2
nvidia 520.56.06-11
nvidia-prime 1.0-4
nvidia-settings 520.56.06-1
nvidia-utils 520.56.06-2
opencl-mesa 22.2.3-1
opencl-nvidia 520.56.06-2
xf86-video-intel 1:2.99.917+916+g31486f40-2
cfr wrote:

Get rid of xf86-video-intel. You almost certainly don't want it if you machine is in anyway recent.

Sure thing:

$ pacman -Q | grep -iE '(intel|mesa|nvidia|cuda)'
cuda 11.8.0-1
cuda-tools 11.8.0-1
intel-ucode 20221108-1
mesa 22.2.3-1
mesa-utils 8.5.0-2
nvidia 520.56.06-11
nvidia-prime 1.0-4
nvidia-settings 520.56.06-1
nvidia-utils 520.56.06-2
opencl-mesa 22.2.3-1
opencl-nvidia 520.56.06-2
cfr wrote:

Are you using X? What's in the journal when the command hangs?

I am using X. How can I check the journal?

EDIT. Removing `xf86-video-intel` has resulted in a "freezing/hanging" during reboot. Now, my LightDM cannot boot up and open i3wm. Simply a black screen.

EDIT. Adding `ibt=off` to my `/etc/default/grub` has fixed the issue:

$ grep -i cmdline_linux /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet splash rd.luks.name=8a83f18c-19a5-4580-9c44-4524f332fa7d=cryptlvm root=/dev/aytekinlvm/root ibt=off"
GRUB_CMDLINE_LINUX=""

EDIT. Similarly, installing `nvidia-open` (as opposed to `nvidia`) and removing the `ibt=off` kernel parameter also seems to work.

EDIT. As you have noted, `xf86-video-intel` does not seem to change anything (but, I just kept it simply because having it installed could make it possible for me to boot with `nvidia` drivers installed without the `ibt=off` kernel parameter).

Last edited by aytekinar (2022-11-24 21:10:41)

Offline

#4 2022-11-24 23:51:11

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

Re: [SOLVED] NVIDIA + Intel graphics issue

You should not keep xf86-video-intel it will literally worsen performance for your general system since it does not actually support your GPU nor the modern mesa stack you require.  The only reason it looked like things worked because it will break your system so hard that you simply ran on software acceleration without any of the nvidia or intel interactions being in use in any way-

Online

#5 2022-11-25 01:46:48

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: [SOLVED] NVIDIA + Intel graphics issue

Recent intel graphics are supported by the stuff built into the kernel. xf86-video-intel will not work as well. My chip is much older than yours and even it is better supported without that installed.

aytekinar wrote:

I am using X. How can I check the journal?

For future reference, xorg's log may be helpful in that case.

systemctl -b --no-pager | less

Or redirect it to a file or pastebin, but I'd look at Xorg's log first.

Last edited by cfr (2022-11-25 01:48:35)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB