Although I remain skeptical about AI, it often helps when you're quite clueless and have nothing to lose: even hallucinated lies can be better than nothing and might inspire creative solutions beyond. After AI helped me find an overlooked aspect of my recurring network connectivity issues with public Wi-Fi in German trains, I was hopeful to resolve my erratic black screen issues as well.
Erratic Black Screen Issues on Linux
I chose Linux Xfce on purpose for its classic UI and conservative lightweight energy usage. However, not choosing mainstream means not getting mainstream support, unless you hire an expert or take your time to fiddle with arcane system settings hoping to learn anything and feel proud of your nerdy half-knowledge.
I already examined several logfiles and configurations, as detailed in one of the numerous forum threads about erratic black screen issues on Xfce:
https://forum.xfce.org/viewtopic.php?id=18738
https://forums.linuxmint.com/viewtopic.php?t=450484
Half a year later, I lazily prompted Perplexity, which readily spat out a too-long-don't-read style mix of information that might or might not be helpful in my situation. Leveraging large language model technology, I then asked it to compare its answer with my forum thread on summarize only what I hadn't tried before.
https://www.perplexity.ai/search/i-have-occasional-problems-tha-qusAirrqRtKaXXbujzdYzA#1
The link points to the AI conversation at the time of writing. The paragraphs below are based on that answer and helpful comments in the forum thread. That's a community effort after all, as AI wouldn't find any useful suggestions without prior work of real people making an effort to understand and explain. There are numerous other posts and threads about similar black screen issues, including @an3223 Ethan's XFCE blank/black screen with cursor after login (solution) on DEV.to. His solution was to delete ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml as suggested on the Arch wiki and on this thread from the Nvidia forums.
- https://dev.to/an3223/xfce-blankblack-screen-with-cursor-after-login-solution-5fce
- https://wiki.archlinux.org/index.php/Xfce#Black_screens_at_boot_with_NVIDIA_and_multiple_monitors
- https://devtalk.nvidia.com/default/topic/1029381/linux/black-screen-at-desktop-login-gtx-750-ti-390-25-/3?fbclid=IwAR23GSnvpGS3IKRfYFqdS3ma1Je9NLfkbVemqwHMVT02P_nlZ3BSswnkMiw
The issue
When I log into an Xfce4 session, the screen stays black, there is only a movable mouse pointer, but no menus, no right click, nothing interactive. Xfce, xfwm and compositor still work, as I can see when I either force another X session from a text cosole, or when I am lucky that one of the workarounds leads to a fully functional working Xfce desktop session.
Xfce4 is running on Linux Mint 22. However, similar Xfce issues have been reported on Arch Linux and other Mint versions as well.
Diagnostics and Observations
System information from lsb_release -a && uname -a && inxi && sudo lshw -C display && echo $XDG_SESSION_TYPE && xfwm4 --version and diagnosis tool, contents of ~/.xsession-errors and /var/log/Xorg.0.log after a failed attempt: details can be found in the linked forum threads.
The logs reflecting a defunct black screen session aren't showing any issues. No underrun log entries or any other logs that look related to the blackscreen issue.
Workarounds and Failed Fixes
I had the xserver-xorg-video-intel package installed, but removing the obsolete package was not the solution yet.
- The blackscreen issue used to happen erratically first, so a reboot "solved" the problem. One day, rebooting was not enough anymore.
- All other workarounds start with switching to a console session using Ctrl+Alt+F1
- if there is no cursor, type any key,
- log in at the login prompt,
- do one of the following:
- remove blackbox screensaver:
sudo apt remove blackbox - get all updates: `sudo apt update && sudo apt
- find, kill, and replace the running desktop session:
ps -aux | grep xfce-
kill -9(+ the process id of the xfce session) -
startxorstartxfce4(without lightdm)
- remove blackbox screensaver:
- switch back to the graphical desktop session using Ctrl+Alt+F7
The system keeps behaving erratically. The black screen session that generated the logfiles above, later turned into a functional session when I switched back to it using Ctrl+Alt+F7, but most sessions don't. In rare occasions, after a reboot, everything works well without the black screen issue.
Untested Fixes
The hardware manufacturer, Tuxedo, and a Linux Mint forum user both suggested updating my BIOS, but I fear that I might risk getting even more problems, as I still hope this is just a software/configuration issue.
Alternatively, the hardware manufacturer suggested to switch from their kernel to a default Linux kernel, but I fear I might lose working hardware support, especially for my laptop touchscreen.
I could try enabling the experimental Intel Xe driver for my specific chip ID.
Alternative Approaches
Common troubleshooting suggestions cover session restarts, log checks, and kernel/BIOS notes similar to the forum thread, which remains unsolved with no replies beyond requesting logs.
Diagnostics
Check xfce4-session logs: examine ~/.cache/sessions/xfce4-session-*:0 for session restore errors, absent from forum post.
LightDM and systemd journals: Run journalctl -b -u lightdm and journalctl -b --user -u xfce4-session.service for DM-specific failures.
more untried fixing suggestions
Reset displays.xml: mv ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml.bak then restart LightDM; targets multi-monitor config corruption.
Clear session cache systematically: mv ~/.cache/sessions/* ~/.cache/sessions_backup/ then test startxfce4; prevents broken session reloads.
Test minimal session: Create temp user or disable autostart (mv ~/.config/autostart/*.desktop ~/.config/autostart_disabled/); isolates user config vs. system issue.
Manual component start: From black screen TTY, export DISPLAY=:0; xfce4-panel & xfdesktop & to verify if panel/desktop hangs.
Disable compositor: xfconf-query -c xfwm4 -p /general/use_compositing -s false; rules out xfwm4 rendering stalls on Iris Xe.
Prevention: disable automatic session saving in Xfce's "Session and Startup" settings to avoid recurring cache corruption.
Only after further research (see conclusion and comments below) I found yet another alternative solution approach switching the display manager (or the entire desktop environment):
Alternative Desktops and Display Managers
Asking narrow questions attracts narrow answers, both in specialized user forums and from AI chats that rarely question the question and its implicit assumptions.
On DEV, @leob suggested, I might switch to another desktop environment. After further research, I tried and switched my display manager and switch the desktop from Xfce to Cinnamon (or Mate, but not Gnome or KDE, as the latter two are not officially supported for Linux Mint 22) and see if and when something breaks.
Display Managers: LightDM, LXDM, SDDM
Install and use an alternative display manager instead of LightDM is a good idea in theory, but what would be the alternative that's still supported for Linux Mint?
It's not SDDM, which failed to start, hanging after login, no matter if I used the default (Wayland?) or switched back explicitly using x11. SDDM KDE stack dependencies don't make it an ideal replacement either.
Alternative LXDM: minimal and traditional X11, no Wayland, no login screen customization. LXDM can be use as a drop-in replacement for LightDM on Linux Mint 22 XFCE. However, LXDM hangs at startup, just an unresponsive Linux Mint logo, not even an option to switch to a text console with Ctrl + Alt + F... so I had to reboot into recovery mode and I'm back at LightDM. Back on square one.
I also tried another desktop environment:
sudo apt install cinnamon-desktop-environment
Then log out and select Cinnamon in the session settings.
Cinnamon desktop took a long time to set up so I first thought the black screen issue was back, but that's a one time issue - or at least, the second start was smooth.
I'm still not a big Cinnamon fan, but that wouldn't matter much, if it solved the problem. But the black screen issue still occurs, erratically, not matter if I boot into Cinnamon or Xfce. So the desktop environment is not the root cause. Maybe it's the display manager. We'll never know.
I will never feeld sure again that the black screen issue won't come back eventually, unless someone points to a convincing bug report that matches my problem exactly.
Conclusion
One good thing about Linux is that you can still switch to a text console using Ctrl + Alt + F1 / F2 / F3 in most situations or hit Esc once during boot to enter recovery mode to reconfigure the system. And we have mobile browsers on our phones these days to facilitate research.
Still, it can be hard to solve erratic issues and it's worth following different strategies in parallel, like asking on forums, researching risk-free configuration alternatives, and leveraging both AI and the human developer community to find a solution beyond the obvious suggestions.
Top comments (10)
But it's still not solved? Maybe just dump Xfce and switch to a "mainstream" display manager (KDE or Gnome, and then preferably the "classic" variants)?
Yes, that's still less risk than changing drivers or configuration. No, not solved, as it's only erratic and I don't need to shutdown every day, I probably got lazy. Thanks for reminding me of the simple alternative!
I had other issues after an Ubuntu distribution upgrade in 2024, and cinnamon seemed too restricted so I felt returning to Xfce also visually going back to the good old days. Maybe I took one step too far backwards though.
Gnome classic works for me - not Gnome "Unity", with its huge showy sidebar, which (for me at least) just clutters and gets in the way, and doesn't seem to do anything that I need - but Gnome "classic", with its simple Windows 95/XP style taskbar at the bottom, showing my active/running applications so that I can easily and simply switch between them - and a way to launch apps (via icons or a menu) - and that's it really, nothing more !
That plain, simple, and lovely taskbar is Microsoft's best invention ever - until they messed it up in Windows Vista and later by adding tons of useless features to it ;-)
Unity still exists? like Ubuntu One or what was it called? Last time I had Ubuntu Budgie with a MacOS-inspired Dock panel that looked really nice.
Gnome and KDE don't seem to be officially supported mainstream Xfce alternative for Linux Mint 22 though, but Cinnamon and Mate are.
I used Ubuntu back when I was a (satisfied) Linux user, later on I switched to MacOS - but Linux wasn't bad at all ...
I think I will first try and switch the display manager from lightdm to sddm, maybe I can even keep Xfce, otherwise I'd probaboly switch to Cinnamon. MacOS is nice, its UI much better than Windows, but still too much Apple vendor lock in.
Yeah well you're tied to their hardware, which is obviously pretty expensive, but I'm now used to it and pretty satisfied, so I'm not going to switch back ... but, Linux (Ubuntu in my case) was nice, nothing wrong with it!
Impressive
nice