Video Mesa Driver? crashes Older Lenovo Laptop with KDE Desktop

I have been unable to use Kodi for a while on my W530 Laptop. I suspect the Mesa or Intel driver. Here is what I have:-

alastair@localhost:~> inxi -GxxS 
**System:    Host:** localhost **Kernel:** 5.10.3-1-default x86_64 **bits:** 64 **compiler:** N/A **Desktop:** KDE Plasma 5.20.4  
           **tk:** Qt 5.15.2 **wm:** kwin_x11 **dm:** SDDM **Distro:** openSUSE Tumbleweed 20210101  
**Graphics:  Device-1:** Intel 3rd Gen Core processor Graphics **vendor:** Lenovo **driver:** i915 **v:** kernel **bus ID:** 00:02.0  
           **chip ID:** 8086:0166  
           **Device-2:** NVIDIA GK107GLM [Quadro K1000M] **vendor:** Lenovo **driver:** nouveau **v:** kernel **bus ID:** 01:00.0  
           **chip ID:** 10de:0ffc  
           **Device-3:** Acer ThinkPad Integrated Camera **type:** USB **driver:** uvcvideo **bus ID:** 1-1.6:5  
           **chip ID:** 5986:02d2  
           **Display:** x11 **server:** 1.20.10 **compositor:** kwin_x11 **driver:** modesetting,nouveau  
           **unloaded:** fbdev,vesa **alternate:** intel,nv,nvidia **resolution:** <xdpyinfo missing>  
           **OpenGL:****renderer:** Mesa DRI Intel HD Graphics 4000 (IVB GT2) **v:** 4.2 Mesa 20.2.4 **compat-v:** 3.0  
           **direct render:** Yes  

When I try and run kodi I get the following and kodi crashes immediately:-

alastair@localhost:~> kodi 
libva info: VA-API version 1.10.0 
libva info: Trying to open /usr/lib64/dri/ 
libva info: va_openDriver() returns -1 
libva info: Trying to open /usr/lib64/dri/ 
libva info: Found init function __vaDriverInit_1_8 
failed to open /usr/lib64/dri/ 
Not using 
libva info: va_openDriver() returns 0 
failed to open /usr/lib64/dri/ 
Not using 
Could not find platform independent libraries <prefix> 
Could not find platform dependent libraries <exec_prefix> 
Consider setting $PYTHONHOME to <prefix>:<exec_prefix>] 
ImportError: No module named site 
malloc(): smallbin double linked list corrupted 
/usr/bin/kodi: line 219: 26051 Aborted                 (core dumped) ${KODI_BINARY} $SAVED_ARGS 
find: ‘/home/alastair/pCloudDrive/Crypto Folder’: Permission denied 
Crash report available at /home/alastair/kodi_crashlog-20210103_111626.log 

I believe I have accepted a driver with a health warning for kde systems and 3D acceleration. Whatever the case I do not need 3D acceleration so how please can I unravel this and get things working again?

Uninstall nouveau. Blacklist nouveau.
Install nVidia’s drivers.

Possibly you need to install Mesa 3D drivers for VA-API.

Hi and thanks for the suggestions. I tried to remove nouveau and there was nothing to do
Not sure how to blacklist correctly. I could just edit /etc/modprobe.d/50-blacklist.conf but am in the dark about kernel modules and initrd.
Mesa 3D drivers appear to be installed.
How do I get nVidia drivers?
More checking and help needed please.

You have what appears to be an Optimus configuration. Have you read up on what makes Optimus special, and how to deal with drivers for Optimus? I would make sure suse-prime is installed for directing which GPU to use when. Kodi could be trying to use the wrong driver, and if you use suse-prime to make a switch, the crashes could disappear.

Before trying to install NVidia’s drivers, I’d exhaust all possibilities without. That includes both xf86-video-intel and xf86-video-nouveau and xorg-x11-driver-video not being installed.

If TW is still providing inxi-3.1.0, try using latest upstream version 3.2.0, which makes its graphics output better understandable. Also, with G, instead of xx, try ay. Inxi -I or inxi --version will report the version.