Hello, Current version in tree does not support new features of recent kernels. Please bump this. Thanks!
Created attachment 159237 [details, diff] laptop-mode-tools-1.43.ebuild.diff
Created attachment 159239 [details, diff] laptop_mode.init-1.4.diff
Created attachment 159569 [details] laptop-mode-tools-1.43.ebuild.diff Some more dependencies and USE flags.
Created attachment 159578 [details] laptop-mode-tools-1.43.ebuild.diff Forgot to add hal USE.
What about this? laptop-mode-tools >=1.35 has an important workaround for Load_Cycle problem in some disks: https://bugs.launchpad.net/mandriva/+bug/59695 http://www.samwel.tk/laptop_mode/changelog : 1.35 -- 18 November 2007 * Set HD power management values to 254 instead of 255. Some hard drives go into "no power management" mode only on 254, while 255 yields some kind of default that you don't want.
Upstream accepted patches to make it suitable for gentoo to pack.
Created attachment 160464 [details, diff] laptop-mode-tools-1.45.ebuild.diff This version's ebuild is much simpler.
*** Bug 200083 has been marked as a duplicate of this bug. ***
[ping]
Please... it is not so diffcult to commit this. Thanks!
Created attachment 165312 [details, diff] Fixed patch to version 1.45 Earlier 1.45 patch doesn't install the service laptop-mode correctly. Change in path FILESDIR -> WORKDIR and in the file name underscore -> hyphen. Could you point out if I do something in a wrong/non-standard way here, this is my first try on ebuilds.
(In reply to comment #11) > Earlier 1.45 patch doesn't install the service laptop-mode correctly. Change in > path FILESDIR -> WORKDIR and in the file name underscore -> hyphen. > > Could you point out if I do something in a wrong/non-standard way here, this is > my first try on ebuilds. > This is wrong. Please mark as obsolete. The init script is taken from the files directory of the ebuild. There is no gentoo init script at the package. The new init script is available at attachment#159239 [details, diff].
Comment on attachment 165312 [details, diff] Fixed patch to version 1.45 Ok, now I see the way it works. Sorry, didn't notice/realize the earlier patches.
mobile: is you a live herd?
Can anyone@gentoo.org in the CC bump this package, as there is no mobile?
Works for me!
When mobile won't respond until next week, I'll probably bump it.
ping
laptop-mode-tools has now been updated to version 1.47. Please consider bumping the release since it has important fixes such as working auto-hibernation even in cases when the acpid does not provide reliable battery notifications.
Created attachment 181355 [details, diff] laptop-mode-tools-1.47.ebuild.diff
Created attachment 181357 [details, diff] laptop-mode-tools-1.47-install.patch
Created attachment 181359 [details, diff] laptop-mode-tools-1.47-install.patch
Created attachment 181800 [details, diff] laptop-mode-tools-1.47.ebuild.diff Update to recent portage bluetooth modifications.
tester went and committed this with a couple changes, but i have one comment. (In reply to comment #20) > Created an attachment (id=181355) [edit] > laptop-mode-tools-1.47.ebuild.diff > > src_install() { > - dosbin usr/sbin/laptop_mode > - dosbin usr/sbin/lm-profiler > - dosbin usr/sbin/lm-syslog-setup > - > - insinto /etc/laptop-mode > - doins etc/laptop-mode/laptop-mode.conf > - doins etc/laptop-mode/lm-profiler.conf > - > - newinitd "${FILESDIR}"/laptop_mode.init laptop_mode > - > - keepdir /etc/laptop-mode/batt-start > - keepdir /etc/laptop-mode/batt-stop > - keepdir /etc/laptop-mode/lm-ac-start > - keepdir /etc/laptop-mode/lm-ac-stop > - keepdir /etc/laptop-mode/nolm-ac-start > - keepdir /etc/laptop-mode/nolm-ac-stop > - keepdir /etc/laptop-mode/scripts > - > - doman man/* > - > - dodoc Documentation/*.txt README > - > - if use acpi; then > - insinto /etc/acpi/events/ > - doins etc/acpi/events/* > + DESTDIR="${D}" \ > + MAN_D="/usr/share/man" \ > + INIT_D="none" \ > + APM="$(use apm && echo force || echo disabled)" \ > + ACPI="$(use acpi && echo force || echo disabled)" \ > + PMU="$(false && echo force || echo disabled)" \ > + ./install.sh we specifically avoid using package-supplied install scripts for many reasons. always always always use ebuild functions if a package doesn't have a make install target.
(In reply to comment #24) > we specifically avoid using package-supplied install scripts for many reasons. > always always always use ebuild functions if a package doesn't have a make > install target. There is no reason if the script is OK, as there is no difference between make and a script. I helped to fix the install script to support whatever needed in Gentoo, just like I would have helped fixing a bad Makefile. Thanks for committing.