[Bug 1243399] Re: powers off instead of sleep under KDE4

Antonis Kanouras antonis+launchpad at metadosis.gr
Sat Oct 26 15:09:43 UTC 2013


Same here.

/etc/acpi/powerbtn.sh tries to source /usr/share/acpi-support/power-
funcs , which doesn't exist in any package under 13.10 (it did exist in
13.04), and run getXconsole() from it, which would set XUSER.

With XUSER not set, and "kded4" not included in the PMS variable,
control will always reach the /sbin/shutdown line when only KDE sessions
are running on the system.

Please find attached an updated version of the script, using logind for
power manager detection instead.

** Patch added: "powerbtn.sh updated for logind"
   https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/1243399/+attachment/3892069/+files/powerbtn.sh.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/1243399

Title:
  powers off instead of sleep under KDE4

Status in “acpi-support” package in Ubuntu:
  Confirmed

Bug description:
  Looks like a regression of #268734 - it's exactly the same.

  KDE4 power settings say to sleep when power button pressed, but
  instead the machine powers off - obvious data loss bug.

  If I comment out the final line of /etc/acpi/powerbtn.sh and add
  'touch /tmp/fail' then the file in /tmp/ is created and the machine
  sleeps as expected.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: acpi-support 0.142
  ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
  Uname: Linux 3.11.0-12-generic i686
  ApportVersion: 2.12.5-0ubuntu2
  Architecture: i386
  Date: Tue Oct 22 21:28:12 2013
  MarkForUpload: True
  SourcePackage: acpi-support
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/1243399/+subscriptions



More information about the foundations-bugs mailing list