View previous topic :: View next topic |
Author |
Message |
DZoom Tux's lil' helper
Joined: 13 Jun 2010 Posts: 79
|
Posted: Sat Oct 22, 2011 10:27 am Post subject: no active consolekit session |
|
|
Hi,
i'm trying to find out why automounting of devices in my system (slim, fluxbox, thunar or pcmanfm) doesn't work.
after following several guides that all lead to (different) dead ends i'm trying to solve the problem not as a whole but piece by piece.
1. piece:
i don't have an active consolekit session.
ck-list-session printout:
Code: |
dzm@hal ~ $ ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-10-22T10:15:50.407088Z'
login-session-id = ''
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2011-10-22T10:15:50.439213Z'
login-session-id = '' |
i use fluxbox and a graphical login manager (SLiM).
installed (relevant) software:
- SLiM
- fluxbox
- thunar
- consolekit (loaded in default runlevel)
- polkit
- udev (loaded in sysinit runlevel)
- dbus (loaded in default runlevel)
- polkit-gnome
global useflags are set as described https://forums.gentoo.org/viewtopic-t-858965.html plus did i add "-hal" in /etc/make.conf.
slim.conf login command:
Code: |
login_cmd exec /usr/bin/ck-launch-session /usr/bin/dbus-launch /bin/bash -login ~/.xinitrc |
.xinitrc for my user:
Code: |
thunar --daemon &
conky &
# polkit agent
/usr/libexec/polkit-gnome-authentication-agent-1 &
# finally: start fluxbox
exec startfluxbox |
----------------------------------------
*EDIT*
just realized the same phenomenon (missing active consolekit session) on my macbook, which has essentially the same configuration and software installed. and followingly suffers the same issues...
but on the macbook the configuration given here definitely worked - up to the last world update which broke it |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1902 Location: 127.0.0.1
|
Posted: Sat Oct 22, 2011 10:52 am Post subject: Re: no active consolekit session |
|
|
DZoom wrote: |
slim.conf login command:
Code: |
login_cmd exec /usr/bin/ck-launch-session /usr/bin/dbus-launch /bin/bash -login ~/.xinitrc |
|
With latest slim (1.3.2-r6) you must remove the /usr/bin/ck-launch-session call. See here. |
|
Back to top |
|
|
DZoom Tux's lil' helper
Joined: 13 Jun 2010 Posts: 79
|
Posted: Sat Oct 22, 2011 2:07 pm Post subject: Re: no active consolekit session |
|
|
netfab wrote: | DZoom wrote: |
slim.conf login command:
Code: |
login_cmd exec /usr/bin/ck-launch-session /usr/bin/dbus-launch /bin/bash -login ~/.xinitrc |
|
With latest slim (1.3.2-r6) you must remove the /usr/bin/ck-launch-session call. See here. |
i modified the line to:
Code: |
login_cmd exec /usr/bin/dbus-launch /bin/bash -login ~/.xinitrc |
ck-list-sessions prints out only one session; but it's neither active nor does it have a login-session-id:
Code: |
dzm@hal ~ $ ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-10-22T14:11:02.776036Z'
login-session-id = '' |
|
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1902 Location: 127.0.0.1
|
Posted: Sun Oct 23, 2011 7:48 am Post subject: |
|
|
Did you check if you have the required kernel configuration ?
Please post the output of :
Code: |
$ zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
|
|
|
Back to top |
|
|
DZoom Tux's lil' helper
Joined: 13 Jun 2010 Posts: 79
|
Posted: Sun Oct 23, 2011 10:05 am Post subject: |
|
|
netfab wrote: | Did you check if you have the required kernel configuration ?
Please post the output of :
Code: |
$ zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
|
|
Code: |
hal dzm # zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
# CONFIG_PM_RUNTIME is not set |
i'm recompiling my kernel right now with CONFIG_PM_RUNTIME=y
the other two options seem to be missing in the 3.06 kernel?
i'll let you know what difference the recompiled kernel does make |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1902 Location: 127.0.0.1
|
Posted: Sun Oct 23, 2011 10:25 am Post subject: |
|
|
DZoom wrote: |
the other two options seem to be missing in the 3.06 kernel?
|
Search them, they are there. |
|
Back to top |
|
|
GES Tux's lil' helper
Joined: 12 Jun 2005 Posts: 108 Location: Budapest, Hungary
|
Posted: Sun Oct 23, 2011 10:50 am Post subject: |
|
|
Code: | # uname -r
3.0.6-gentoo
# zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
CONFIG_AUDITSYSCALL=y
menuconfig entry here:
General setup --->
[*] Auditing support
[*] Enable system-call auditing support
CONFIG_PM_RUNTIME=y
CONFIG_USB_SUSPEND=y
menuconfig entry here:
Device Drivers --->
[*] USB support --->
{*} Support for Host-side USB
[*] USB runtime power management (autosuspend) and wakeup
# ck-list-sessions
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-10-23T07:08:33.012061Z'
login-session-id = '1'
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-10-23T07:08:32.669178Z'
login-session-id = '1'
|
Good works. |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Sun Oct 23, 2011 11:01 am Post subject: |
|
|
https://forums.gentoo.org/viewtopic-t-858965.html says:
login-session-id = '1' <- If this is empty, you propably missed the CONFIG_AUDITSYSCALL=y option in kernel.
This is a duplicate thread of that sticky ... |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Oct 23, 2011 11:48 am Post subject: |
|
|
Moved from Desktop Environments to Duplicate Threads.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|