Jump to content
funtoo forums
  • 0
maratbn

Unable to start xfce4 session from lightdm

Question

So I have 'x11-misc/lightdm' version 1.24.0 installed, and configured to start automatically, which it does.  Before logging in, I click on the configuration icon in the upper right, and change 'Xsession' to 'Xfce Session', but when I do login, I still get the Xsession.

Here are my lightdm log files when I login if this is helpful:

[+514.61s] DEBUG: Continue authentication

==> /var/log/lightdm/seat0-greeter.log <==

(lightdm-gtk-greeter:3173): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

(lightdm-gtk-greeter:3173): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

==> /var/log/lightdm/lightdm.log <==
[+514.63s] DEBUG: Session pid=3402: Authentication complete with return value 0: Success
[+514.63s] DEBUG: Authenticate result for user marat: Success
[+514.63s] DEBUG: User marat authorized
[+514.64s] DEBUG: Greeter requests session Xsession
[+514.64s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+514.64s] DEBUG: Session pid=3163: Sending SIGTERM

==> /var/log/lightdm/seat0-greeter.log <==

** (lightdm-gtk-greeter:3173): WARNING **: [PIDs] Failed to terminate process #3192: No such process

==> /var/log/lightdm/lightdm.log <==
[+514.65s] DEBUG: Greeter closed communication channel
[+514.65s] DEBUG: Session pid=3163: Exited with return value 0
[+514.65s] DEBUG: Seat seat0: Session stopped
[+514.65s] DEBUG: Seat seat0: Greeter stopped, running session
[+514.65s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+514.65s] CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[+514.65s] DEBUG: Session pid=3402: Running command /etc/lightdm/Xsession /etc/X11/Sessions/Xsession
[+514.65s] DEBUG: Creating shared data directory /var/lib/lightdm-data/marat
[+514.65s] DEBUG: Session pid=3402: Logging to .xsession-errors
[+514.66s] DEBUG: Activating VT 7
[+514.66s] DEBUG: Activating ConsoleKit session fonkeya1-1510213553.370792-1703162414
[+514.66s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Session.Error.AlreadyActive: Session already active

Please advise...

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 11/9/2017 at 7:22 AM, Oleg Vinichenko said:

it looks it trying to start consolekit, while it already started.

please, when you are not in X (and better after reboot) paste output of ls -l /etc/runlevels/*/*

Sure, the output is:

lrwxrwxrwx 1 root root 18 Oct  7 23:01 /etc/runlevels/boot/binfmt -> /etc/init.d/binfmt
lrwxrwxrwx 1 root root 20 Oct  7 23:01 /etc/runlevels/boot/bootmisc -> /etc/init.d/bootmisc
lrwxrwxrwx 1 root root 16 Oct  7 23:01 /etc/runlevels/boot/fsck -> /etc/init.d/fsck
lrwxrwxrwx 1 root root 20 Oct  7 23:01 /etc/runlevels/boot/hostname -> /etc/init.d/hostname
lrwxrwxrwx 1 root root 19 Oct  7 23:01 /etc/runlevels/boot/hwclock -> /etc/init.d/hwclock
lrwxrwxrwx 1 root root 19 Oct  7 23:01 /etc/runlevels/boot/keymaps -> /etc/init.d/keymaps
lrwxrwxrwx 1 root root 22 Oct  7 23:01 /etc/runlevels/boot/localmount -> /etc/init.d/localmount
lrwxrwxrwx 1 root root 20 Oct  7 23:01 /etc/runlevels/boot/loopback -> /etc/init.d/loopback
lrwxrwxrwx 1 root root 19 Oct  7 23:01 /etc/runlevels/boot/modules -> /etc/init.d/modules
lrwxrwxrwx 1 root root 16 Oct  7 23:01 /etc/runlevels/boot/mtab -> /etc/init.d/mtab
lrwxrwxrwx 1 root root 18 Oct  7 23:01 /etc/runlevels/boot/procfs -> /etc/init.d/procfs
lrwxrwxrwx 1 root root 16 Oct  7 23:01 /etc/runlevels/boot/root -> /etc/init.d/root
lrwxrwxrwx 1 root root 16 Oct  7 23:01 /etc/runlevels/boot/swap -> /etc/init.d/swap
lrwxrwxrwx 1 root root 18 Oct  7 23:01 /etc/runlevels/boot/sysctl -> /etc/init.d/sysctl
lrwxrwxrwx 1 root root 24 Oct  7 23:01 /etc/runlevels/boot/termencoding -> /etc/init.d/termencoding
lrwxrwxrwx 1 root root 19 Oct  7 23:01 /etc/runlevels/boot/urandom -> /etc/init.d/urandom
lrwxrwxrwx 1 root root 26 Oct 21 11:53 /etc/runlevels/default/NetworkManager -> /etc/init.d/NetworkManager
lrwxrwxrwx 1 root root 16 Nov  1 23:36 /etc/runlevels/default/dbus -> /etc/init.d/dbus
lrwxrwxrwx 1 root root 17 Oct  7 23:01 /etc/runlevels/default/local -> /etc/init.d/local
lrwxrwxrwx 1 root root 20 Oct  7 23:01 /etc/runlevels/default/netmount -> /etc/init.d/netmount
lrwxrwxrwx 1 root root 16 Oct  7 23:16 /etc/runlevels/default/sshd -> /etc/init.d/sshd
lrwxrwxrwx 1 root root 15 Nov  1 23:25 /etc/runlevels/default/xdm -> /etc/init.d/xdm
lrwxrwxrwx 1 root root 21 Oct  7 23:01 /etc/runlevels/shutdown/killprocs -> /etc/init.d/killprocs
lrwxrwxrwx 1 root root 20 Oct  7 23:01 /etc/runlevels/shutdown/mount-ro -> /etc/init.d/mount-ro
lrwxrwxrwx 1 root root 21 Oct  7 23:01 /etc/runlevels/shutdown/savecache -> /etc/init.d/savecache
lrwxrwxrwx 1 root root 17 Oct  7 23:01 /etc/runlevels/sysinit/devfs -> /etc/init.d/devfs
lrwxrwxrwx 1 root root 17 Oct  7 23:01 /etc/runlevels/sysinit/dmesg -> /etc/init.d/dmesg
lrwxrwxrwx 1 root root 29 Oct  7 23:12 /etc/runlevels/sysinit/kmod-static-nodes -> /etc/init.d/kmod-static-nodes
lrwxrwxrwx 1 root root 17 Oct  7 23:01 /etc/runlevels/sysinit/sysfs -> /etc/init.d/sysfs
lrwxrwxrwx 1 root root 16 Oct  7 23:15 /etc/runlevels/sysinit/udev -> /etc/init.d/udev

Also, here's the output of 'ps -ef | grep console':

root      2953     1  0 18:41 ?        00:00:00 /usr/sbin/console-kit-daemon --no-daemon
root      3143  3134  0 18:43 pts/0    00:00:00 grep --colour=auto console

So then what I did was I killed 'console-kit-daemon', and selected "Xfce Session" again, and this time it did log me into Xfce.  However, looking at the lightdm logs, it still complained about starting a ConsoleKit session:

==> /var/log/lightdm/lightdm.log <==
[+307.61s] DEBUG: Continue authentication
[+307.62s] DEBUG: Session pid=3151: Authentication complete with return value 0: Success
[+307.62s] DEBUG: Authenticate result for user marat: Success
[+307.62s] DEBUG: User marat authorized

==> /var/log/lightdm/seat0-greeter.log <==

(lightdm-gtk-greeter:2967): Gtk-WARNING **: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

==> /var/log/lightdm/lightdm.log <==
[+307.63s] DEBUG: Greeter requests session xfce
[+307.63s] CRITICAL: g_dbus_connection_call_sync_internal: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
[+307.63s] DEBUG: Writing /home/marat/.dmrc
[+307.64s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+307.64s] DEBUG: Session pid=2949: Sending SIGTERM

==> /var/log/lightdm/seat0-greeter.log <==

** (lightdm-gtk-greeter:2967): WARNING **: [PIDs] Failed to terminate process #2986: No such process

** (process:2949): WARNING **: Error ending ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Manager.Error.Failed: Unable to find session for cookie

==> /var/log/lightdm/lightdm.log <==
[+307.66s] DEBUG: Greeter closed communication channel
[+307.66s] DEBUG: Session pid=2949: Exited with return value 0
[+307.66s] DEBUG: Seat seat0: Session stopped
[+307.66s] DEBUG: Seat seat0: Greeter stopped, running session
[+307.66s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+307.66s] CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[+307.66s] DEBUG: Session pid=3151: Running command /etc/lightdm/Xsession startxfce4
[+307.66s] DEBUG: Creating shared data directory /var/lib/lightdm-data/marat
[+307.66s] DEBUG: Session pid=3151: Logging to .xsession-errors
[+307.67s] DEBUG: Activating VT 7
[+307.67s] DEBUG: Activating ConsoleKit session fonkeya1-1510368421.397318-1555246975
[+307.67s] WARNING: Error activating ConsoleKit session: GDBus.Error:org.freedesktop.ConsoleKit.Session.Error.AlreadyActive: Session already active
[+401.42s] DEBUG: Session pid=3151: Exited with return value 0
[+401.42s] DEBUG: Seat seat0: Session stopped
[+401.42s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+401.42s] DEBUG: Sending signal 15 to process 2909

So manually killing the 'console-kit-daemon' did let me log into Xfce.  But what is it that's triggering it to start?  It does not appear to be included in the 'boot' and 'default' runlevels.

-- Marat

Share this post


Link to post
Share on other sites
  • 0

no consolekit in boot and default runlevels does not necessarily mean this service is not started by some other services. There are service dependencies capabilities in openrc which could make the service start other service even if it's not explicitly enabled. But i think xdm, which is in your default level could be a problematic one.

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×