Hardware acceleration problems

okay so im not sure how to ask this question or what info to provide so please bear with me.
when i use hardware acceleration in browsers their performance is very slow or to the point it actually lags, worst of it being that i can barely resize a chromium browser like vivaldi without it almost hanging up.
since im not sure what info to provide here is some mroe general stuff:
OS: EndeavourOS Linux x86_64
DE: cinnamon
CPU: Intel i5-8400 (6) @ 4.000GHz
GPU: NVIDIA GeForce GTX 1050 Ti
GPU: Intel UHD Graphics 630
Memory: 5347MiB / 23917MiB

if there is any other needed i apoligze if i wasnt providing it porperly

As you are using hybrid graphics hardware, the output of :

inxi -G

or

hwinfo --gfxcard

would be interesting.
You might have to install the selected tool.

Graphics:
Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 455.45.01
Display: x11 server: X.org 1.20.10 driver: intel,nvidia
unloaded: fbdev,modesetting,vesa resolution: <missing: xdpyinfo>
Message: Unable to show advanced data. Required tool glxinfo missing.

13: PCI 100.0: 0300 VGA compatible controller (VGA)
[Created at pci.386]
Unique ID: VCu0.NIfQ5XlzvK9
Parent ID: vSkL.7xeCKY11oOB
SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0
SysFS BusID: 0000:01:00.0
Hardware Class: graphics card
Model: “nVidia GP107 [GeForce GTX 1050 Ti]”
Vendor: pci 0x10de “nVidia Corporation”
Device: pci 0x1c82 “GP107 [GeForce GTX 1050 Ti]”
SubVendor: pci 0x1462 “Micro-Star International Co., Ltd. [MSI]”
SubDevice: pci 0x3510
Revision: 0xa1
Driver: “nvidia”
Driver Modules: “nvidia”
Memory Range: 0xa3000000-0xa3ffffff (rw,non-prefetchable)
Memory Range: 0x90000000-0x9fffffff (ro,non-prefetchable)
Memory Range: 0xa0000000-0xa1ffffff (ro,non-prefetchable)
I/O Ports: 0x3000-0x307f (rw)
Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
IRQ: 131 (2003191 events)
Module Alias: “pci:v000010DEd00001C82sv00001462sd00003510bc03sc00i00”
Driver Info #0:
Driver Status: nouveau is not active
Driver Activation Cmd: “modprobe nouveau”
Driver Info #1:
Driver Status: nvidia_drm is active
Driver Activation Cmd: “modprobe nvidia_drm”
Driver Info #2:
Driver Status: nvidia is active
Driver Activation Cmd: “modprobe nvidia”
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #11 (PCI bridge)

20: PCI 02.0: 0380 Display controller
[Created at pci.386]
Unique ID: _Znp.tEo50ok8jZ9
SysFS ID: /devices/pci0000:00/0000:00:02.0
SysFS BusID: 0000:00:02.0
Hardware Class: graphics card
Device Name: “Onboard - Video”
Model: “Intel UHD Graphics 630 (Desktop)”
Vendor: pci 0x8086 “Intel Corporation”
Device: pci 0x3e92 “UHD Graphics 630 (Desktop)”
SubVendor: pci 0x17aa “Lenovo”
SubDevice: pci 0x36eb
Driver: “i915”
Driver Modules: “i915”
Memory Range: 0xa2000000-0xa2ffffff (rw,non-prefetchable)
Memory Range: 0x80000000-0x8fffffff (ro,non-prefetchable)
I/O Ports: 0x4000-0x403f (rw)
IRQ: 129 (49 events)
Module Alias: “pci:v00008086d00003E92sv000017AAsd000036EBbc03sc80i00”
Driver Info #0:
Driver Status: i915 is active
Driver Activation Cmd: “modprobe i915”
Config Status: cfg=new, avail=yes, need=no, active=unknown

Primary display adapter: #13

You might want to install the package mesa-demos (provides glxinfo) for inxi -G to work next time.

What is the output of

yay -Qs nvidia

?

output with mesa-demos installed:
Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 455.45.01
Display: x11 server: X.org 1.20.10 driver: intel,nvidia
unloaded: fbdev,modesetting,vesa resolution: <missing: xdpyinfo>
OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 455.45.01

local/egl-wayland 1.1.6-1
EGLStream-based Wayland external platform
local/lib32-nvidia-utils 455.45.01-1
NVIDIA drivers utilities (32-bit)
local/libvdpau 1.4-1
Nvidia VDPAU library
local/libxnvctrl 455.45.01-1
NVIDIA NV-CONTROL X extension
local/nvidia 455.45.01-7
NVIDIA drivers for linux
local/nvidia-installer-db 2.4.11-1
Database for the script to setup nvidia drivers in EndeavourOS
local/nvidia-installer-dkms 3.3.8-2
Script to setup nvidia drivers (dkms version) in EndeavourOS
local/nvidia-settings 455.45.01-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 455.45.01-1

As you don’t use nvidia-prime for your setup we need to know, what you installed.
What’s the output of

yay -Qs bumblebee
yay -Qs bbswitch 
yay -Qs prime

honestly im not sure what nvidia prime is or how i would need to use it

local/bumblebee 3.2.1-21
NVIDIA Optimus support for Linux through VirtualGL

local/bbswitch 0.8-370
Kernel module allowing to switch dedicated graphics card on Optimus laptops

not installed and searching for prime leaves too many results that i dont know which to use

the first two have also been installed just now

I would recommend you to uninstall everything related to nvidia, bumblebee, bbswitch and follow the guide over there (optimus-manager).
I think that is the best way to get things working.
But this one doesn’t work with wayland. You need to use X11.

after installing optimus manager and rebooting i am now greeted with a blackscreen and unable to boot into my desktop

Uninstall optimus-manager and try to reboot. If you’re left with a black screen take a look with inxi -G to find out which graphics driver powers your nvidia card right now. You might have to switch to a different Terminal using <Strg>+<Alt>+<F2> and then login.Going back to graphical Environment works with <Strg>+<Alt>+<F1>

i cant uninstall optimus as i cant get to my desktop nor can i shortcut into the terminal, is it possible to remove optimus via a liveboot from a usb stick?

Try to boot with kernel parameter nomodeset.
Press ‘e’ as soon as the boot menu appears and just add it at the end of the line starting with ‘linux’. The line should look similar to this one :
quiet resume=UUID=36d5374c-9424-4a99-97da-e74799f8e2e1 loglevel=3 nowatchdog verbose nomodeset
Then press <Strg>+<x>. Your resolution might be a little off after that. But this will be temporary.

i can go into the terminal with this but i cant get into my desktop nor can i start lightdm as it goes to blackscreen as well, even after removing optimus in the terminal

maybe i used the wrong command to uninstall it?
cause i accidentally reinstalled it via yay again and now i cant remove it

after using pamac i was able to remove it, i can boot into my desktop via momodeste but not otherwise

Install nvidia-installer and check if your card is supported by one of the drivers by executing nvidia-installer-check.
If it is supported install the driver installing nvidia-installer-dkms and execute it.
Then reboot without nomodeset.

after using " `nvidia-installer-dkms"
i was able to boot again, curiously enough i also got a notif saying im running without hardware acceleration, what may i have to do now?
sorry for trouboling you so much

If someone is to exuse, it’s me for causing that trouble. :wink:

What’s the output of inxi -G now?

1 Like

Device-1: Intel UHD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia v: 455.45.01
Display: x11 server: X.org 1.20.10 driver: nvidia
note: n/a (using device driver) FAILED: nvidia
resolution: <missing: xdpyinfo>
OpenGL: renderer: llvmpipe (LLVM 11.0.0 256 bits) v: 4.5 Mesa 20.3.1

To be honest, I have no idea right now, what is going on. I have to do some research on that. It may take a while. Maybe someone comes up with a good idea in the meantime.

wow, thank you in advance for this!