Fedora 36 Black Screen

I had quite an adventure getting this far.
Although this seems circumstantial, and may not work for everyone here, here is the fix that I did for my system.
This is a fix based on regenerating the X window config, and/or making it run the correct driver. The issue for me was caused by X falling back to nouveau graphics while they were blacklisted - this may not be the case for you.

Some of my system specs (as of writing this):
OS: Fedora Linux 36 (Xfce) x86_64
Kernel: 5.19.8-200.fc36.x86_64
CPU: Intel i9-9880H (16) @ 4.800GHz
GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q
DE: Xfce 4.16
WM: Xfwm4
I’m running on X, not Wayland.

Right after installing NVIDIA graphics and setting my system to use them, I had a black screen. The reason for me is because there was no default xorg config file generated for the system, so by default it’s trying to use Nouveau graphics anyways.

This might work with AMD graphics too, but I’m not totally certain.

NOTE: I am unsure if this is ideal for people running with Optimus graphics (like me). I still have to figure this out, but if I do get a good setup for Prime Render Offload, then I’ll edit this post. If you’re running a desktop then continue.

This may reset some of your display settings. This ended up reverting my screen resolution, but I was able to set it back.

  1. Check if you have an xorg.conf file already. If there is a file called /etc/X11/xorg.conf, then skip steps 1, 2 and 6, and instead edit that file.
  2. Boot into your system (either by chrooting in off a USB, SSHing, or using a TTY if you can access it).
  3. Generate the xorg config file with Xorg :1 -configure, which will generate a new config file called xorg.conf.new in /root.
  4. Make sure you have akmod-nvidia installed properly (or whatever other graphics card drivers you want to run Xorg with)!
  5. Edit the file with sudo nano xorg.conf.new (or your text editor of choice). Find the section with your graphics card by searching for “nouveau” in the file. (This is what it’ll probably say by default.)
  6. Replace “nouveau” with “nvidia”.
  7. Running sudo mv /root/xorg.conf.new /etc/X11/xorg.conf will apply the new X config to your system.
  8. Reboot the machine! reboot
  9. If you’re running XFCE like I am, you can run xfce4-settings-manager and go into the Display settings. Perhaps there is some way to change this with xrandr if you do not have a settings manager in your desktop environment.

I hope this helps!