You are not logged in.

#1 2012-05-15 19:42:17

dragonn
Member
Registered: 2012-05-04
Posts: 65

Systemd and console-kit - "active = FALSE" how to fix it?

After an upgrade I have a small problem witch console-kit:

└─[21:24 wto,15 maj 12:$]→ ck-list-sessions 
Session1:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0'
	x11-display-device = '/dev/tty2'
	display-device = ''
	remote-host-name = ''
	is-local = FALSE
	on-since = '2012-05-15T19:17:31.558072Z'
	login-session-id = '4294967295'

I am using systemd and start the X server witch a deamon in it:

└─[21:36 wto,15 maj 12:$]→ cat /lib/systemd/system/xinit.service 
[Unit]
Description=Direct login to X
Requires=dev-tty7.device
After=dev-tty7.device systemd-user-sessions.service

[Service]
ExecStart=/bin/su dragonn -l -c "/bin/bash --login -c startx"

[Install]
WantedBy=graphical.target

My .xinitrc looks:

└─[21:41 wto,15 maj 12:$]→ cat .xinitrc 
#!/bin/sh
exec ck-launch-session dbus-launch wm-manager

Why is my console kit session "active = FALSE"?

Offline

#2 2012-05-15 19:58:54

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: Systemd and console-kit - "active = FALSE" how to fix it?

this cannot work with systemd. There was a discussion about this in the systemd thread: https://bbs.archlinux.org/viewtopic.php … 4#p1096774
The problem is that by starting X with a service file you are not properly creating a PAM session. Until systemd supports this kind of setup you will have to use a display manager. I suggest using lxdm with autologin, works fine for me. A lxdm service file is available in systemd-arch-units.

I think this should be removed this from the wiki, no point to suggest something like this if it doesn't work properly.

Offline

#3 2012-05-15 20:23:46

dragonn
Member
Registered: 2012-05-04
Posts: 65

Re: Systemd and console-kit - "active = FALSE" how to fix it?

Thanks for info, is there any way to fix it without using a login manager? I really don't need it - it will only slow down the boot process.

Offline

#4 2012-05-15 20:40:26

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: Systemd and console-kit - "active = FALSE" how to fix it?

dragonn wrote:

Thanks for info, is there any way to fix it without using a login manager? I really don't need it - it will only slow down the boot process.

Not yet, but it seems to be the planned:
http://freedesktop.org/wiki/Software/sy … imizations (point 10 in the second list)
see also http://lists.freedesktop.org/archives/s … 04974.html

btw. I added a note about this in the wiki. I didn't want to remove it because there are a few people who don't use ConsoleKit anyway and won't care about this problem.

Offline

#5 2012-05-16 18:30:35

dragonn
Member
Registered: 2012-05-04
Posts: 65

Re: Systemd and console-kit - "active = FALSE" how to fix it?

Ok, thanks for info, can you tell my watch is the lightest login manager? Watch will by faster - slim or lxdm?

Offline

#6 2012-05-16 18:49:51

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: Systemd and console-kit - "active = FALSE" how to fix it?

dragonn wrote:

Ok, thanks for info, can you tell my watch is the lightest login manager? Watch will by faster - slim or lxdm?

I don't think there is a big difference, especially if you use autologin, they are both pretty lightweight. Although I don't know if slim works with systemd, I assume it does but I haven't tested it.

Offline

#7 2012-05-17 06:01:09

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: Systemd and console-kit - "active = FALSE" how to fix it?

slim works fine with systemd. at least the newest version.  But here's a guy that got autologin.c and systemd work without any login manager; https://bbs.archlinux.org/viewtopic.php?id=120228
I might test it this week end.

Offline

Board footer

Powered by FluxBB