Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Session does not register in ConsoleKit
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
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Mon Jul 02, 2012 4:44 am    Post subject: Session does not register in ConsoleKit Reply with quote

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:
% 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.
Back to top
View user's profile Send private message
Randy Andy
Veteran
Veteran


Joined: 19 Jun 2007
Posts: 1136
Location: /dev/koelsch

PostPosted: Mon Jul 02, 2012 5:55 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Mon Jul 02, 2012 6:30 am    Post subject: Reply with quote

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:
% 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.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Mon Jul 02, 2012 7:51 am    Post subject: Reply with quote

Why do you have ConsoleKit installed when Systemd's logind replaces it's functionality?
Back to top
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Mon Jul 02, 2012 8:12 am    Post subject: Reply with quote

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:
% 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.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Mon Jul 02, 2012 8:25 am    Post subject: Reply with quote

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:
% 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:

-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.
Back to top
View user's profile Send private message
Uzytkownik
Guru
Guru


Joined: 31 Oct 2004
Posts: 399
Location: Bay Area, US

PostPosted: Mon Jul 02, 2012 8:29 am    Post subject: Reply with quote

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:
% 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:

-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.
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