I have a laptop which has 2 graphics card. One of them is Nvidia GTX 1650Ti and other is Intel integrated gpu. I set all values to make nvida primary gpu. I did but when i run glxgears it is using Nvidia card properly and i can see with nvidia-smi command but when i started Firefox its using Intel gpu not Nvidia. After i started a video in Firefox its using Intel and video is glitching. How can i solve that. Thank you all from now. (Sorry for my English )
Your English is good. I donāt have a laptop with 2 graphics cards, but I would try āblacklistingā the Intel graphics card so that everything must use the Nvidia graphics card. Does adding rd.driver.blacklist=i915
and modprobe.blacklist=i915
on the kernel command line make it work?
Thanks for that but i forgot something sorry. Im using one more external monitor(its directly connected to Nvidia) when i blacklisted Nvidia i can use only external monitor and despite this its not using Nvidia for videos i didnt understand anything.
Iām not very familiar with it either. It looks like the browser itself might have some settings that are determining which GPU it is using: Firefox's performance settings | Firefox Help
Thanks for your help. I tried this,too. I tried chromium but they arent working with nvidia
Iām using a different computer now (and Sway), so I no longer use this setting, but a few years ago, I had the following in my i3 configuration so that Chrome would do hardware acceleration. Do these parameters still work on Chromium?
$ grep google-chrome-stable ~/.config/i3/config
bindsym $mod+g workspace 2, exec /usr/bin/google-chrome-stable --use-gl=desktop --enable-features=VaapiVideoDecoder --disable-features=UseSkiaRenderer --disable-features=UseChromeOSDirectVideoDecoder
By the way, you can enter chrome://gpu/
in Chromeās address bar to see what GPU settings it is using.
None of the other answer to this question suggested black listing.
I do not recall the solution but I hope someone that has a laptop with this configuration will answer.
I donāt know. Since it says āunavailableā, I guess there is something wrong with the driver installation. Maybe @computersavvy could help you verify that the Nvidia drivers are installed correctly?
I removed all Nvidia drivers things and i will install again which document i can use for that installation?
Iād ask @computersavvy or search this forum for a recent example where he has answered that question.
The recommended instruction is here:
Howto/NVIDIA - RPM Fusion
I installed drivers again but system is using intel for egl instrad of Nvidia i installed vaapi drivers but i didnt understand
Letās check the output:
lspci -n -n -k
Itās output
00:00.0 Host bridge [0600]: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers [8086:9b54] (rev 02)
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: skl_uncore
00:01.0 PCI bridge [0604]: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 02)
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: pcieport
00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-H GT2 [UHD Graphics] [8086:9bc4] (rev 05)
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: i915
Kernel modules: i915
00:08.0 System peripheral [0880]: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:1911]
Subsystem: QUANTA Computer Inc Device [152d:1244]
00:12.0 Signal processing controller [1180]: Intel Corporation Comet Lake PCH Thermal Controller [8086:06f9]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal
00:14.0 USB controller [0c03]: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller [8086:06ed]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: xhci_hcd
00:14.2 RAM memory [0500]: Intel Corporation Comet Lake PCH Shared SRAM [8086:06ef]
Subsystem: QUANTA Computer Inc Device [152d:1244]
00:14.3 Network controller [0280]: Intel Corporation Comet Lake PCH CNVi WiFi [8086:06f0]
Subsystem: Intel Corporation Dual Band Wi-Fi 6(802.11ax) AX201 160MHz 2x2 [Harrison Peak] [8086:0074]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
00:15.0 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #0 [8086:06e8]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: intel-lpss
00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #1 [8086:06e9]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: intel-lpss
00:16.0 Communication controller [0780]: Intel Corporation Comet Lake HECI Controller [8086:06e0]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:06d3]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: ahci
00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:06b5] (rev f0)
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: pcieport
00:1d.7 PCI bridge [0604]: Intel Corporation Device [8086:06b7] (rev f0)
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: pcieport
00:1e.0 Communication controller [0780]: Intel Corporation Comet Lake PCH Serial IO UART Host Controller #0 [8086:06a8]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: intel-lpss
00:1f.0 ISA bridge [0601]: Intel Corporation Comet Lake LPC Controller [8086:068d]
Subsystem: QUANTA Computer Inc Device [152d:1244]
00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH cAVS [8086:06c8]
Subsystem: QUANTA Computer Inc Device [152d:1293]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl, snd_soc_avs, snd_sof_pci_intel_cnl
00:1f.4 SMBus [0c05]: Intel Corporation Comet Lake PCH SMBus Controller [8086:06a3]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH SPI Controller [8086:06a4]
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: intel-spi
Kernel modules: spi_intel_pci
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] [10de:1f99] (rev a1)
Subsystem: QUANTA Computer Inc Device [152d:1247]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10fa] (rev a1)
Subsystem: QUANTA Computer Inc Device [152d:1247]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: r8169
Kernel modules: r8169
07:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
Subsystem: QUANTA Computer Inc Device [152d:1244]
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci
Now check the adapterās ID and use it to start the app:
switcherooctl list
killall firefox-bin
switcherooctl launch -g 1 firefox
DRI_PRIME=1 firefox
Its working now thank you so much guys!