You are not logged in.

#1 2011-08-24 14:39:48

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

[SOLVED] Consolekit doesn't register an active/local session

I recently had a huge ordeal where all of my /etc was deleted. I reinstalled everything and reconfigured my stuff and almost everything is fine.

But when I log into my computer and run ck-list-sessions, this is the output:

[rob ~ ]$  ck-list-sessions 
Session2:
	unix-user = '1000'
	realname = 'Rob Agnese'
	seat = 'Seat3'
	session-type = ''
	active = FALSE
	x11-display = ':0'
	x11-display-device = '/dev/tty2'
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = FALSE
	on-since = '2011-08-24T13:53:41.441696Z'
	login-session-id = '4294967295'

This prevents me from rebooting properly and xfce4-power-manager suspending, etc.

SOLUTION: I was using fgetty to log in. Use agetty (the Arch default).

Last edited by pogeymanz (2011-08-24 21:21:10)

Offline

#2 2011-08-24 14:44:21

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Consolekit doesn't register an active/local session

how do you login into xfce?


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-08-24 14:52:16

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: [SOLVED] Consolekit doesn't register an active/local session

Actually, I'm using openbox-session, but my .xinitrc file is as such:

xmodmap .Xmodmap &
numlockx &

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session

EDIT: And I use startx, no DM.

Last edited by pogeymanz (2011-08-24 14:53:59)

Offline

#4 2011-08-24 14:53:52

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Consolekit doesn't register an active/local session

is active/is-local TRUE before you run startx?

those are the only lines from ~/.xinitrc?

do you auto login into your graphical session using some hack in /etc/inittab ?

do you use slim?

Last edited by wonder (2011-08-24 14:54:38)


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-08-24 14:54:55

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: [SOLVED] Consolekit doesn't register an active/local session

Before I run startx, ck-list-sessions doesn't return anything...

And yes, that is my whole .xinitrc

Offline

#6 2011-08-24 14:57:26

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Consolekit doesn't register an active/local session

paste /etc/pam.d/login


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2011-08-24 14:58:26

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: [SOLVED] Consolekit doesn't register an active/local session

[rob ~ ]$  cat /etc/pam.d/login 
#%PAM-1.0
auth		required	pam_securetty.so
auth		requisite	pam_nologin.so
auth		required	pam_unix.so nullok
auth		required	pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth		required	pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account		required	pam_access.so
account		required	pam_time.so
account		required	pam_unix.so
#password	required	pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password	required	pam_unix.so md5 shadow use_authtok
session		required	pam_unix.so
session		required	pam_env.so
session		required	pam_motd.so
session		required	pam_limits.so
session		optional	pam_mail.so dir=/var/spool/mail standard
session		optional	pam_lastlog.so
session		optional	pam_loginuid.so
-session	optional	pam_ck_connector.so nox11

Offline

#8 2011-08-24 21:20:32

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: [SOLVED] Consolekit doesn't register an active/local session

Well, I figured it out. I have been using fgetty instead of agetty. Apparently, that was the problem. Back to agetty for me. Too bad, because fgetty came up much quicker.

Offline

#9 2011-08-24 21:56:13

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] Consolekit doesn't register an active/local session

Mingetty should work as well with console-kit btw.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB