(LightDM) Unable to reach the desktop when I wake up my laptop

Message
Author
User avatar
Mich-C
Posts: 48
Joined: Tue Nov 21, 2017 12:11 pm

(LightDM) Unable to reach the desktop when I wake up my laptop

#1 Post by Mich-C »

Hello there. Here's my problem:
When my laptop autosuspends and I turn it on I get the lighDM screen, I login, but I get a black screen and I can' t reach the desktop.
And so I have to reboot.
The problem doesn't happen with the first login.

When I press ctrl+alt+f1 I get a "bad" line:

Code: Select all

[FAIL] startpar: service(s) returned failure : playmouth ... failed!
If I give this command "sudo service lightdm restart" I get:

Code: Select all

systemd-login[7910]: Failed to enable subscription: Connection timed out
systemd-login[7910]: Failed to fully start up daemon: Connection timed out
Recently I edited the lightdm configuration file to set the autologin after a couple of seconds.
(Last year I messed up my configuration and I had to reinstall MX because I used Thunar with root privileges and something went wrong, this time I used terminal to avoid errors of this kind)
So I moved to the /etc/lightdm directory and I used nano to edit the lighdm.conf file.
As you can see I just changed the "autologin-user-timeout" value to 9.

Code: Select all

[SeatDefaults]
#type=xlocal
xserver-command=X -dpi $DPI
#xserver-layout=
#xserver-config=
xserver-allow-tcp=false
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
greeter-session=lightdm-greeter
#greeter-hide-users=true
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-guest=true
#guest-session=UNIMPLEMENTED
session-wrapper=/etc/X11/Xsession
display-setup-script=/usr/local/bin/early-bg
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
autologin-user=michele
autologin-user-timeout=9
#autologin-session=UNIMPLEMENTED
#exit-on-failure=false
The permissions of the configuration file seem ok. ls -s gives:

Code: Select all

totale 24
-rw-r--r-- 1 root root   40 nov 21  2017 keys.conf
-rw-r--r-- 1 root root 4888 set 29 12:25 lightdm.conf
-rw-r--r-- 1 root root  392 set 29 12:17 lightdm-gtk-greeter.conf
drwxr-xr-x 2 root root 4096 feb  6  2019 mx18
-rw-r--r-- 1 root root  452 nov 21  2017 users.conf
By the way, is there any other alternative to lightdm? Something even lighter than lightdm? 😄

Thank in advance.
I develop things in my spare time:
--->my Telegram channel HERE
--->my works on the xda-developers forum HERE
--->my tech blog HERE (still working on it)

Huckleberry Finn

Re: (LightDM) Unable to reach the desktop when I wake up my laptop

#2 Post by Huckleberry Finn »

I'm having a similar problem with MX19 since the day I installed.. I'd written a lot in MX19 Feedback thread.. Black screen with only the mouse pointer.. Only Ctrl Alt Backspace works .. also as you mentioned Ctrl Alt F1 or F2 ... then startx . But with these you lose the last session..

(also pressing Ctrl Alt F7 (after ...F1 or ...F2) doesn't help..

I noticed that the problem occurs when the screen is "locked".. So that it happens again when I only "lock screen"..
And i.e. when I suspend with other commands like pm-suspend or s2ram (both suspend without locking the screen) everything's perfect. (Maybe you'd like to try in Power Settings to uncheck "lock the screen when pc suspends.." )

Then I removed xfce4screensaver and installed light-locker.. (as in MX 18) .. First it seemed to work.. but same after some time..

Meanwhile there's "Slim" greeter in MXPI even lighter (abandoned if I'm not wrong) which I'd tried to make it work in MX 18 a lot (just out of curiosity), with no success..

P.S. On mine plymouth is removed from the first day, and I see "Apparmor ... "and "Startpar blah blah Failed" during init..

User avatar
Mich-C
Posts: 48
Joined: Tue Nov 21, 2017 12:11 pm

Re: (LightDM) Unable to reach the desktop when I wake up my laptop

#3 Post by Mich-C »

Huckleberry wrote: Thu Nov 14, 2019 2:12 pm I'm having a similar problem with MX19 since the day I installed.. I'd written a lot in MX19 Feedback thread..
Thank you! I'm using MX 18.1.1.1.1.1 by the way.
The Devs must fin a solution! This problem has forced me this to use Windows again!
Huckleberry wrote: Thu Nov 14, 2019 2:12 pm
I noticed that the problem occurs when the screen is "locked".. So that it happens again when I only "lock screen"..
And i.e. when I suspend with other commands like pm-suspend or s2ram (both suspend without locking the screen) everything's perfect.
I tryed pm-suspend from terminal and it's ok
Huckleberry wrote: Thu Nov 14, 2019 2:12 pm
(Maybe you'd like to try in Power Settings to uncheck "lock the screen when pc suspends.." )
I'll try these solutions too and I'll let you know.
Huckleberry wrote: Thu Nov 14, 2019 2:12 pm Meanwhile there's "Slim" greeter in MXPI even lighter (abandoned if I'm not wrong) which I'd tried to make it work in MX 18 a lot (just out of curiosity), with no success..
I'll install it but I don't want to break my system. Maybe one I'll test it in a virtual machine and see if it can work on MX.
You can also check on Debian forums, you'll surely find someone who has installed it.
Huckleberry wrote: Thu Nov 14, 2019 2:12 pm P.S. On mine plymouth is removed from the first day, and I see "Apparmor ... "and "Startpar blah blah Failed" during init..
I don't know what it is at all... 😂
I develop things in my spare time:
--->my Telegram channel HERE
--->my works on the xda-developers forum HERE
--->my tech blog HERE (still working on it)

Huckleberry Finn

Re: (LightDM) Unable to reach the desktop when I wake up my laptop

#4 Post by Huckleberry Finn »

Ah, you're lucky: On 18.x just use :

Code: Select all

systemctl suspend
(although systemctl is a command of systemd, it works perfectly, just type ona terminal, hit enter and see :) yes on SysV ) and it locks the screen, too. Also (as me) you can go to "keyboard" and assign a hotkey combination with that command. And change everything in Power Settings (look all tabs) to "suspend" from "hibernate" or "sleep"..

(I was so happy with systemctl suspend but it's no longer available in 19..)

If locking the screen or not isn't important to you, pm-suspend works flawlessly, you can assign separate hotkeys (or create launchers) for that, too..

P.S. And as you might already know, and if you like, you can also upgrade to 18.3 at least with just a command:

Code: Select all

sudo apt update && sudo apt dist-upgrade -y

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: (LightDM) Unable to reach the desktop when I wake up my laptop

#5 Post by Head_on_a_Stick »

Mich-C wrote: Thu Nov 14, 2019 1:47 pm is there any other alternative to lightdm? Something even lighter than lightdm?
Use a console login with no display manager at all: viewtopic.php?f=23&t=51044

Do the LightDM logs give any clues as to the nature of the failure?
mod note: Signature removed, please read the forum rules

User avatar
jordansc
Posts: 16
Joined: Sat Aug 25, 2018 10:13 pm

Re: (LightDM) Unable to reach the desktop when I wake up my laptop

#6 Post by jordansc »

Huckleberry wrote: Thu Nov 14, 2019 2:12 pm I'm having a similar problem with MX19 since the day I installed.. I'd written a lot in MX19 Feedback thread.. Black screen with only the mouse pointer.. Only Ctrl Alt Backspace works .. also as you mentioned Ctrl Alt F1 or F2 ... then startx . But with these you lose the last session..

(also pressing Ctrl Alt F7 (after ...F1 or ...F2) doesn't help..

I noticed that the problem occurs when the screen is "locked".. So that it happens again when I only "lock screen"..
And i.e. when I suspend with other commands like pm-suspend or s2ram (both suspend without locking the screen) everything's perfect. (Maybe you'd like to try in Power Settings to uncheck "lock the screen when pc suspends.." )

Then I removed xfce4screensaver and installed light-locker.. (as in MX 18) .. First it seemed to work.. but same after some time..

Meanwhile there's "Slim" greeter in MXPI even lighter (abandoned if I'm not wrong) which I'd tried to make it work in MX 18 a lot (just out of curiosity), with no success..

P.S. On mine plymouth is removed from the first day, and I see "Apparmor ... "and "Startpar blah blah Failed" during init..
Not sure of the status of this issue but I have experienced virtually the identical problem in MX-19 until now. It's important to note that my PC uses Intel graphics. FYI - I installed MX-19 on another PC with Nvidia and had no such sleep/locking/black screen issue.

This is what I did to fix it (YMMV). Please back up your data...you know the drill.

1- Install light-locker and set it to auto-start. Reboot and verify it is running.

2- Edit bin/xflock4 so that light-locker is the first entry in this statement (when you lock the screen using the lock icon/xflock4, light-locker will be invoked) :

Code: Select all

# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
for lock_cmd in \
    "$LOCK_CMD" \
    "light-locker-command --lock" \
    "xscreensaver-command -lock" \
    "xfce4-screensaver-command --lock" \
    "gnome-screensaver-command --lock" \
    "mate-screensaver-command --lock"
3- Discovered there's a bug in the current light-locker that keeps the screen black when light-locker is activated. Addressed the black screen bug by navigating to /etc/X11/xorg.conf.d/ and making a new file called 20-intel.conf with the following code from https://wiki.archlinux.org/index.php/Intel_graphics. THIS IS FOR INTEL GRAPHICS ONLY:

Code: Select all

Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
EndSection
4- Open XFCE4 Screensaver and choose the 'Screensaver' tab. 'Enable Screensaver' on the top right and choose a screensaver of your choice. Turn on 'Activate screensaver when computer is idle' and set a timeout period (i.e. 5 minutes).
Go to the 'Lock Screen' tab. Turn OFF 'Enable Lock Screen'.
Click on 'Power Management' at the bottom of the window, choose the 'Display' tab and turn OFF 'Display Power Management'. The Power Manager is no longer handling DPMS. X11 is.
Click on the 'Security' tab (which was added by the installation of light-locker) and select 'Automatically lock the session: When the screensaver is activated'.
Check 'Lock screen when system is going to sleep'.

5- Lock your screen to verify all is working.

BTW, I also got the issue resolved with xscreensaver..it was much simpler to implement but xscreensaver is just too ugly for me ;)
Intel NUC, i3-8th gen, 16GB RAM, Samsung 970 EVO 250GB PCIe NVMe - M.2 SSD, Intel Iris Plus Graphics 655, MX-21 KDE

Post Reply

Return to “Software / Configuration”