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 ?
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.
turn off secure boot in the bios setup menu
or
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.