Summary: | sys-auth/consolekit-0.4.2-r4 not working with powerdevil unless it has been restarted | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Morgan Langley <mastr> |
Component: | [OLD] KDE | Assignee: | Freedesktop bugs <freedesktop-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | hwoarang, oli.huber |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Morgan Langley
2010-11-15 09:57:46 UTC
I am having the exact same issue, and I here is some more info: trying to restart consolekit from locale.start does not help. in addition, before startx, restart consolekit in one tty, then switch to another tty (alt+F2) and startx, powerdevil still does not work it looks like it's tty related... but I don't know how to debug this further (could not find any logs anywhere regarding this issue) (In reply to comment #0) > 2. startx (with KDE) "with KDE" is 'exec ck-launch-session startkde' or what? btw, try consolekit-0.4.3 "with KDE" means using the system's default xsession, which is "exec /usr/bin/startkde". I actually made a modification to it and used "exec ssh-agent startkde". However, the situation does not change, whether I add/remove ssh-agent or add/remove ck-launch session. I tried all combinations with no success. I have just synced and consolekit-0.4.3 is not in portage. I can confirm this bug w/ consolekit-0.4.3. I'm also starting kde with startx. It seems that this isn't gentoo specific (cf Debian bug #598150). I commented out session optional pam_ck_connector.so nox11 in /etc/pam.d/system-login. Thus I have no ck session, and now suspend is working again. If I try to start the kde session with "/usr/bin/ck-launch-session /usr/bin/startkde", I end up with an inactive session : $ ck-list-sessions Session1: unix-user = '1000' realname = '(null)' seat = 'Seat2' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = FALSE on-since = '2010-12-01T10:40:43.923889Z' login-session-id = '10' and suspend w/ Powerdevil isn't working again. It's propably up to removing the "nox11" parameter from /etc/pam.d/system-login's pam_ck_connector.so line, then ck-list-sessions should print 'active' That would be bug 342345 At least that's what the "restarting consolekit helps" info provided here tells me. *** This bug has been marked as a duplicate of bug 342345 *** Removing the nox11 parameter did not help: Session4: unix-user = '501' realname = '(null)' seat = 'Seat2' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = FALSE on-since = '2010-12-22T17:27:39.881045Z' login-session-id = '' I am having similar problems when I start my session using startx & ck-launch-session Maybe this bug is similar to https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/483130 I haven't tried this modified version of 90consolekit yet Is there a workaround to make startx aware of the ck session? Ignore me. Seems like I am a victim of bug #342291 After investigating all the bugs in this report, I finally fixed the issue. It was a combination of bugs 342245 and 342291. |