Acer Swift 3 SF315-52G Fedora 40 KDE nouveau_drv_video.so init failed

My laptop is an Acer Swift 3 SF315-52G with an NVIDIA Optimus graphics card (MX150).

$ /sbin/lspci | grep -e 3D
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev a1)
$ mokutil --sb-state
SecureBoot disabled
Platform is in Setup Mode

Here is the log when I started the Spectacle:

libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/dri-nonfree/nouveau_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/nouveau_drv_video.so
libva info: Trying to open /usr/lib64/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_21
nvc0_screen_create:1077 - Error allocating PGRAPH context for M2MF: -16
libva error: /usr/lib64/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns 2
kpipewire_record_logging: VAAPI: Failed to initialize display
kpipewire_record_logging: DRM device not found
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/dri-nonfree/nouveau_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/nouveau_drv_video.so
libva info: Trying to open /usr/lib64/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_21

As far as I understand, the problem is with a driver. My system is a freshly installed Fedora 40 KDE edition.
Do I need install additional drivers ?

Any advice would be appreciated.

I do not think that nouveau properly supports the MX150 GPU.
Probably the nvidia driver installed from rpmfusion would eliminate those errors.
https://rpmfusion.org/Howto/NVIDIA?highlight=(\bCategoryHowto\b)#Current_GeForce.2FQuadro.2FTesla

Well, probably my laptop is not compatible . After I installed drivers

sudo dnf update -y # and reboot if you are not on the latest kernel
sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead
sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support

After rebooting my laptop, the screen turned black. I logged into the console using Alt+F2. However, I don’t have time to debug this issue at the moment. I just wanted to report it to the community to urge caution for those still using such old laptops.

the MX150 is supported by the newest drivers from rpmfusion.
The black screen is sometimes caused by having secure boot enabled which prevents the nvidia driver from loading and loads the nouveau driver instead.

You should be able to bypass that in one of 2 ways.

  1. turn off secure boot in the bios setup menu
    or
  2. enable signing the kernel modules and loading them with
    a. remove an unsigned module with dnf remove kmod-nvidia-$(uname -r)
    b. create a key and import it into bios by following the steps in
    /usr/share/doc/akmods/README.secureboot
    c. create the modules again with sudo akmods --rebuild --force
    d. When that completes then reboot.

@computersavvy you was absolutely right. The problem was in secure boot.

This is how I fixed:

Disable Secure boot

  1. Press F2 to log in to the BIOS
  2. At the Security tab Set Supervisor Password
  3. At the Security tab select Erase all Secure Boot Setting (it’s mandatory)
  4. Go to the Boot tab and switch Secure Boot to the Disabled.
  5. Check SecurityBoot status
    $ mokutil --sb-state
    SecureBoot disabled
    Platform is in Setup Mode
    

Install Drivers

  1. Enable Fusion repo
    sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
    
  2. Install drivers
    sudo dnf update -y # and reboot if you are not on the latest kernel
    
    sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead
    
  3. Reboot
  4. Check version
    $ modinfo -F version nvidia
    550.76
    
1 Like