i'm referring to this bug report: [bug=]http://bugs.gentoo.org/342291[/bug]
i was told that my problem is not related to a bug of consolekit, but rather related to an invalid configuration. therefore i hope that anybody could point me into the right direction.
what i can tell is that everything used to work fine before upgrading to recent versions of relevant packages (please see 2.a).
###
0. the problem
ck-list-sessions returns:
0.a the result:- active = FALSE
- is-local = FALSE
- login-session-id = ''
it's not possible to reboot, shutdown, suspend the system or to automount removeable media (usb).
###
1. my system:
i'm running gentoo as a dedicated htpc system with plain xbmc on top of xorg. there's no de, dm or wm involved.
###
2. my setup:
2.a relevant packages:
already re-emerged those with the --noconfmem parameter.sys-auth/consolekit-0.4.2-r4 || \
sys-auth/consolekit-0.4.3 (USE="kernel_linux pam policykit")
sys-auth/pambase-20101024 (USE="consolekit cracklib minimal || -minimal sha512")
sys-apps/shadow-4.1.4.2-r6 (USE="cracklib nls pam")
sys-apps/dbus-1.4.0 (USE="null")
2.b kernel config
###grep -i CONFIG_AUDIT /usr/src/linux/.config
# CONFIG_AUDIT_ARCH is not set
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y
CONFIG_AUDIT_GENERIC=y
3. login and xorg / xbmc starting procedure
first of all i defined a global session to prevent users to alter or delete a .xinitrc file in their ~/ directory.
3.a cat /etc/env.d/90xsession
Code: Select all
XSESSION="/usr/local/bin/xbmc-gentoo"Code: Select all
#!/bin/bash
/usr/bin/xsetbg -onroot -quiet -fullscreen -display :0
/home/xbmc/Media/Local/Pics/Wallpapers/xbmc_walls.jpg &
/usr/bin/xsetroot -cursor /opt/.modResources/xcursor/emptyCursor.xbm
/opt/.modResources/xcursor/emptyCursor.xbm &
/usr/local/bin/xbmc-wiiremote >/dev/null 2>&1 &
while true; do
DISPLAY=:0.0 /usr/lib/xbmc/xbmc.bin --standalone --nolirc
sleep 1
doneCode: Select all
/usr/local/bin/xbmc-startx >/dev/null 2>&1 &Code: Select all
#!/bin/bash
USER="xbmc"
SHELL="/bin/bash"
CMD_SU="/bin/su"
ARGS_SU="$USER -s $SHELL -c -l"
CMD_X="/usr/bin/startx"
ARGS_X="vt7 -nolisten tcp -novtswitch +bs -nocursor -br -deferglyphs all -quiet
-allowMouseOpenFail"
while true; do
$CMD_SU - $ARGS_SU "$CMD_X -- $ARGS_X"
done4.a fresh boot
Code: Select all
ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2010-12-07T18:52:47.915017Z'
login-session-id = ''
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2010-12-07T18:52:49.896551Z'
login-session-id = ''
Session3:
unix-user = '1000'
realname = '(null)'
seat = 'Seat4'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/ssh'
remote-host-name = 'buckaroo.ghostshell'
is-local = FALSE
on-since = '2010-12-07T18:53:11.844999Z'
login-session-id = '1'=> login-session-id gets only assigned to the remote ssh session
4.b /etc/init.d/local restart
Code: Select all
ck-list-sessions
Session4:
unix-user = '1000'
realname = '(null)'
seat = 'Seat5'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2010-12-07T18:54:56.887529Z'
login-session-id = '1'
Session5:
unix-user = '1000'
realname = '(null)'
seat = 'Seat6'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2010-12-07T18:54:58.115872Z'
login-session-id = '1'
Session3:
unix-user = '1000'
realname = '(null)'
seat = 'Seat4'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/ssh'
remote-host-name = 'buckaroo.ghostshell'
is-local = FALSE
on-since = '2010-12-07T18:53:11.844999Z'
login-session-id = '1'=> login-session-id gets assigned
###
even if i execute startx manually i won't get active/is-local = true
this does also apply when i manually execute ck-launch-session:
Code: Select all
Session7:
unix-user = '1000'
realname = '(null)'
seat = 'Seat8'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/pts/0'
remote-host-name = ''
is-local = FALSE
on-since = '2011-01-02T15:40:40.608361Z'
login-session-id = '3'###
according to the bug report something is screwed up in my login/autostart procedure.
what's your proposal to solve this issue and is there a better practice to autologin users and to autostart a session?
thanks in advance && regards,
hal2050

