ck-list-sessions shows active = false and is-local = false

I have recently installed openSUSE 12.1 i586 minimal X + Slim (Display Manager) + Razor-Qt (Desktop Manager). I created .xinitrc file in my home folder with the following code

exec ck-launch-session dbus-launch startrazor

I managed to login to my new desktop environment via slim without any problem, however I realized that I cannot shutdown, reboot, and/or suspend as a normal user. Thus I started to suspect that it could be console-kit problem. Then I run the following commmands through terminal and I found out that my user ID’s active status is set to False status and it’s not classified as local user.

lenovo@linux-ognx:~> ck-list-sessions
Session1:
        unix-user = '1000'
        realname = 'IBM'
        seat = 'Seat2'
        session-type = ''
        active = FALSE
        x11-display = ':0.0'
        x11-display-device = '/dev/tty7'
        display-device = ''                                             
        remote-host-name = ''                                           
        is-local = FALSE                                                
        on-since = '2011-12-24T20:28:37.479373Z'                        
        login-session-id = '1'                                          
lenovo@linux-ognx:~> console-kit-daemon --debug --no-daemon             
Absolute path to 'console-kit-daemon' is '/usr/sbin/console-kit-daemon', so running it may require superuser privileges (eg. root).

Does anyone know how to fix this problem and change my username status to “active=True” and “is-local=True”? Thanks for help

I managed to find a workaround for this problem, by creating this new file /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla as root

[Restart]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Shutdown]
Identity=unix-group:users
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Hibernate]
Identity=unix-group:users
Action=org.freedesktop.upower.hibernate
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Suspend]
Identity=unix-group:users
Action=org.freedesktop.upower.suspend
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Detach]
Identity=unix-group:users
Action=org.freedesktop.udisks.drive-detach
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Eject]
Identity=unix-group:users
Action=org.freedesktop.udisks.drive-eject
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Spindown]
Identity=unix-group:users
Action=org.freedesktop.udisks.drive-set-spindown
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Mount]
Identity=unix-group:users
Action=org.freedesktop.udisks.filesystem-mount
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Mount-System-Internal]
Identity=unix-group:users
Action=org.freedesktop.udisks.filesystem-mount-system-internal
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Unmount]
Identity=unix-group:users
Action=org.freedesktop.udisks.filesystem-unmount-others
ResultAny=yes
ResultInactive=yes
ResultActive=yes


Now the Shutdown, Reboot, Suspend and Hibernate issue has been resolved :slight_smile: I wish this solution will help others who do a custom installation of openSUSE. Also, I wish there could be a permenant fix to consolekit, thus ck-launch-session can set the normal user with active/local session at boot.