Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253764 - Stabilize sys-power/acpid-2.0.17-r1
Summary: Stabilize sys-power/acpid-2.0.17-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Michal Hrusecky (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
: 317421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-04 19:08 UTC by Pacho Ramos
Modified: 2013-01-21 14:31 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
acpid.ebuild.diff (acpid.ebuild.diff,775 bytes, text/plain)
2009-01-04 19:09 UTC, Pacho Ramos
Details
power_button (power_button,1.80 KB, text/plain)
2009-01-04 19:10 UTC, Pacho Ramos
Details
acpid-2.0.5-kde4.patch (acpid-2.0.5-kde4.patch,667 bytes, patch)
2010-05-19 19:31 UTC, Timo Gurr (RETIRED)
Details | Diff
Possible patch using upstream script (acpid.patch,5.83 KB, patch)
2013-01-17 09:38 UTC, Michal Hrusecky (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2009-01-04 19:08:47 UTC
I attach an ebuild diff and the script used in opensuse for letting gnome-power-manager and kpowersave handle power button event.

Works fine for me

Thanks!

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2009-01-04 19:09:25 UTC
Created attachment 177386 [details]
acpid.ebuild.diff
Comment 2 Pacho Ramos gentoo-dev 2009-01-04 19:10:42 UTC
Created attachment 177388 [details]
power_button
Comment 3 Pacho Ramos gentoo-dev 2009-01-04 19:13:08 UTC
I have just seen that RDEPEND should include consolekit only when proper USE flag is set
Comment 4 Víctor Ostorga (RETIRED) gentoo-dev 2009-12-01 20:30:54 UTC
sys-power/kpowersave was removed from tree, see bug #292799 for reference
Comment 5 Ted Felix 2010-04-02 15:06:28 UTC
I'm going to include the power button script from Debian in my next release (4/15) in the samples directory.  It appears to cover a couple more situations beyond opensuse's.  You might want to try it and see if it works for your users.

I'll consider adding test cases for the various window managers and maybe maintaining some official scripts.  Sounds like it might be a lot of work, though.
Comment 6 Pacho Ramos gentoo-dev 2010-04-05 17:14:25 UTC
Great to now :-D

Thanks for your work
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-04-26 12:55:46 UTC
+*acpid-2.0.4 (26 Apr 2010)
+
+  26 Apr 2010; Samuli Suominen <ssuominen@gentoo.org> +acpid-2.0.4.ebuild,
+  +files/acpid-2.0.4-default.sh:
+  Version bump wrt #317273 by Tim Harder. Install new powerbtn.sh wrt
+  #253764 by Pacho Ramos.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-05-15 11:15:16 UTC
*** Bug 317421 has been marked as a duplicate of this bug. ***
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-05-15 11:16:50 UTC
Reopening. 

Power button script is installed as sample file by acpid-2.0.4, but it's not actually used before manually setupped.

Fedora has a consolekit based script, and Debian has a script which ignores KDE4 entirely, so... feel free to hack a working script as those are not good enough.
Comment 10 Timo Gurr (RETIRED) gentoo-dev 2010-05-19 19:30:24 UTC
I've tested acpid-2.0.5 with the new powerbtn.sh, looks like it doesn't work out of the box with KDE4 since the getXconsole() functions is also needed, attached is a patch borrowing the function from Debians acpi-support-0.129 package.
Comment 11 Timo Gurr (RETIRED) gentoo-dev 2010-05-19 19:31:37 UTC
Created attachment 232137 [details, diff]
acpid-2.0.5-kde4.patch
Comment 12 Ted Felix 2010-05-27 18:14:27 UTC
Thanks for the patch.  I'll include it in the next release of acpid.
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-06-16 17:24:10 UTC
(In reply to comment #11)
> Created an attachment (id=232137) [details]
> acpid-2.0.5-kde4.patch
> 

I've applied this to 2.0.5 (but the file is still under samples), so this bug will stay open for now.
Comment 14 Michal Hrusecky (RETIRED) gentoo-dev 2013-01-03 13:30:42 UTC
Taking over the package, will check what is there left to be done.
Comment 15 Pacho Ramos gentoo-dev 2013-01-03 15:49:08 UTC
(In reply to comment #14)
> Taking over the package, will check what is there left to be done.

Thanks, probably patch are obsolete and not compatible with Gnome3, but opensuse package looks like a good reference to take:
http://download.opensuse.org/factory/repo/src-oss/suse/src/acpid-2.0.17-1.3.src.rpm
Comment 16 Michal Hrusecky (RETIRED) gentoo-dev 2013-01-17 09:38:09 UTC
Created attachment 335892 [details, diff]
Possible patch using upstream script

This patch uses upstream example of how to do things. Can somebody who has the heavy desktop environment test that it is ok and solves the issue? Tested on my environment and still shuts down my computer without any complex DE :-D

Alternativelly decompress and run /usr/share/doc/acpid-2.0.17/samples/powerbtn/powerbtn.sh.xz - that is what I'm hooking up to power button in the patch.
Comment 17 Pacho Ramos gentoo-dev 2013-01-17 15:07:12 UTC
Looks to work fine on stable Gnome 2.32
Comment 18 Michal Hrusecky (RETIRED) gentoo-dev 2013-01-18 16:27:15 UTC
Committed into portage tree. Archs please stabilize acpid-2.0.17-r1 on amd64 ia64 x86.
Comment 19 Agostino Sarubbo gentoo-dev 2013-01-20 14:08:31 UTC
amd64 stable
Comment 20 Agostino Sarubbo gentoo-dev 2013-01-20 14:09:59 UTC
x86 stable
Comment 21 Agostino Sarubbo gentoo-dev 2013-01-21 14:31:22 UTC
ia64 stable. Last arch, closing