You are not logged in.

#1 2012-02-10 05:21:01

vwyodajl
Member
Registered: 2012-01-21
Posts: 183

[solved]Question about how Console Kit & Slim/OpenBox is running

I am trying to make sure I have things setup properly and following the wiki for consolekit I am not getting the same results as it states I should on the wiki.
I am running up to date 3.2.5-1x86, openbox, slim. When I run ck-list-sessions I get

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 = '2012-02-10T00:13:08.208086Z'
	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 = '2012-02-10T00:13:07.547182Z'
	login-session-id = '1'

According to the wiki I should getting some kind of output in the following sections

realname = '(null)'
x11-display-device = ''
display-device = ''

wiki shows it should be something like

realname = 'Your Name'
x11-display-device = '/dev/tty2'
display-device = '/dev/tty1'

I am guessing realname is null since I have not put a realname in the system for the user?

Does this mean I have broken ConsoleKit some how while booting into GUI? Could it also be related to the following errors from Slim. Cannot find .Xauthority & slim.auth. Both of the files are there though.

.xinitrc

#!/bin/bash
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
export BROWSER=firefox
# only use setxkbmap in here for user specific
setxkbmap -option terminate:ctrl_alt_bksp
exec ck-launch-session dbus-launch --exit-with-session openbox-session

I only have 30-dbus and 40-libcanberra-gtk-module in xinitrc.d
slim.conf

 Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        ./:/bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h 0
reboot_cmd          /sbin/shutdown -r 0
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
# Original below
#login_cmd           exec /bin/bash -login ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session >~/.xsession-errors 2>&1

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
# sessionstop_cmd	some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            xfce4,icewm,wmaker,blackbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        gusterson

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       mindlock

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

Thanks for any help in understanding this properly and hope I provided enough info and the correct stuff to help.

Last edited by vwyodajl (2012-02-11 01:40:06)

Offline

#2 2012-02-10 12:10:16

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [solved]Question about how Console Kit & Slim/OpenBox is running

I see the same thing with ck-list-sessions.  I don't believe you have a problem there.
https://bbs.archlinux.org/viewtopic.php?id=128649

See if the following is any help.
https://bbs.archlinux.org/viewtopic.php … 6#p1017386

Offline

#3 2012-02-10 20:55:27

vwyodajl
Member
Registered: 2012-01-21
Posts: 183

Re: [solved]Question about how Console Kit & Slim/OpenBox is running

Thanks for the links and suggestions, I actually had followed your info before, due to having shutdown issues. But did not help in my problem, it was actually in the shutdown process for me.

The reason I ask if consolekit is broken is I have seen a couple messages on the bbs that if you dont have those consolekit could have/is broken during boot. I made sure there is only 1 ck-launch in all the different files. And my thinking was since I had to do a workaround to still cleanly shutdown, it could be related to consolekit not starting properly or I messed up its start some how. Maybe I am not thinking properly about the issue, but most posts seem to have that info stated and those that do, do not have shutdown/reboot issues.

Thanks wink

Offline

#4 2012-02-11 01:14:16

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [solved]Question about how Console Kit & Slim/OpenBox is running

Well, I really only know what is on my system.

Maybe the following helps for openbox?
http://forums.gentoo.org/viewtopic-t-858965.html

Offline

#5 2012-02-11 01:39:38

vwyodajl
Member
Registered: 2012-01-21
Posts: 183

Re: [solved]Question about how Console Kit & Slim/OpenBox is running

Thanks a bunch David Batson, adding

 --sh-syntax --exit-with-session

into the .xinitrc got me the desired results, great find! Marking solved.

Offline

#6 2012-02-11 03:56:18

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [solved]Question about how Console Kit & Slim/OpenBox is running

Glad you got it sorted! smile

Offline

Board footer

Powered by FluxBB