Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ck-list-sessions always states false (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 2:43 am    Post subject: ck-list-sessions always states false (solved) Reply with quote

For automounting of usb, sd cards, etc. I was told I would need consolekit, dbus, and gvfs. I have dbus and consolekit in my default runlevel. My wm is i3 and my file manager is thunar.
~/.xinitrc
Code:
#!/bin/sh

# /etc/X11/xinit/xinitrc
#
# global xinitrc file, used by all X sessions started by xinit (startx)

# invoke global X session script
#exec xfce4-power-manager &
exec ck-launch-session i3
#input startx

ck-list-sessions always lists it as false but rc-status shows it as running
Code:
Runlevel: default
 sysklogd                                                   [  started  ]
 acpid                                                      [  started  ]
 dbus                                                       [  started  ]
 consolekit                                                 [  started  ]
 cronie                                                     [  started  ]
 net.wlp2s0                                                 [  stopped  ]
 NetworkManager                                             [  started  ]
 cups-browsed                                               [  started  ]
 gpm                                                        [  started  ]
 netmount                                                   [  stopped  ]
 sshd                                                       [  started  ]
 local                                                      [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 cupsd                                                      [  started  ]
Dynamic Runlevel: manual


Last edited by MarioMaster100 on Thu Jul 31, 2014 7:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Jul 31, 2014 10:59 am    Post subject: Reply with quote

Seen first post of this thread yet? https://forums.gentoo.org/viewtopic-t-858965-start-0.html

The first thing that looks wrong is the lack of dbus-launch in your .xinitrc since there is nothing in i3 that would start it, so, it should look something like this instead:

Code:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 3:31 pm    Post subject: Reply with quote

ssuominen wrote:
Seen first post of this thread yet? https://forums.gentoo.org/viewtopic-t-858965-start-0.html

The first thing that looks wrong is the lack of dbus-launch in your .xinitrc since there is nothing in i3 that would start it, so, it should look something like this instead:

Code:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3

No I haven't seen that thread before. I suppose I should follow their advice and change my .xinitrc line?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Jul 31, 2014 3:33 pm    Post subject: Reply with quote

MarioMaster100 wrote:
ssuominen wrote:
Seen first post of this thread yet? https://forums.gentoo.org/viewtopic-t-858965-start-0.html

The first thing that looks wrong is the lack of dbus-launch in your .xinitrc since there is nothing in i3 that would start it, so, it should look something like this instead:

Code:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3

No I haven't seen that thread before. I suppose I should follow their advice and change my .xinitrc line?


Yes, follow the first post of that thread step by step. And if it's still not working, please post complete `ck-list-sessions` outputs here, from console as a normal user, before you startx, and from X11 terminal as normal user after running X
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 7:30 pm    Post subject: Reply with quote

ssuominen wrote:
MarioMaster100 wrote:
ssuominen wrote:
Seen first post of this thread yet? https://forums.gentoo.org/viewtopic-t-858965-start-0.html

The first thing that looks wrong is the lack of dbus-launch in your .xinitrc since there is nothing in i3 that would start it, so, it should look something like this instead:

Code:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3

No I haven't seen that thread before. I suppose I should follow their advice and change my .xinitrc line?


Yes, follow the first post of that thread step by step. And if it's still not working, please post complete `ck-list-sessions` outputs here, from console as a normal user, before you startx, and from X11 terminal as normal user after running X

Well now I have 2 of them when I got everything set and restarted X
Code:
~$ ck-list-sessions
Session3:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2014-07-31T19:23:40.663779Z'
   login-session-id = '1'
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2014-07-31T15:22:13.472460Z'
   login-session-id = '1'
   idle-since-hint = '2014-07-31T19:24:09.244692Z'
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Jul 31, 2014 7:38 pm    Post subject: Reply with quote

MarioMaster100 wrote:
ssuominen wrote:
MarioMaster100 wrote:
ssuominen wrote:
Seen first post of this thread yet? https://forums.gentoo.org/viewtopic-t-858965-start-0.html

The first thing that looks wrong is the lack of dbus-launch in your .xinitrc since there is nothing in i3 that would start it, so, it should look something like this instead:

Code:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3

No I haven't seen that thread before. I suppose I should follow their advice and change my .xinitrc line?


Yes, follow the first post of that thread step by step. And if it's still not working, please post complete `ck-list-sessions` outputs here, from console as a normal user, before you startx, and from X11 terminal as normal user after running X

Well now I have 2 of them when I got everything set and restarted X
Code:
~$ ck-list-sessions
Session3:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2014-07-31T19:23:40.663779Z'
   login-session-id = '1'
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2014-07-31T15:22:13.472460Z'
   login-session-id = '1'
   idle-since-hint = '2014-07-31T19:24:09.244692Z'


Yes, the one showing as "active = FALSE" and empty "x11-display-device = ''" is coming from when you login to the text console, it's initialized by the pam_ck_connector.so module:

Code:

$ qfile -b pam_ck_connector.so
sys-auth/consolekit (/lib64/security/pam_ck_connector.so)
$ grep pam_ck_connector.so /etc/pam.d/system-login
/etc/pam.d/system-login:session      optional   pam_ck_connector.so nox11


And when you run `startx`, you get the second session, initialized by the ck-launch-session command, which will become 'active = TRUE' and switch the prev. session for the text console as 'active = FALSE'
It's the 'login-session-id' which is same in both, 1, that tracks your user from active text console login, to active X11 login

So, the output you posted, looks exactly correct. You have it working!
Back to top
View user's profile Send private message
MarioMaster100
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2014
Posts: 86

PostPosted: Thu Jul 31, 2014 7:49 pm    Post subject: Reply with quote

ssuominen wrote:
MarioMaster100 wrote:
ssuominen wrote:
MarioMaster100 wrote:
ssuominen wrote:
Seen first post of this thread yet? https://forums.gentoo.org/viewtopic-t-858965-start-0.html

The first thing that looks wrong is the lack of dbus-launch in your .xinitrc since there is nothing in i3 that would start it, so, it should look something like this instead:

Code:

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session i3

No I haven't seen that thread before. I suppose I should follow their advice and change my .xinitrc line?


Yes, follow the first post of that thread step by step. And if it's still not working, please post complete `ck-list-sessions` outputs here, from console as a normal user, before you startx, and from X11 terminal as normal user after running X

Well now I have 2 of them when I got everything set and restarted X
Code:
~$ ck-list-sessions
Session3:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2014-07-31T19:23:40.663779Z'
   login-session-id = '1'
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2014-07-31T15:22:13.472460Z'
   login-session-id = '1'
   idle-since-hint = '2014-07-31T19:24:09.244692Z'


Yes, the one showing as "active = FALSE" and empty "x11-display-device = ''" is coming from when you login to the text console, it's initialized by the pam_ck_connector.so module:

Code:

$ qfile -b pam_ck_connector.so
sys-auth/consolekit (/lib64/security/pam_ck_connector.so)
$ grep pam_ck_connector.so /etc/pam.d/system-login
/etc/pam.d/system-login:session      optional   pam_ck_connector.so nox11


And when you run `startx`, you get the second session, initialized by the ck-launch-session command, which will become 'active = TRUE' and switch the prev. session for the text console as 'active = FALSE'
It's the 'login-session-id' which is same in both, 1, that tracks your user from active text console login, to active X11 login

So, the output you posted, looks exactly correct. You have it working!
Oh awesome, thanks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum