[Bug 933626] Re: acpi-support should use ck-list-sessions to determine active X display and X user

Ayan George ayan.george at canonical.com
Thu Feb 16 17:46:58 UTC 2012


** Patch added: "power-funcs.diff"
   https://bugs.launchpad.net/bugs/933626/+attachment/2745858/+files/power-funcs.diff

-- 
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:
  New

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