Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#9126 - laptop-mode-tools 1.35-1 rc-script bug disables functionality

Attached to Project: Arch Linux
Opened by Lothar Gesslein (ulmen) - Tuesday, 08 January 2008, 08:31 GMT
Last edited by Aaron Griffin (phrakture) - Tuesday, 08 January 2008, 13:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Aaron Griffin (phrakture)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

With the latest laptop-mode-tools 1.35 the following change was made upstream:
"Move /var/run/laptop-mode-* to /var/run/laptop-mode-tools/*."

The rcd-script in 1.35-1 was not updated accordingly, thus laptop-mode won't work anymore.

trivial patch to fix:

diff -Nur laptop-mode.rcd.bak /etc/rc.d/laptop-mode
--- laptop-mode.rc.bak 2008-01-08 09:22:24.000000000 +0100
+++ /etc/rc.d/laptop-mode 2008-01-08 09:22:14.000000000 +0100
@@ -9,7 +9,7 @@
case "$1" in
start)
stat_busy "Starting laptop-mode"
- touch /var/run/laptop-mode-enabled
+ touch /var/run/laptop-mode-tools/enabled
/usr/sbin/laptop_mode auto init >/dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
@@ -20,7 +20,7 @@
;;
stop)
stat_busy "Stopping laptop-mode"
- rm -f /var/run/laptop-mode-enabled
+ rm -f /var/run/laptop-mode-tools/enabled
/usr/sbin/laptop_mode stop init >/dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail
@@ -31,7 +31,7 @@
;;
restart)
stat_busy "Restarting laptop-mode"
- touch /var/run/laptop-mode-enabled
+ touch /var/run/laptop-mode-tools/enabled
/usr/sbin/laptop_mode auto init force >/dev/null 2>&1
if [ $? -gt 0 ]; then
stat_fail

Maybe also at other places, but with this it works for me.

Thanks!
This task depends upon

Closed by  Aaron Griffin (phrakture)
Tuesday, 08 January 2008, 13:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 1.35-2
Comment by Aaron Griffin (phrakture) - Tuesday, 08 January 2008, 13:04 GMT
Fixed in 1.35-2. Sorry for the error. Please verify
Comment by Lothar Gesslein (ulmen) - Tuesday, 08 January 2008, 13:15 GMT
I copied the -2 rc.d-script from cvs to my system and it works as expected. I'd call this bug fixed, then! Thanks!

But i wondered if the removal of the md5sums in the PKGBUILD was intended?
Comment by Aaron Griffin (phrakture) - Tuesday, 08 January 2008, 13:27 GMT
No, sadly that was an accident. I removed them with the intent to re-add 8)

Loading...