Blank screen after login

I’m experiencing the same display issue on both my laptop (intermittantly) and stand-alone motherboard (reproduceably). They boot just fine to the login screen, but after I login I just get a black screen with a mouse cursor on it. I can press CTRL+ALT+F6 to get to a prompt and log in as either the admin user or as root. If I log in as root I can run startx and get a usable desktop but with the admin user I get an error message that I can’t find much information about: xf86EnableIOPorts: failed to set IOPL for I/O.

I’ve tried creating new users (both admin and standard) and they have the same issue. If I check the xorg log in the admin user’s home folder I can see a whole bunch of No protocol specified. Error: can't open display: :0.0 messages. I’ve seen a few posts that suggest something about nvidia drivers, but for both devices the only nvidia package I seem to have installed is nvidia-gpu-firmware.noarch.

Anyone have any thoughts on how I can resolve this display issue? I’m primarily interested in solving it for the stand-alone motherboard.

LAPTOP
CPU: Ryzen 7 7640U
BIOS: 3.05
OS: Fedora 40 (Cinnamon) - up to date

STAND-ALONE (Cooler Master case)
CPU: Core i5 1135G7
BIOS: 3.20
OS: Fedora 40 (Cinnamon) - base install from live USB, hangs on running SElinux script when I try updating through dnf

Screenshot of error when running startx as admin user:

I had similar issues while using Lubutu after installing a new desktop manager then changing my default desktop manager from LXQT to XFCE. I had to delete some configs and reinstall the default desktop manager that comes with Lubuntu then manually start the Desktop manager.

At first everything was working fine, then started messing with fractional scaling and it was a black screen. The errors with conf.d usually point to a configuration issue and can be tricky to resolve as an intermidiate linux user the commands were a bit tricky to research.

You might try purging the config:

dnf remove package / dnf rm package

Then reinstalling after purging.

Is this after a fresh install that the issues start immediately?

After a fresh install, yeah; although it’s possible it’s somehow lingering from a previous installation attempt.

When I first installed Fedora on the stand-alone board it didn’t have the issue, and then I ran a dnf update through dragora. It hung while running an SElinux script and I ended up power cycling after letting it sit for a few hours (the desktop was entirely unresponsive during that time). When it came back up I started having the blank screen issue. I figured it was just something in the updates causing it so I wiped the drive and went back to a fresh install–without running the dnf updates–and the problem has persisted ever since.

I can’t completely rule out the possibility that it was there the whole time and I simply don’t remember logging in with root originally, but I think I was logged in as the admin user when I ran that update.

Hi,

You seem to be fighting with SELinux.
You can set SELinux to “Permissive” that essentially disables it, but at the same time, hints at what rules you would need to set if you enabled it again.
So, my recommendation is get everything working with SELinux essentially disabled
Then once everything is working, update the SELinux policy as needed and the enable SELinux again.

I think you might get more helpful advice from a Fedora user’s forum rather than the FW community.

I’m not sure what you mean by purging the config. Just deleting it? Which package should I remove?

No luck with disabling SELinux. I set it to permissive (and getenforce shows it as permissive) but I still get the blank screen.

Editing to add: the one Fedora forum I know (fedoraforum.org) about has a thread from someone else with the exact same issue that hasn’t received any responses (other than mine). :sob: If you happen to know of any others to recommend I’ll check them out.

try installing KDE

sudo dnf install @kde-desktop-environment
sudo dnf install switchdesk
sudo switchdesk kde

See below for Fedora docs

This should allow you to set the default desktop environment.
Since Gnome is default for Fedora, use KDE

cd /etc/sysconfig/
ls

if ‘desktop’ file exists then use nano to edit it.

sudo nano desktop

if it doesn’t exist, make it using the below command, then use nano to edit it as seen above.

sudo touch desktop

edit the desktop file to include the below or edit it so the defaults are KDE as pictured below.

DESKTOP="KDE"
DISPLAYMANAGER="KDE"

Save the changes then reboot.

If this works then the configuration for your Gnome desktop got messed up, likely by SELinux like Jame3 said.

From there back up any relevant data from your workstation, bookmarks, text files, etc.

It’s likely when you’re reinstalling you’re not hitting all of your partitions. when reinstalling (after backing up files), completely remove all of your partitions (be careful if you’re dual booting to not delete the partitions for your windows system) then reinstall and everything should work normally.

1 Like

Aha!

Bizarrely I can’t get switchdesk kde to work because it keeps insisting KDE isn’t installed even though it clearly is (I even tried the groupinstall thing for KDE plasma). However!

Your post reminded me that I did not, in fact, delete every partition when I reinstalled Fedora. There were one or two that I thought might be connected to the BIOS upgrade I also had to do and it wasn’t clear if I still needed them. Blew those away on an install and now it works as expected. Still not entirely sure what the issue was but after like two weeks stuck on this, I’ll take it.

Thanks!

1 Like