Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lightdm logs in twice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6308
Location: /usr/lib64/lv2

PostPosted: Fri Mar 23, 2018 3:50 pm    Post subject: Lightdm logs in twice Reply with quote

I just set up Gentoo on a Lenovo Y520, using nvidia-drivers, xfce4 and lightdm. When I log in after booting up, the screen goes blank for a moment and then lightdm comes back. Logging in the second time works.

When I use slim, it logs me in the first time, but I have to log out then back in again because the xfce applications menu doesn't launch anything unless I log in a second time.

So it looks like lightdm somehow recognizes that something is not quite right and forces the user to log in twice, after which everything works.

I'm curious as to what is going on here.

It's an Optimus laptop, but I'm just stating that in case it's important - I'm not trying to fix Optimus with this post. nvidia-drivers are in use and switched to with eselect opengl, but this happens even if eselect opengl is set to x11.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Fri Mar 23, 2018 9:01 pm    Post subject: Reply with quote

Probably some race condition in xfce's startup sequence. If you log out then run `pstree -u $USER` from a separate console without logging in again, do you see things like dbus still running?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6308
Location: /usr/lib64/lv2

PostPosted: Sun Mar 25, 2018 11:51 am    Post subject: Reply with quote

If I pstree -u $USER as root after logging in the first time, but before the second, I get:
Code:

init-+-ModemManager-+-{gdbus}
     |              `-{gmain}
     |-NetworkManager-+-dhclient
     |                |-{gdbus}
     |                |-{gmain}
     |                `-{pool}
     |-5*[agetty]
     |-bluetoothd
     |-console-kit-dae-+-{console-kit-dae}
     |                 |-{gdbus}
     |                 |-{gmain}
     |                 `-61*[{vt_thread_start}]
     |-dbus-daemon(messagebus)
     |-lightdm-+-X-+-{InputThread}
     |         |   `-3*[{X}]
     |         |-lightdm-+-lightdm-gtk-gre-+-{gdbus}
     |         |         |                 `-{gmain}
     |         |         |-{gdbus}
     |         |         `-{gmain}
     |         |-lightdm
     |         |-{gdbus}
     |         `-{gmain}
     |-login---bash(audiodef)---su(root)---bash---pstree
     |-lvmetad
     |-polkitd(polkitd)-+-{gdbus}
     |                  |-{gmain}
     |                  `-2*[{polkitd}]
     |-udevd
     `-wpa_supplicant

_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6308
Location: /usr/lib64/lv2

PostPosted: Mon Mar 26, 2018 2:43 pm    Post subject: Reply with quote

I'm wondering if this has anything to do with the Optimus configuration of this laptop. Is it logging in once for each video card? I guess I could test this by going into the BIOS and setting "use on-board video only."

EDIT:

Using no DM and startx, there is no issue. Not sure what this means.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum