You are not logged in.

#1 2021-08-12 02:03:22

amghwk
Member
Registered: 2020-05-23
Posts: 43

[SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

Before I begin, allow me to declare myself where I stand in Arch Installation : I'm a newbie, but I have been installing Arch enough times (since I'm hooked to Arch like no other) that I can install from scratch without looking at the basic Install guide wiki anymore. (I still look it up, in case I miss anything.)

After upgrading my main desktop, I moved the previous system to the living room for common use.

SYSTEM:
-------------
ASUS ROG Strix H370-F           
Core i7-8700K                             
On-board Intel UHD graphics. 
16GB RAM

Followed https://wiki.archlinux.org/title/LightD … _autologin and https://wiki.archlinux.org/title/LightD … s_not_work.


Done all of the following:

/etc/lightdm/lightdm.conf

[Seat:*]
autologin-user=username

You must be part of the autologin group to be able to login automatically without entering your password:

# groupadd -r autologin
# gpasswd -a username autologin

LightDM logs in using the session specified in the ~/.dmrc of the user getting logged in automatically. To override this file, specify autologin-session in lightdm.conf:

/etc/lightdm/lightdm.conf

[Seat:*]
autologin-user=username
autologin-session=session

No matter what, at the login, I still get the password login of the lightdm greeter. I've also set the autologin timeout=0.

Went through my /usr/share/xsessions/xfce.desktop to look for my autologin-session name, which was shown as: Xfce Session. (I also tried "xfce4", but still cannot autologin.)

(One thing I noted from following the above wiki is that I don't have the ./dmrc file.) 

What am I doing wrong? Please guide.

Thank you.

Last edited by amghwk (2021-08-12 11:02:33)

Offline

#2 2021-08-12 02:50:47

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

I take it that you have replaced username with your actual username?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-08-12 06:37:02

amghwk
Member
Registered: 2020-05-23
Posts: 43

Re: [SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

Slithery wrote:

I take it that you have replaced username with your actual username?

Yep. The above post inside the code block was just the part I copied and pasted from the wiki directly.

Offline

#4 2021-08-12 07:59:36

grandmouse
Member
From: germany, bonn
Registered: 2005-05-14
Posts: 90

Re: [SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

Offline

#5 2021-08-12 08:42:17

amghwk
Member
Registered: 2020-05-23
Posts: 43

Re: [SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

How will that solve my problem?

Offline

#6 2021-08-12 08:52:19

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 170

Re: [SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

amghwk wrote:

I don't have the ./dmrc file.

It's not ./dmrc but ~/.dmrc ( it's a hiden directory in your home)
LightDM logs in using the session specified in the ~/.dmrc of the user getting logged in automatically

I think that don't work because you dont'have this directory, in the archlinux wiki there's wrote that LightDM read inside this directory to know what session have to use, so if you don't have that directory probably the Display Manager don't know how to login and do nothing


Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

#7 2021-08-12 09:19:55

amghwk
Member
Registered: 2020-05-23
Posts: 43

Re: [SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

I followed the wiki to install lightdm. Why is the ~./dmrc file not created? (I always enable to show hidden files in Thunar.)

Since it's not there, I got the autologin-session name from /usr/share/xsession/xfce.desktop file.

Anyway, in one of my laptops, I see there is a .dmrc file created and it showed xfce as session name. I'll recreate this file in my desktop and will check again.

Last edited by amghwk (2021-08-12 09:26:08)

Offline

#8 2021-08-12 11:02:10

amghwk
Member
Registered: 2020-05-23
Posts: 43

Re: [SOLVED] Xfce LightDM Cannot AutoLogin no matter what.

Solved : I created the .dmrc (with the Session=xfce under [Desktop]) file in my home directory.

If I follow the wiki to get the session name from /usr/share/xsessions/xfce.desktop, (which is shown as "Xfce Session"), it doesn't work for auto-login.

The name of the autologin session for xfce, which I replicated from another laptop with Arch, is just "xfce", and not "Xfce Session" or "xfce4".

Offline

Board footer

Powered by FluxBB