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
Created attachment 177386 [details] acpid.ebuild.diff
Created attachment 177388 [details] power_button
I have just seen that RDEPEND should include consolekit only when proper USE flag is set
sys-power/kpowersave was removed from tree, see bug #292799 for reference
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.
Great to now :-D Thanks for your work
+*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.
*** Bug 317421 has been marked as a duplicate of this bug. ***
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.
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.
Created attachment 232137 [details, diff] acpid-2.0.5-kde4.patch
Thanks for the patch. I'll include it in the next release of acpid.
(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.
Taking over the package, will check what is there left to be done.
(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
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.
Looks to work fine on stable Gnome 2.32
Committed into portage tree. Archs please stabilize acpid-2.0.17-r1 on amd64 ia64 x86.
amd64 stable
x86 stable
ia64 stable. Last arch, closing