Autologin not working booting to systemd option

For questions regarding system and application security
Message
Author
User avatar
bpr323
Posts: 169
Joined: Thu Jun 20, 2019 10:17 am

Autologin not working booting to systemd option

#1 Post by bpr323 »

I have MX23 XFCE4 and I needed to use a Dell D6000 USB-C dock (aka displaylink) to connect my laptop to 2 screens and ethernet.
However, the Linux driver only runs under systemd, therefore I choose advanced options -> systemd
Under "normal" Libretto I auto-login and logout of XFCE without any login prompts.
After booting to systemd I went to MX User Manager and made sure my user account is set to auto login.
But this doesn't work and I'm promted to enter my username and pwd to log in.
Same happens when I logout/reboot - the system drops out of XF desktop and asks me to provide credentials (after 10 sec the prompt goes away)
Question: How do I fix this and configure systemd to enable auto login/logout?

User avatar
dolphin_oracle
Developer
Posts: 22057
Joined: Sun Dec 16, 2007 12:17 pm

Re: Autologin not working booting to systemd option

#2 Post by dolphin_oracle »

please post the quick-system-info for your system, as well as the /etc/lightdm/lightdm.conf file and the output of the following:

Code: Select all

apt policy dbus-user-session
at reboot/shutdown, do you actually have to enter a password for reboot/shutdown to continue, or do you just see the login screen and reboot/shutdown continues on its own?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
bpr323
Posts: 169
Joined: Thu Jun 20, 2019 10:17 am

Re: Autologin not working booting to systemd option

#3 Post by bpr323 »

Thank you Sir - do I need to boot into systemd before I run these outputs?

User avatar
bpr323
Posts: 169
Joined: Thu Jun 20, 2019 10:17 am

Re: Autologin not working booting to systemd option

#4 Post by bpr323 »

dolphin_oracle wrote: Tue Dec 05, 2023 10:54 pm please post the quick-system-info for your system,
inxi.txt
as well as the /etc/lightdm/lightdm.conf file
lightdm.conf.txt
and the output of the following:

Code: Select all

apt policy dbus-user-session
dbus.txt
at reboot/shutdown, do you actually have to enter a password for reboot/shutdown to continue, or do you just see the login screen and reboot/shutdown continues on its own?
No I don't need to enter username/pwd for reboot/shutdown - the prompt goes away after 5-10 sec and reboot continues on its own. But for login it's persistant
You do not have the required permissions to view the files attached to this post.

User avatar
dolphin_oracle
Developer
Posts: 22057
Joined: Sun Dec 16, 2007 12:17 pm

Re: Autologin not working booting to systemd option

#5 Post by dolphin_oracle »

nothing is jumping out at me, as long as your user name "me" is correct in you lightdm.conf file. and that should have been the same between sysVinit and systemd anyway.

I sort of wonder about the $DISPLAY while you are running that dock.

maybe after log in under systemd:

Code: Select all

xrandr 
echo $DISPLAY
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
bpr323
Posts: 169
Joined: Thu Jun 20, 2019 10:17 am

Re: Autologin not working booting to systemd option

#6 Post by bpr323 »

1) Yes, the user name is correct as I'm using "personal" snapshots to keep tweaking my "assembly" of mx23 XFCE
2) The login/out forced authentication happens regardless of wheather the dock is connected or not - under systemd I have to provide my user creds to login to XFCE session and when I log out it wants to auth me when it drops out of XFCE session under systemd.
I don't-do in-flight logouts - just use advanced option to log in under systemd when I boot up.
I suspect this is something to do how the "advanced option" works to initiate a systemd session (autologin is lost).
Nothing major, but I wish I could fix the problem
xrandr
echo $DISPLAY just reports screen resolutions and that DP1/DP2 are disconnected - no errors and nothing to require user authentcation ...

User avatar
dolphin_oracle
Developer
Posts: 22057
Joined: Sun Dec 16, 2007 12:17 pm

Re: Autologin not working booting to systemd option

#7 Post by dolphin_oracle »

The display variable should not include any resolutions.

Where did the driver come from?
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
dolphin_oracle
Developer
Posts: 22057
Joined: Sun Dec 16, 2007 12:17 pm

Re: Autologin not working booting to systemd option

#8 Post by dolphin_oracle »

I found a driver package from dell, maybe that is is.

https://dl.dell.com/FOLDER08515978M/1/N ... ftware.zip

looking at some of the installation information, I'm wondering if the fact that the dock driver loads AFTER ligthdm, and the fact that we have an init script fro lightdm as well as a systemd service, may be causing you some grief.

you could try

Code: Select all

sudo update-rc.d lightdm remove
which should disable the sysVinit lightdm init script, but leave the systemd service file alone. maybe that will help you.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
bpr323
Posts: 169
Joined: Thu Jun 20, 2019 10:17 am

Re: Autologin not working booting to systemd option

#9 Post by bpr323 »

Hi mate, cheers for getting back to me with this issue, greatly asppreciated!

1) The driver comes from here : https://github.com/AdnanHodzic/displayl ... g/v5.7.0.2
2) After running <sudo update-rc.d lightdm remove> the results are:
a) under "normal" login the system boots, but after the MX logo the screen goes black and nothing else happens
b) under "advanced options / systemd" login it completes the boot and displaylink driver works OK, but authentication is still required for logon and logoff (for the latter the prompt goes away and logout completes without providing user creds)

User avatar
dolphin_oracle
Developer
Posts: 22057
Joined: Sun Dec 16, 2007 12:17 pm

Re: Autologin not working booting to systemd option

#10 Post by dolphin_oracle »

ok you can put lightdm back with

Code: Select all

sudo update-rc.d lightdm defaults
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

Post Reply

Return to “Security”