- You removed nox11 parameter from /etc/pam.d/system-login earlier, but forgot to restore it now that the native ConsoleKit support is available
in your display manager?

- When using the native ConsoleKit support (which is either enabled by USE="consolekit" or always enabled in the different display managers)
you should *not* write commands like dbus-launch or ck-launch-session yourself *anywhere* because the display manager does it for you.

- Entries in /etc/fstab *conflict* with sys-fs/udisks. For example, if you want your cdrom to be handled by udisks (and file manager supporting it, like nautilus, pcmanfm or Thunar) you should *remove entries* related to it from /etc/fstab.

Hint: It's also good idea to mask sys-apps/hal in /etc/portage/package.mask to prevent it's installation and to detect remaining cruft when emerging world. To remove them.

Sadly k3b requires hal (not as use flag)_________________"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."

For those using e17, make sure you have USE="udev ukit" when you build e_dbus/enlightenment and it will be automagically enabled._________________There is no substitute for experience.
Imperfection indicates a lack of effort.

CONFIG_USB_SUSPEND=y <- Required for properly shutting down and powering USB hubs, for like, external USB HDD.
CONFIG_IDE=n <- This breaks both udev, and udisks.
CONFIG_AUDITSYSCALL=y <- This is really required, it might work out of fluke with gnome-base/gdm but that's pretty much it.

Just to help with these kernel options (under 2.6.37) you can find them under...

-> General setup
-> Auditing support (AUDIT [=y])
[*] Enable system-call auditing support CONFIG_AUDITSYSCALL=y <- This is really required, it might work out of fluke with gnome-base/gdm but that's pretty much it.

..which I didn't have selected and had me scratching my head for a minute or two (until I actually read the information on dependencies from searching menuconfig with '/' and searching for USB_SUSPEND)_________________"Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth

What if you're not using 'startx' or one of the 'small' login clients?

I'm using gdm, so do I still need to have a custom ~/.xinitrc or make any changes to /etc/pam.d/system-login ?_________________"Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth

Thanks for the quick response and writing this guide ssuominen, very, very useful and much appreciated._________________"Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth

I found this sticky quite useful, even if I instinctively did almost 95% the same before finding it. I'd like to add that users not wanting to deal with gnome or kde or other bloated window managers, or even need automounting just at console level, may use

Code:

sys-fs/udisks-glue-1.2.0

which in its current ebuild unfortunately comes without a config file or a gentoo service script. Well, I uploaded an updated ebuild with initial script and config file at Bug # 351644, you may try that out.

One more comment, in recent kernels,

Code:

CONFIG_USB_SUSPEND

may no longer be available, as the devs apparently changed the power management architecture of the USB subsystem.

Cheers,
Lucian

P.S. @ssuominen: gosh, now after sending the initial reply I realize that you're maintaining udisks-glue

Last edited by zoolook on Fri Jan 14, 2011 12:58 pm; edited 1 time in total

Openbox user here. Thanks for your instructions. I got everything working, but one problem with NetworkManager still persists. Not sure if it's a bug, as it's mentioned all over the place, but it could be related.

Problem is, even following your instructions, ck-list-sessions still gives a single instance, with active = FALSE, which is not supposed to be the case as you'll agree. nm-applet will refuse do do anything as non-root (enable/disable networking or connect to anything). My guess is, that the two are related (as it seems to be a permission-problem). If not, then forgive me for spamming this topic.

Yep. I don't know of other ways of hooking the login (shadow) to consolekit.

Unless you count gnome-base/gdm as an option, it's internal consolekit support should work without pam... but this might change at anytime, it's really supposed to be using the same method others are and maintainers might change it soon.

Problem is, even following your instructions, ck-list-sessions still gives a single instance, with active = FALSE, which is not supposed to be the case as you'll agree. nm-applet will refuse do do anything as non-root (enable/disable networking or connect to anything). My guess is, that the two are related (as it seems to be a permission-problem). If not, then forgive me for spamming this topic.

The whole point of this thread was to get 'active = TRUE' so something's definately wrong in your end.

ck-launch-session startxfce4 does not work for me (no power managment, no mount)
and
ck-launch-session xfce4-session is not enough (I can't mount/umount media by desktop or Thunar,
but can do it in terminal emulator).

Last edited by IgorPashev on Thu Jan 20, 2011 8:52 pm; edited 4 times in total