So I installed some Game with Heroic Launcher today, first game I installed on Linux. And some time after that I was unable to open up my terminal app so I rebooted the system.
Since then I have been unable to login into the Desktop Environment I have 3 kernel versions on my System and all of them result in this Blank screen.
I think this is not relevant tbh I have a backup kernel with the old Fedora 38 installation in the grub list which is the what i installed fedora for the first time. When logging into the Fedora 38 kernel I get some Error more messages about failing to mount boot-efi.mount and more( thatâs the 3rd image).
Thanks in advance for any helps.
So I figures out how to get Logs from the Last Boot Session and most of the error messages are in relation to a missing file called libexpat.so.1
Here are the Logs again
Since it is saying that it failed to mount /boot/efi, I would suggest running a filesystem check on your ESP. Unfortunately, since your root account is locked, I think you will have to create a rescue boot disk of some sort. The Fedora Linux live installer should work (i.e. the normal installation image that you can download from fedoraproject.org).
I have the same problem.
during boot from the f41-live USB I see the line:
âŚ
nouveau 0000:01:00: DRM: failed to create ce channel, -22
âŚ
in light blue
Then once the installed system is coming up, I receive the message in the centre of a blank screen:
NVIDIA kernel module missing. Falling back to nouveau
Then we reach the blank screen with the mouse arrow active but nothing else.
Then, using Ctrl+Alt+F3 i can log in and use the tty terminal command line.
I have tried various ways using rpmfusion to install NVidia drivers but it seems there is nothing compatible for my graphics card (GeForce 210).
Is this correct? Is it thus NOT possible to install F41 on my machine (old i5 with 4 cores and 16GB RAM)?
I donât know exactly which nvidia cards do or do not work with the nouveau driver, but all those video cards should âworkâ in a fallback VESA mode which ought to be enough for basic use (web browsing, word processing, etc.). Can you not install/use Fedora Linux in âBasic Graphics Modeâ (i.e. with nomodeset supplied on the kernel command line at boot)?
Thank you for your message. Iâve managed to re-install F40 and now have some catching up to do before the holidays. In Iâll return to the chase in the New Year. Best wishes for the Festive season.
Now, with the renewed energy from the first signs of spring, Iâm trying to get Fedora 41 to work with my nvidia card which worked fine with previous versions of Fedora. When the system boots I get the blank screen but I can login in terminal mode using Ctrl+Alt+F3.
Following nvidia instructions I tried running their recommended installation package NVIDIA-Linux-x86_64-340.108.run
On running this file, it starts up but then stops with an error message which is recorded in the /var/log/nvidia-installation.log file. This latter file also shows other messages as shown here below:
FROM nvidia-installer.log
âŚ
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
You are using: cc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7)
âŚ
I know nothing about kernel building and certainly not the difference between the kernel being built by gcc OR cc
Could this be part of my graphics problem? How to preferentially build with gcc or cc?
The last part of the log file shows the terminating installation message:
In file included from /tmp/selfgz1777/NVIDIA-Linux-x86_64-340.108/kernel/nv.c:12:
/tmp/selfgz1777/NVIDIA-Linux-x86_64-340.108/kernel/os-interface.h:27:10: fatal error: stdarg.h: No such file or directory
27 | #include <stdarg.h>
| ^~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:229: /tmp/selfgz1777/NVIDIA-Linux-x86_64-340.108/kernel/nv.o] Error 1
make[2]: *** [/usr/src/kernels/6.12.15-200.fc41.x86_64/Makefile:1977: /tmp/selfgz1777/NVIDIA-Linux-x86_64-340.108/kernel] Error 2
make[1]: *** [Makefile:236: __sub-make] Error 2
make[1]: Leaving directory â/usr/src/kernels/6.12.15-200.fc41.x86_64â
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:197: nvidia.ko] Error 1
â Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file â/var/log/nvidia-installer.logâ for details.
(THIS FILE)
You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
ANY SUGGESTIONS ON HOW TO PROCEED?
Thank you.
Derek Jones
Iâm not sure what that warning is saying, but sudo dnf install gcc ought to be enough. I usually install the full c-development group (sudo dnf install @c-development). There is also a @development-tools group that provides commands like patch, but that probably isnât necessary.
It looks like the above was the fatal error. That file is provided by the gcc package:
gcc-14.2.1-7.fc41.x86_64 : Various compilers (C, C++, Objective-C, ...)
Repo : @System
Matched From :
Filename : /usr/lib/gcc/x86_64-redhat-linux/14/include/stdarg.h
Hmm, its also in the kernel-devel package:
kernel-devel-6.12.15-200.fc41.x86_64 : Development package for building kernel modules to match the kernel
Repo : @System
Matched From :
Filename : /usr/src/kernels/6.12.15-200.fc41.x86_64/include/linux/stdarg.h
You might want to install/update the kernel-devel package.
You might want to install/update the kernel-devel package.
I think 6.12.15-200 kernel-devel is no longer in the repos and you have to get it from Koji. (I ran into this last week when rebuilding nVidia drivers after downgrading from 6.13.4).
Thank you for your kind replies and suggestions and I do hope all this is not taking up too much of your time.
Following your comment:
Iâm not sure what that warning is saying, butsudo dnf install gccought to be enough. I usually install the full c-development group (sudo dnf install @c-development). There is also a@development-toolsgroup that provides commands likepatch, but that probably isnât necessary.
I have installed
gcc and @c-development and @development-tools as well as kernel-devel (no problem finding in the repos). And rebooted, of course!
The âgcc vs. ccâ problem and the âfatal error: stdarg.h: No such file or directoryâ persist.
Is there a âkernel-sourceâ anywhere which could be installed?
Maybe this could solve the âgcc vs. ccâ problem?
Iâd focus on the missing stdarg.h problem first. Itâs possible your installation of kernel-devel is corrupted somehow. Try running rpm -V kernel-devel. No news is good news, but if that command outputs that some files are missing or changed/corrupted, then you might need to run dnf reinstall kernel-devel to get the files replaced with valid copies. You might do the same with the gcc package.
It looks like you are trying to install the drivers downloaded from Nvidia, correct?
If you just install the kernel-devel packages, you should have everything you need.
Installed kernel as of this writing is:
6.13.5-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 27 15:07:31 UTC 2025 x86_64 GNU/Linux
Here is how I do mine:
You must do these as root or via sudo
sudo dnf clean all
sudo dnf upgrade -y (letâs get completely up to date)
download the latest drivers from Nvidia (570.124.04 as of this writing)
sudo systemctl set-default multi-user (this completely disables the GUI desktop interfaces at boot)
reboot
login as root or as user with sudo access
exec the nvidia driver install {Nvidia_driver_package-version}.run
just select the default answers as the package installer does its work
reboot and do a quick test by loging in and executing startx at the command line
IF the desktop GUI environment starts without issue, sudo systemctl set-default graphical and reboot
ELSE find and fix the reason which is most likely going to be the driver compile did not work/install correctly
TO start over/uninstall the driver sudo {Nvidia_driver_package-version}.run -uninstall
The message I received during running your suggested NVIDIA driver (NVIDIA-Linux-x86_64-570.124.04.run) which did not work giving me the following message:
WARNING: The following NVIDIA GPUs are supported through NVIDIA legacy Linux graphics drivers and will be ignored by the NVIDIA 570.124.04 Linux graphics driver:
GeForce 210 requires 340.xx
Please visit "Unix Drivers | NVIDIA "
for more information.
Thank you once again.
I followed your advice and run: rpm -V kernel-devel. and dnf reinstall kernel-devel and the news was no news (good or not!).
I also did the same with the gcc package.
I also did a thorough check on nvidia websites (see my reply to One Einer below) which confirmed the 340.108 installation file for my nvidia graphics card.
Iâm no expert at building the Nvidia driver, but at this point Iâd probably try downgrading to the 6.11 kernel and seeing if you can get the Nvidia driver to work with that.
To downgrade the kernel, you can use dnf --repo=fedora downgrade kernel\*. Youâll have to manually pick the older kernel when booting your system because it will default to the newest one. Youâll probably have to hold the shift key while booting to get the boot menu to show.
You can use uname -r to verify that you are running the 6.11 kernel before you attempt to run the Nvidia installer.
Thanks once again Gregory for your help. I have tried with your 6.11 kernel suggestion but the nvidia installation stops at 43% with the same error message in /var/log/nvidia-installation.log (warning gcc compilation⌠but you are using ccâŚetc.) .
Well, I wish my suggestions had been helpful enough to get your driver to build. If there isnât a problem with the installed packages/dependencies, I think the problem must be with the configuration of your system. You might want to examine your environment variables and make sure there isnât anything âunusualâ set like LD_LIBRARY_PATH or maybe something in your PATH. If you do see something set that might be interfering with the build, you can try fixing the value with export <VAR>=<new-value> and the rerun the installer. Alternatively, you might try creating a whole new user account just for a âcleanâ environment.
Iâll be back in my institute on Wednesday and will try out your suggestions.
It may sound strange but my system doesnât seem to have an âexportâ command.