Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122278 - kpowersave (new ebuild)
Summary: kpowersave (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-02-09 09:53 UTC by Jiri Tyr
Modified: 2006-05-26 11:52 UTC (History)
8 users (show)

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


Attachments
powersave_overlay.tar.bz2 (powersave_overlay.tar.bz2,4.48 KB, application/octet-stream)
2006-02-09 09:53 UTC, Jiri Tyr
Details
sys-power/powersave/powersave-0.11.6.ebuild (powersave-0.11.6.ebuild,1.36 KB, text/plain)
2006-02-09 11:30 UTC, Jiri Tyr
Details
sys-power/powersave/files/fixes.patch (fixes.patch,6.99 KB, patch)
2006-02-09 11:31 UTC, Jiri Tyr
Details | Diff
sys-power/powersave/files/plugdev_access.patch (plugdev_access.patch,458 bytes, patch)
2006-02-09 11:31 UTC, Jiri Tyr
Details | Diff
sys-power/powersave/files/powersaved.rc (powersaved.rc,579 bytes, text/plain)
2006-02-09 11:31 UTC, Jiri Tyr
Details
sys-power/kpowersave/kpowersave-0.5.4.ebuild (kpowersave-0.5.4.ebuild,515 bytes, text/plain)
2006-02-09 11:32 UTC, Jiri Tyr
Details
sys-power/kpowersave/kpowersave-0.5.6.ebuild (kpowersave-0.5.6.ebuild,391 bytes, text/plain)
2006-02-10 08:16 UTC, Jiri Tyr
Details
sys-power/powersave/powersave-0.12.7.ebuild (powersave-0.12.7.ebuild,1.36 KB, text/plain)
2006-03-31 03:07 UTC, Matt Whitlock
Details
sys-power/kpowersave/kpowersave-0.5.11.ebuild (kpowersave-0.5.11.ebuild,397 bytes, text/plain)
2006-03-31 03:09 UTC, Matt Whitlock
Details
sys-power/powersave/files/powersaved.rc (powersaved.rc,579 bytes, text/plain)
2006-03-31 03:14 UTC, Matt Whitlock
Details
sys-power/powersave/powersave-0.12.7.ebuild (powersave-0.12.7.ebuild,1.33 KB, text/plain)
2006-04-01 23:29 UTC, Matt Whitlock
Details
sys-power/powersave/files/powersaved.rc (powersaved.rc,512 bytes, text/plain)
2006-04-01 23:30 UTC, Matt Whitlock
Details
sys-power/powersave/powersave-0.12.11.ebuild (powersave-0.12.11.ebuild,1.34 KB, text/plain)
2006-04-10 15:12 UTC, Matt Whitlock
Details
sys-power/kpowersave/kpowersave-0.6.0.ebuild (kpowersave-0.6.0.ebuild,397 bytes, text/plain)
2006-04-10 15:13 UTC, Matt Whitlock
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Tyr 2006-02-09 09:53:13 UTC
I have found (http://thread.gmane.org/gmane.linux.power-management.powersave/290) kpowersave ebuild by Michael Biebl. I think that it helps to many people.
Comment 1 Jiri Tyr 2006-02-09 09:53:50 UTC
Created attachment 79341 [details]
powersave_overlay.tar.bz2
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-02-09 09:55:13 UTC
Don't restrict bugs, please... Also, never attach tarballs.

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3#doc_chap2
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-02-09 09:55:36 UTC
Reopen with a plaintext ebuild attached.
Comment 4 Jiri Tyr 2006-02-09 11:30:15 UTC
Created attachment 79348 [details]
sys-power/powersave/powersave-0.11.6.ebuild
Comment 5 Jiri Tyr 2006-02-09 11:31:01 UTC
Created attachment 79349 [details, diff]
sys-power/powersave/files/fixes.patch
Comment 6 Jiri Tyr 2006-02-09 11:31:18 UTC
Created attachment 79350 [details, diff]
sys-power/powersave/files/plugdev_access.patch
Comment 7 Jiri Tyr 2006-02-09 11:31:34 UTC
Created attachment 79351 [details]
sys-power/powersave/files/powersaved.rc
Comment 8 Jiri Tyr 2006-02-09 11:32:08 UTC
Created attachment 79352 [details]
sys-power/kpowersave/kpowersave-0.5.4.ebuild
Comment 9 Jiri Tyr 2006-02-09 11:34:33 UTC
Plain text ebuilds for the kpowersave (powersave).
Comment 10 Jiri Tyr 2006-02-10 08:16:22 UTC
Created attachment 79442 [details]
sys-power/kpowersave/kpowersave-0.5.6.ebuild

Ebuild for the newest version.
Comment 11 Matt Whitlock 2006-03-31 03:07:49 UTC
Created attachment 83489 [details]
sys-power/powersave/powersave-0.12.7.ebuild

Update for latest powersave daemon.
Comment 12 Matt Whitlock 2006-03-31 03:09:07 UTC
Created attachment 83490 [details]
sys-power/kpowersave/kpowersave-0.5.11.ebuild

Update for latest version.
Comment 13 Matt Whitlock 2006-03-31 03:14:31 UTC
Created attachment 83493 [details]
sys-power/powersave/files/powersaved.rc

need += acpid
use -= acpid
Comment 14 Matt Whitlock 2006-03-31 03:27:27 UTC
I added a dependency on "acpi? ( sys-power/acpid )" to sys-power/powersave because I tried starting powersaved without having acpid running, and it apparently didn't know what to do with the acpid socket because it wouldn't start.

Is this package going to get adopted into Portage?  KPowersave is endlessly better than KLaptopDaemon.
Comment 15 Matt Whitlock 2006-04-01 21:45:28 UTC
I've created an ebuild for the s2ram binary (http://en.opensuse.org/S2ram), which powersave will automatically utilize to make suspend-to-RAM reliable on more machines out of the box.  See bug #128468.
Comment 16 Matt Whitlock 2006-04-01 23:29:39 UTC
Created attachment 83689 [details]
sys-power/powersave/powersave-0.12.7.ebuild

My previous fix wasn't the best way to handle the situation.  Turns out acpid really isn't needed, but the rc script has to be fixed for the case that it isn't installed.

This revision of the ebuild takes the acpid dependency back out.
Comment 17 Matt Whitlock 2006-04-01 23:30:55 UTC
Created attachment 83690 [details]
sys-power/powersave/files/powersaved.rc

This revision of the powersaved.rc script adds a check for the acpid socket.  If the socket exists, it will tell powersave to use it; otherwise, it lets powersave default to reading acpi events from /proc/acpi/event.
Comment 18 Matt Whitlock 2006-04-10 15:12:51 UTC
Created attachment 84400 [details]
sys-power/powersave/powersave-0.12.11.ebuild

bump to latest version
Comment 19 Matt Whitlock 2006-04-10 15:13:56 UTC
Created attachment 84402 [details]
sys-power/kpowersave/kpowersave-0.6.0.ebuild

bump to latest version
Comment 20 Stefan Scheler 2006-04-17 00:46:23 UTC
Please add these packages to portage. If you know powersave you really don't want to use klaptopdaemon again. It's also far better maintained code and nearly all major distributions ship these packages btw.
Comment 21 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-07 02:41:39 UTC
powersaved does not start for me, no output either :(
strace:
http://genstef.homelinux.org/powersaved-strace
Comment 22 Matt Whitlock 2006-05-07 02:46:01 UTC
It's a daemon.  Start it with:

/etc/init.d/powersaved start

Add it to your default runlevel with:

rc-update add powersaved default
Comment 23 Stefan Scheler 2006-05-07 03:02:34 UTC
> http://genstef.homelinux.org/powersaved-strace

looks like you don't have permissions to connect to the dbus system bus. you need to run the daemon as root of course.
Comment 24 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-07 03:32:37 UTC
after a reboot it automagically worked. I have added it as 0.13.1 to portage, wait an hour and sync to get it :)

Thank you all for helping here and for the ebuild!
Comment 25 Matt Whitlock 2006-05-07 03:37:33 UTC
Did you also put Kpowersave in Portage?  These were two different ebuilds.  Just want to make sure you're aware of that.
Comment 26 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-07 03:45:11 UTC
yes, of course :) Do you know how I can run custom commands on suspend-to-ram? I need to restart my soundcard afterwards:
/etc/init.d/alsasound restart
oh, probably makes sense to continue the discussion now in private mail or irc :)
Comment 27 Matija "hook" Šuklje 2006-05-07 05:48:19 UTC
Kpowersave (and, of course, the powersave deamon) works fine for me on AMD64 (stable branch).

You can add ~amd64 to the kpowersave ebuild, IMHO
Comment 28 Bernd Buschinski 2006-05-07 06:52:58 UTC
can confirm kpowersave works on ~amd64

I just need to restart dbus once
Comment 29 Stefan Schweizer (RETIRED) gentoo-dev 2006-05-07 14:45:32 UTC
Can you please open a new bug for the amd64 keywording issue? I am not allowed to mark it ~amd64 since I do not have and amd64 system.
Comment 30 Matija "hook" Šuklje 2006-05-07 15:12:04 UTC
sure, no problem :]

here it is:
http://bugs.gentoo.org/show_bug.cgi?id=132621
Comment 31 Marcel Partap 2006-05-26 11:52:08 UTC
This needs any -j* disabled, else emerge bails out with this error:
Good - your configure finished. Start make now

WARNING: use unsermake instead of make or use a wrapper script, e.g. makeobj!!!
/usr/lib/python2.4/site-packages/unsermake/unsermake all
ERROR:src/Makefile.am: unknown source extension .ui for kpowersave.la
ERROR:src/Makefile.am: unknown source extension .skel for kpowersave.la
ERROR:src/Makefile.am: unknown source extension .ui for kpowersave.la
ERROR:src/Makefile.am: unknown source extension .ui for kpowersave.la
ERROR:src/Makefile.am: unknown source extension .ui for kpowersave.la
ERROR:src/Makefile.am: unknown source extension .ui for kpowersave.la
make: *** [all] Error 1

!!! ERROR: sys-power/kpowersave-0.6.1 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  ebuild.sh, line 1240:   Called kde_src_compile
  kde.eclass, line 123:   Called kde_src_compile 'all'
  kde.eclass, line 252:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 248:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.