Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Session does not register in ConsoleKit

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Uzytkownik
Guru
Guru
Posts: 399
Joined: Sun Oct 31, 2004 8:08 pm
Location: Bay Area, US
Contact:
Contact Uzytkownik
Website

Session does not register in ConsoleKit

  • Quote

Post by Uzytkownik » Mon Jul 02, 2012 4:44 am

I use gnome 3.4 on otherwise ~amd64 system. I've reinstalled gentoo onto another machine and it looks like consolekit is not working.

Code: Select all

% dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.GetSeats  
method return sender=:1.11 -> dest=:1.83 reply_serial=2
   array [
      object path "/org/freedesktop/ConsoleKit/Seat1"
   ]

% dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.GetSessions
method return sender=:1.11 -> dest=:1.85 reply_serial=2
   array [
   ]
% pgrep -u$UID gnome-session
2801
I have consolekit flag enabled. Any idea what I've misconfigured?
I've probably left my head... somwhere. Please wait untill I find it.
Top
Randy Andy
Veteran
Veteran
User avatar
Posts: 1152
Joined: Tue Jun 19, 2007 7:39 pm
Location: /dev/koelsch

  • Quote

Post by Randy Andy » Mon Jul 02, 2012 5:55 am

Hi Uzytkownik.

AFAIK consolekit has to be started with your default runlevel, so add it, if its not in.
If you want to see a Distro done right, compile it yourself!
Top
Uzytkownik
Guru
Guru
Posts: 399
Joined: Sun Oct 31, 2004 8:08 pm
Location: Bay Area, US
Contact:
Contact Uzytkownik
Website

  • Quote

Post by Uzytkownik » Mon Jul 02, 2012 6:30 am

Randy Andy wrote:Hi Uzytkownik.

AFAIK consolekit has to be started with your default runlevel, so add it, if its not in.
I use systemd so it was autostarted if anyone tried to communicate with it. In any case enabling it did not helped:

Code: Select all

% systemctl status console-kit-daemon.service
console-kit-daemon.service - Console Manager
	  Loaded: loaded (/usr/lib64/systemd/system/console-kit-daemon.service; enabled)
	  Active: active (running) since Sun, 01 Jul 2012 23:16:20 -0700; 13min ago
	Main PID: 2521 (console-kit-dae)
	  CGroup: name=systemd:/system/console-kit-daemon.service
		  └ 2521 /usr/sbin/console-kit-daemon --no-daemon
% dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.GetSessions
method return sender=:1.3 -> dest=:1.65 reply_serial=2
   array [
   ]
I've probably left my head... somwhere. Please wait untill I find it.
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Mon Jul 02, 2012 7:51 am

Why do you have ConsoleKit installed when Systemd's logind replaces it's functionality?
Top
Uzytkownik
Guru
Guru
Posts: 399
Joined: Sun Oct 31, 2004 8:08 pm
Location: Bay Area, US
Contact:
Contact Uzytkownik
Website

  • Quote

Post by Uzytkownik » Mon Jul 02, 2012 8:12 am

ssuominen wrote:Why do you have ConsoleKit installed when Systemd's logind replaces it's functionality?
It was in profile and I wasn't sure if everything was ported.

Anyway the sessions in logind are not registered anyway (I've checked before posting):

Code: Select all

% systemd-loginctl list-seats | cat
seat0
% systemd-loginctl list-sessions | wc -l
0
I've probably left my head... somwhere. Please wait untill I find it.
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Mon Jul 02, 2012 8:25 am

Uzytkownik wrote:
ssuominen wrote:Why do you have ConsoleKit installed when Systemd's logind replaces it's functionality?
It was in profile and I wasn't sure if everything was ported.

Anyway the sessions in logind are not registered anyway (I've checked before posting):

Code: Select all

% systemd-loginctl list-seats | cat
seat0
% systemd-loginctl list-sessions | wc -l
0
I don't use systemd but I know you need at least >=sys-auth/pambase-20120417-r1 and >=sys-auth/polkit-0.106-r6 with USE="systemd" enabled

Then you need to use Display Manager that's properly using the pambase's system-local-login, I know at least latest x11-misc/lightdm does and by logging into text based console (tty1 for example) will work too (+ startx)

Or alternatively you have to edit /etc/pam.d/ file for your Display Manager and insert the line:

Code: Select all

-session	optional	pam_systemd.so
What I'm trying to say is that you need to login in a way that pam_systemd.so gets used, and that only part of the Display Managers currently in tree use pambase correctly.
Top
Uzytkownik
Guru
Guru
Posts: 399
Joined: Sun Oct 31, 2004 8:08 pm
Location: Bay Area, US
Contact:
Contact Uzytkownik
Website

  • Quote

Post by Uzytkownik » Mon Jul 02, 2012 8:29 am

ssuominen wrote:
Uzytkownik wrote:
ssuominen wrote:Why do you have ConsoleKit installed when Systemd's logind replaces it's functionality?
It was in profile and I wasn't sure if everything was ported.

Anyway the sessions in logind are not registered anyway (I've checked before posting):

Code: Select all

% systemd-loginctl list-seats | cat
seat0
% systemd-loginctl list-sessions | wc -l
0
I don't use systemd but I know you need at least >=sys-auth/pambase-20120417-r1 and >=sys-auth/polkit-0.106-r6 with USE="systemd" enabled

Then you need to use Display Manager that's properly using the pambase's system-local-login, I know at least latest x11-misc/lightdm does and by logging into text based console (tty1 for example) will work too (+ startx)

Or alternatively you have to edit /etc/pam.d/ file for your Display Manager and insert the line:

Code: Select all

-session	optional	pam_systemd.so
What I'm trying to say is that you need to login in a way that pam_systemd.so gets used, and that only part of the Display Managers currently in tree use pambase correctly.
That was it. Thanks.
I've probably left my head... somwhere. Please wait untill I find it.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy