Xfce 4, SLiM and ConsoleKit

I’ve previously been unable to mount disks, manage power and network devices when using a login-manager. For a while I’ve just been using an xinitrc file and good old startx.

Set-up: Lenovo R400 running on Funtoo (Gentoo) linux (Unstable), kernel: 3.0.3-gentoo.

Here’s my fix for this problem. Make sure you have a fully updated system.

Replace config files:

Do this by re-emerging packages:

emerge -av1 --noconfmem consolekit pambase shadow sys-fs/udisks sys-power/upower xfce-base/xfce4-session x11-apps/xdm x11-misc/slim sys-auth/polkit gnome-extra/polkit-gnome udev xfce-base/xfdesktop gnome-base/gnome-keyring gnome-base/libgnome-keyring gnome-base/gvfs

Then running etc-update and update all files (-5).

XDM Setup:

Remove any ~/.xinitrc files.

Use (ex) /etc/env.d/90session and insert this to set Xfce as default WM:


Update PAM configuration:

In /etc/pam.d/system-login. Change:

session                optional        pam_ck_connector.so nox11


session                optional        pam_ck_connector.so

Fix runtime services:

I had to do this to make everything work, even though I did it while installing:

rc-update add consolekit default
rc-update add dbus default

Then add XDM to services:

rc-update add xdm default


This worked for me!


XFCE4 Consolekit-DBus-HAL-Polkit-UDisk Woes! [SOLVED]

Tips, and tricks for ConsoleKit/PolicyKit/udev, without hal

About this entry