Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfce 4.7 xfce-power-manager suspend/hibernate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Fri Nov 12, 2010 6:20 pm    Post subject: xfce 4.7 xfce-power-manager suspend/hibernate Reply with quote

I use xdm as my login manager and when i do ck-list-sessions there is no response.

so i kill xdm and do startxfce4 and the same result
but when i do startx it returns
Code:


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 = '2010-11-12T17:41:18.536638Z'
   login-session-id = '1'
   idle-since-hint = '2010-11-12T17:43:18.004783Z'
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 = '2010-11-12T17:42:51.373703Z'
   login-session-id = '1'

_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Nov 12, 2010 6:37 pm    Post subject: Reply with quote

Try adding these to /etc/pam.d/xdm:

Code:

session   optional        pam_loginuid.so   
session   optional        pam_ck_connector.so


pambase is known to be broken for some login managers like "slim" too.
Back to top
View user's profile Send private message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Fri Nov 12, 2010 7:00 pm    Post subject: Reply with quote

Thanks that solves that problem
but the PM still says not authorized and the logout splash greys out reboot and shutdown (is there a reason suspend and hibernate are gone from this menu)

Code:

user@localhost ~: ck-list-sessions
Session2:
   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 = '2010-11-12T18:53:20.632447Z'
   login-session-id = '2'
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2010-11-12T18:53:04.146472Z'
   login-session-id = '1'

_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Nov 12, 2010 7:08 pm    Post subject: Reply with quote

smellyfis wrote:

Code:

user@localhost ~: ck-list-sessions
Session1:
   active = FALSE


That active = should be "TRUE", otherwise it's not working properly. Sorry but I have to ask one obvious question:

What do you have in ~/.xinitrc ? Should be 'exec ck-launch-session startxfce4'
Back to top
View user's profile Send private message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Fri Nov 12, 2010 7:13 pm    Post subject: Reply with quote

Code:
user@localhost ~: cat .xinitrc
exec ck-launch-session startxfce4
[/code]
_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Nov 12, 2010 7:38 pm    Post subject: Reply with quote

login-session-id = '' should stay the same for both sessions I think.

is CONFIG_AUDITSYSCALL=y enabled in kernel?
Back to top
View user's profile Send private message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Fri Nov 12, 2010 7:42 pm    Post subject: Reply with quote

all this was already set
Code:
user@localhost ~:cat /usr/src/linux/.config|grep AUDIT
CONFIG_AUDIT_ARCH=y
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y

_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Nov 12, 2010 7:46 pm    Post subject: Reply with quote

OK. Can you try changing

session optional pam_ck_connector.so

to

session optional pam_ck_connector.so nox11
Back to top
View user's profile Send private message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Fri Nov 12, 2010 8:15 pm    Post subject: Reply with quote

That makes networkmanager s* its self and i get the no response from ck-list-sessions
and when i changed it back i only get one response form ck-list-sessions
Code:
user@localhost ~:ck-list-sessions
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2010-11-12T20:12:23.992382Z'
   login-session-id = '2'

_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Mon Nov 15, 2010 1:33 pm    Post subject: Reply with quote

is there any file i can post that might be interupting the xdm-pam-consolkit-policykit xfce-power-manager relations to prevent me from suspending
_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
smellyfis
n00b
n00b


Joined: 25 Mar 2007
Posts: 41
Location: USA either northeast or texas depending on the time of year

PostPosted: Tue Nov 16, 2010 6:20 pm    Post subject: Reply with quote

bump
_________________
Come on i dare you derive me crazy
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Nov 20, 2010 12:51 am    Post subject: Reply with quote

Moved from Desktop Environments to Duplicate Threads. Please continue on this thread.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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