Skip to main content
Topic: After logging in, my screen sometimes returns to the login, or to a black screen (Read 1571 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

After logging in, my screen sometimes returns to the login, or to a black screen

I am using XFCE and openRC.

Re: After logging in, my screen sometimes returns to the login, or to a black screen

Reply #1
Do you have xfce4-screensaver running?


Re: After logging in, my screen sometimes returns to the login, or to a black screen

Reply #3
Nope, still happening, and i don't have a screensaver.

Re: After logging in, my screen sometimes returns to the login, or to a black screen

Reply #4
In my experience, this typically happens if your desktop environment program or window manager crashes for some reason, what DE/WM are you running and did you recently update/change it? If so can you try reverting back to a previous version?

Re: After logging in, my screen sometimes returns to the login, or to a black screen

Reply #5
well then my next guess would be you have a configuration error in lightdm or whatever sm you are using.  if lightdm i would check the settings /etc/lightdm/lightdm.conf i think the file is located there... double check the arch/artix wiki.  Did you set it up for autologin?  maybe disable that and see if you can login manually from the display manager? there areual a few ways to setup lightdm and the wiki can give specifics on that.

also if you ctrl-alt=-f4 to get to the shell you colud try runnings startxfce4

Quote
Starting Xfce
Is it possible to start Xfce when I login on the console?
Yes, there are three different ways to do this:

You can just login with the command startxfce4
You can add exec startxfce4 to your .xinitrc in your home directory and simply use startx.
You can put the following in your .bash_profile/.bashrc if you want Xfce to start automatically when you login on tty1:
Code: [Select]
if [ "$(tty)" = "/dev/tty1" -o "$(tty)" = "/dev/vc/1" ] ; then
  startxfce4
fi
Is it possible to use Xfce with DMs?
Yes. It's probably the default behavior of most distributions.

Setting up LXDM
LXDM is the display manager of LXDE, but it is universal. It has no GNOME or KDE dependencies, a nice interface and is very complete. Most distributions have a package available that you can install. Regarding the configuration, check the presence of a file (or add) /usr/share/xsessions/06xfce4.desktop (the location may differ depending on the distributions), such as:

Code: [Select]
[Desktop Entry]
Encoding=UTF-8
Name=Xfce4
Comment=Use this session to run Xfce4 as your desktop environment
TryExec=/usr/bin/startxfce4
Exec=/usr/bin/startxfce4
Icon=/usr/local/share/pixmaps/xfce4_xicon1.png
Type=Application
Lines TryExec and Exec may also differ between distributions.

Setting up SLiM
If you want to avoid GNOME or KDE dependencies and have a more attractive interface than XDM, you can give SLiM a try. See the SLiM manual for more information.

Setting up GDM
If you installed Xfce system-wide and you want to use the GNOME Display Manager (gdm) to start your Xfce session, you will have to create a .desktop file to teach gdm how to start the Xfce session. This is a sample desktop file, Xfce.desktop:

Code: [Select]
  [Desktop Entry]
  Encoding=UTF-8
  Name=Xfce4
  Comment=Use this session to run Xfce 4.4 as your desktop environment
  Exec=/usr/local/bin/startxfce4
  Icon=/usr/local/share/pixmaps/xfce4_xicon1.png
  Type=Application

It is usually enough to simply copy the example file to the session directory used by gdm; this directory is usually located in /etc/dm/Sessions, /etc/X11/gdm/Sessions, /usr/share/xsessions, /usr/X11/share/gnome/xsessions or some other location. Refer to the documentation of your system for details. You need to restart gdm after you created the file.

Setting up KDM
If you installed Xfce system-wide and you want to use the KDE Display Manager (kdm) to start your Xfce session, you will have to create a .desktop file to teach kdm how to start the Xfce session.

First you need to find where kdm searches for its .desktop files:

  locate kde.desktop
Common locations are /usr/share/apps/kdm/sessions or /usr/local/share/kdm/sessions. Once you found the kdm session directory, you need to create a new file named Xfce.desktop with the following:

Code: [Select]
  [Desktop Entry]
  Encoding=UTF-8
  Type=XSession
  Exec=/usr/local/bin/startxfce4
  TryExec=/usr/local/bin/startxfce4
  Name=Xfce4
  Comment=The Xfce4 Desktop Environment
Login problems
When I start Xfce a dialog pops up saying "Could not look up internet address for..."
Xfce simply wants your hostname to be in /etc/hosts. Example input: 127.0.0.1 localhost

Logout problems
When I try to log out by pressing the logout button in the panel, I get a dialog asking me whether I want to quit the panel and/or xfce4-session-logout reports that no session manager is running, but it is!
For some reason, your X applications cannot connect to the session manager. Possible causes for this are: your hostname cannot be resolved (see Login problems section), your home partition or partition containing /tmp is filled up, your hostname contains non-ascii characters (no umlauts allowed, in particular) or either ~/.ICEauthority or /tmp/.ICE-unix have wrong permissions. Check .xsession-errors for clues.

Back To Top


https://wiki.xfce.org/faq
Cat Herders of Linux


Re: After logging in, my screen sometimes returns to the login, or to a black screen

Reply #7
Aye cap'n! My apologies!

where are the codes located at.  i'm an old timer and i forgot somethings
Cat Herders of Linux

Re: After logging in, my screen sometimes returns to the login, or to a black screen

Reply #8
Nope, still happening, and i don't have a screensaver.
Is your session restored when you log in again? I mean, your applications are still opened etc.
This looks like a normal screen locking behaviour. Do you also have xfce4-power-manager running? There is a setting inside it to turn off the screen and optionally lock it on idle timeout. The screen can be locked via light-locker, for example.

If this is not the case, then look into /var/log/Xorg.0.log and ~/.xsession-errors after the issue happens and check what is written there.