[Bug 933626] Re: acpi-support should use ck-list-sessions to determine active X display and X user
Launchpad Bug Tracker
933626 at bugs.launchpad.net
Sun Mar 4 00:00:36 UTC 2012
This bug was fixed in the package acpi-support - 0.139
---------------
acpi-support (0.139) precise; urgency=low
* lib/power-funcs: adjust getXuser and getXconsole to use consolekit
instead of ps/who to identify the "foreground" session and the owner
of a given X session, since lightdm is currently failing to record this
information in utmp. Also, add headers for each of these functions
documenting how they're supposed to work, since it's completely
non-obvious and some of the scripts already in acpi-support are using
them wrong. Thanks to Ayan George <ayan.george at canonical.com> for the
preliminary patch. LP: #933626, #893271.
* rotatescreen.sh: fix wrong use of getXconsole where getXuser is needed.
-- Steve Langasek <steve.langasek at ubuntu.com> Sat, 03 Mar 2012 15:49:47 -0800
** Changed in: acpi-support (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to acpi-support in Ubuntu.
https://bugs.launchpad.net/bugs/933626
Title:
acpi-support should use ck-list-sessions to determine active X display
and X user
Status in “acpi-support” package in Ubuntu:
Fix Released
Bug description:
The acpi-support scripts use 'ps' and 'who' output to determine the current active X display and X user (in getXconsole and getXuser). Currently, LightDM does not write to utmp so 'who' does not output the correct information breaking getXconsole and getXuser.
ConsoleKit properly maintains the state of the console and probably
should be used instead.
I've attached a patch that re-implements getXconsole and getXuser by
calling ck-list-sessions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/933626/+subscriptions
More information about the foundations-bugs
mailing list