Thread View: linux.debian.user
11 messages
11 total messages
Started by Greg Wooledge
Mon, 02 Nov 2026 13:00
Re: xfce only shows a black screen
Author: Greg Wooledge
Date: Mon, 02 Nov 2026 13:00
Date: Mon, 02 Nov 2026 13:00
52 lines
3604 bytes
3604 bytes
On Sun, Nov 01, 2026 at 23:25:25 -0800, Donald MacDougall wrote:
> After that when I started it up again, logged in and typed 'startx',
> instead of seeing the normal desktop, all I see is a black screen with a mouse
> cursor in the middle which I can move around at will but it does nothing.
> I'm on Wayland obviously with lightdm
If you run startx, you are starting an X session, not a Wayland
session. It sounds like your X session isn't starting your window
manager, or else your window manager isn't configured to show anything
by default.
Also, if you ran startx, your session is *not* under the control of
lightdm. startx is an alternative way of starting an X session.
I don't even know whether lightdm can start a Wayland session, or if
it's only capable of starting X sessions.
So, we have two (or more) different ways we can approach this. My
first inclination would be to see whether startx can be made to work
at all. Try running:
startx startxfce4
If that works, then we know X sessions work, and that XFCE works if
invoked as the X session manager. You can make this your default
session manager by editing or creating the ~/.xsession file and
putting:
exec startxfce4
inside it. Also, if you happen to have a ~/.xinitrc file, you should
probably rename that (or merge its contents into ~/.xsession) so that
it doesn't interfere.
In theory, lightdm should also respect the ~/.xsession file, and launch
XFCE for you after you login, assuming lightdm is configured to start
an X session.
If you expected lightdm to run at boot time, then we might also want
to check on that service. I would start with something like:
systemctl status lightdm
and see if that has any error messages that you can work on. If it
got disabled somehow, then maybe this would work:
systemctl enable lightdm
systemctl start lightdm
Although I don't understand why it would have been disabled, unless
you typed or pasted something as root by accident.
Re: xfce only shows a black screen
Author: Dan Ritter
Date: Tue, 03 Nov 2026 12:00
Date: Tue, 03 Nov 2026 12:00
50 lines
3602 bytes
3602 bytes
Donald MacDougall wrote: > Nov 2, 2026 4:57:01 AM Greg Wooledge <greg@wooledge.org>: > > > > On Sun, Nov 01, 2026 at 23:25:25 -0800, Donald MacDougall wrote: > The reason I thought it obvious is that I'm using > systemctl commands which I thought to be > Wayland commands. If I am wrong about that > then when I look at syslog a large proportion of > the lines at startup and shutdown are systemd > such as: > > systemd [1]: Started cups.service - CUPS Scheduler. > > If I was mistaken that these were indications > that I am using Wayland then I stand corrected. systemd is a replacement init system - the previous default was sysvinit. wayland is a replacement GUI. X11 is still the default unless you are running GNOME. They are not related much. > All I did after typing 'startx' (as me, not root) resulting in the black screen was press ^Alt and the first 6 function keys none of which did anything at all followed by Fn Alt and the function keys which also had no effect, then I quick tapped the power key. That caused a normal shutdown with a rapid scrolling up the screen of the normal shutdown messages and then the computer powered off. "startx" starts X11. Somewhere in the log file that you didn't copy will be the clue about what caused X11 to stop. You should read the man pages for "startx" and "xinit". You say that you do not have a .xinitrc in your home directory. Try creating it with this line in it as the only content: xfce4-session Then run startx and tell us what happens. -dsr- -- https://randomstring.org/~dsr/eula.html is binding upon you. [Set the new password to "swordfish". Please repeat everything three times.]
Re: xfce only shows a black screen
Author: mick.crane
Date: Tue, 03 Nov 2026 13:00
Date: Tue, 03 Nov 2026 13:00
9 lines
3099 bytes
3099 bytes
On 2026-11-03 06:39, Donald MacDougall wrote: > If I was mistaken that these were indications > that I am using Wayland then I stand corrected. echo "$XDG_SESSION_TYPE" might say if you are using wayland or not. mick
Re: xfce only shows a black screen
Author: Greg Wooledge
Date: Tue, 03 Nov 2026 13:20
Date: Tue, 03 Nov 2026 13:20
75 lines
4976 bytes
4976 bytes
On Tue, Nov 03, 2026 at 06:34:02 -0500, Dan Ritter wrote:
> Donald MacDougall wrote:
> > All I did after typing 'startx' (as me, not root) resulting in the black
> > screen was press ^Alt and the first 6 function keys none of which did
> > anything at all followed by Fn Alt and the function keys which also had no
> > effect, then I quick tapped the power key. That caused a normal shutdown
> > with a rapid scrolling up the screen of the normal shutdown messages and
> > then the computer powered off.
If you never use lightdm to login, then I recommend you purge it.
Having it present but inactive may be causing confusion. If you want
to start using it later, you can just install it then.
> "startx" starts X11.
>
> Somewhere in the log file that you didn't copy will be the clue
> about what caused X11 to stop.
To be clear, the log files in question would be:
~/.xsession-errors # for the X11 client applications
~/.local/share/xorg/Xorg.0.log # for the X11 server, normally
or
/var/log/Xorg.0.log # for the X11 server, legacy mode
> You should read the man pages for "startx" and "xinit".
I mean... yeah, in theory? Probably won't help much immediately.
> You say that you do not have a .xinitrc in your home directory.
> Try creating it with this line in it as the only content:
>
> xfce4-session
>
> Then run startx and tell us what happens.
In Debian specifically, ~/.xsession is preferred over ~/.xinitrc
because the former is used by both startx *and* the various display
managers.
When I asked my web browser's search agent for the magic command to
start XFCE, the results I got said startxfce4 instead of xfce4-session,
so I have no idea which one's right. Maybe both. Maybe neither.
I don't know. The Arch Linux wiki <https://wiki.archlinux.org/title/Xfce>
says to use startxfce4 and they're usually a good source.
Before committing one of them to the file system, you should be able to
test each one in turn:
startx startxfce4
startx xfce4-session
Of course, that assumes you have a working X server, which at this point
is still in question.
If you *just* want to test the X server, what I would do is:
apt-get install xterm
startx xterm
That should give you a GUI display with a moving mouse cursor, and a
single 80x24 terminal window in the upper left corner. Moving the
cursor into the terminal window should allow you to type in it.
Moving the cursor out of the window should remove focus, and typing
will no longer do anything. The cursor within the terminal window
should change from solid to hollow depending on where the focus is.
Run the "exit" command in the window to terminate the session.
If that doesn't work, then the X server is malfunctioning, and you'll
need to look at the X server logs (paths shown above) to find out why.
(Either that, or xterm is malfunctioning, which would be unlikely.)
Oh, and just for good measure, I would run "df -h" on this system and
make sure none of the file systems are full.
Re: xfce only shows a black screen
Author: Nicolas George
Date: Tue, 03 Nov 2026 13:30
Date: Tue, 03 Nov 2026 13:30
12 lines
2844 bytes
2844 bytes
Greg Wooledge (HE12026-11-03): > When I asked my web browser's search agent for the magic command to > start XFCE, the results I got said startxfce4 instead of xfce4-session, > so I have no idea which one's right. You can look at the command after `Exec=` in `/usr/share/xsessions/xfce.desktop`. Regards, -- Nicolas George
Re: xfce only shows a black screen
Author: Greg Wooledge
Date: Tue, 03 Nov 2026 13:50
Date: Tue, 03 Nov 2026 13:50
18 lines
2647 bytes
2647 bytes
On Tue, Nov 03, 2026 at 14:20:01 +0100, Nicolas George wrote: > Greg Wooledge (HE12026-11-03): > > When I asked my web browser's search agent for the magic command to > > start XFCE, the results I got said startxfce4 instead of xfce4-session, > > so I have no idea which one's right. > > You can look at the command after `Exec=` in > `/usr/share/xsessions/xfce.desktop`. hobbit:~$ ls /usr/share/xsessions/ fvwm3.desktop fvwm.desktop Sure, I guess I could download the .deb and extract it. Or else try to find some place online where the contents of this file are available to be read. But both of those would have been a lot more work than performing a web search. As an alternative, you could tell us what it says.
Re: xfce only shows a black screen
Author: Nicolas George
Date: Tue, 03 Nov 2026 13:50
Date: Tue, 03 Nov 2026 13:50
11 lines
2793 bytes
2793 bytes
Greg Wooledge (HE12026-11-03): > As an alternative, you could tell us what it says. grep: /usr/share/xsessions/xfce.desktop: No such file or directory What makes you think the situation is any different for me? ;-) Regards, -- Nicolas George
Re: xfce only shows a black screen
Author: Greg Wooledge
Date: Wed, 04 Nov 2026 01:10
Date: Wed, 04 Nov 2026 01:10
14 lines
2597 bytes
2597 bytes
On Tue, Nov 03, 2026 at 16:45:40 -0800, Donald MacDougall wrote: > xterm was already installed so running "startx xterm" does exactly as you described. Well, that's good news. That means your X server, kernel, and video driver are all at least in good enough shape to run a basic X server without any fancy crap going on. This means that whatever the problem is, it's either at the application level (XFCE and company), or it's some sort of driver issue that only happens when an application tries to do something fancy. After this point, unfortunately it may get a lot harder to get additional clues. I'm hoping someone who knows XFCE, or video driver issues in general, can help out.
Re: xfce only shows a black screen
Author: Felix Miata
Date: Wed, 04 Nov 2026 01:50
Date: Wed, 04 Nov 2026 01:50
55 lines
5346 bytes
5346 bytes
Nicolas George composed on 2026-11-03 14:48 (UTC+0100):
> Greg Wooledge composed:
>> As an alternative, you could tell us what it says.
> grep: /usr/share/xsessions/xfce.desktop: No such file or directory
> What makes you think the situation is any different for me? ;-)
I don't like rats. I only use TDE/TDM on Debian. XFCE I have only on a 32bit
Tumbleweed, and on a few Mint 22s:
# inxi -S
System:
Host: ga88x Kernel: 6.8.0-90-generic arch: x86_64 bits: 64
Desktop: Xfce v: 4.18.1 Distro: Linux Mint 22.3 Zena
# ls -Ggh ~/.xini* ~/.xs*
ls: cannot access '/root/.xini*': No such file or directory
-rw------- 1 4.1K Nov 3 20:14 /root/.xsession-errors
# systemctl cat display-manager.service | grep tdm
# /usr/lib/systemd/system/lightdm.service
Documentation=man:lightdm(1)
ExecStartPre=/bin/sh -c '[ "$(basename $(cat /etc/X11/default-display-manager
2>/dev/null))" = "lightdm" ]'
ExecStart=/usr/sbin/lightdm
# scluf 'tdm|play' # alias for systemctl list-unit-files | grep
display-manager.service alias -
lightdm.service indirect enabled
# grep Exec /usr/share/xsessions/xfce.desktop
Exec=startxfce4
# echo "$XDG_SESSION_TYPE"
x11
#
# inxi -S
System:
Host: gx280 Kernel: 7.2.11-1-default arch: i686 bits: 32
Desktop: Xfce v: 4.20.2 Distro: openSUSE Tumbleweed 20261022
# scluf 'tdm|legacy' # alias for systemctl list-unit-files | grep
display-manager-legacy.service enabled enabled
lightdm.service disabled disabled
# grep LAYM /etc/alternatives/default-displaymanager
DISPLAYMANAGER=/usr/sbin/lightdm
# grep Exec /usr/share/xsessions/xfce.desktop
Exec=startxfce4
#
--
Evolution as taught in public schools is, like religion,
based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata
Re: xfce only shows a black screen
Author: Joe
Date: Wed, 04 Nov 2026 13:30
Date: Wed, 04 Nov 2026 13:30
34 lines
3445 bytes
3445 bytes
On Tue, 3 Nov 2026 20:01:06 -0500 Greg Wooledge <greg@wooledge.org> wrote: > On Tue, Nov 03, 2026 at 16:45:40 -0800, Donald MacDougall wrote: > > xterm was already installed so running "startx xterm" does exactly > > as you described. > > Well, that's good news. That means your X server, kernel, and video > driver are all at least in good enough shape to run a basic X server > without any fancy crap going on. > > This means that whatever the problem is, it's either at the > application level (XFCE and company), or it's some sort of driver > issue that only happens when an application tries to do something > fancy. > > After this point, unfortunately it may get a lot harder to get > additional clues. I'm hoping someone who knows XFCE, or video driver > issues in general, can help out. > I've run Xfce4 for many years, since the introduction of Gnome3, but I've never had startup trouble with it, so I can't help. Whenever X failed to start, there was always an obvious clue in the X log e.g. 'failed to find any screens' or some such. Video drivers? Just throw everything possible at it and when it finally works, use lsmod to see what is actually used. With xterm working, I'd probably install another few trial windowing things such as Lxde and a window manager or two, along with gdm3 (big and fat and ugly but very versatile, good for debugging). -- Joe
Re: [Solved] Re: xfce only shows a black screen
Author: Greg Wooledge
Date: Sun, 08 Nov 2026 14:00
Date: Sun, 08 Nov 2026 14:00
36 lines
3452 bytes
3452 bytes
On Sun, Nov 08, 2026 at 01:01:45 -0800, D MacDougall wrote: > I put the on hold for a while but eventually I uninstalled > all the various display managers that I had installed then I was able to > uninstall the compilers. Then I reinstalled lightdm and it worked. Good! > There now still one package installed that I can neither update nor > uninstall. > > It is in the Optional interpreters section. It is called: > > cpp-14-x86-6 GNU C preprocessor for x86_64-linux-gnu The C preprocessor is used by one of the X11 applications, for reasons that I cannot remember right at this moment. So, it's normal to have this, and to have something depending on it. Here's what I have: hobbit:~$ aptitude why cpp i xorg Depends x11-xserver-utils i A x11-xserver-utils Depends cpp > It's supposed to be updatable from 14.2.0-19 to 14.2.0-19cross which That sounds unlikely. Any part of a compiler with "cross" in its version number is probably intended for cross compilation, which is not what you want. > to be not available, but when I mark it to be uninstalled, it wants to also > uninstall these 7 packages. Yeah, don't do that. Keep cpp and its dependencies installed.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads