Your message dated Sat, 04 Feb 2006 13:33:27 -0800 with message-id <[EMAIL PROTECTED]> and subject line Bug#351351: fixed in laptop-mode-tools 1.23-1 has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message --->From [EMAIL PROTECTED] Sat Feb 04 02:43:57 2006 Received: (at submit) by bugs.debian.org; 4 Feb 2006 10:43:57 +0000 Return-path: <[EMAIL PROTECTED]> Received: from smtp06.web.de ([217.72.192.224]) by spohr.debian.org with esmtp (Exim 4.50) id 1F5KtZ-00074o-KG for [EMAIL PROTECTED]; Sat, 04 Feb 2006 02:43:57 -0800 Received: from [84.160.200.89] (helo=[192.168.1.101]) by smtp06.web.de with asmtp (WEB.DE 4.105 #340) id 1F5Kt3-0002nc-00 for [EMAIL PROTECTED]; Sat, 04 Feb 2006 11:43:25 +0100 Message-ID: <[EMAIL PROTECTED]> Date: Sat, 04 Feb 2006 11:43:31 +0100 From: hoelle <[EMAIL PROTECTED]> User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: laptop-mode-tools: laptop-mode init fails when second battery not present Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02 Package: laptop-mode-tools Version: 1.22-1 Severity: normal /usr/sbin/laptop_mode fails, when laptop has two battery slots and only one is present. A start results in the following error messages: Enabling laptop mode: remaining capacity: 1905 mAh /usr/sbin/laptop_mode: line 612: [: : integer expression expected /usr/sbin/laptop_mode: line 615: [: : integer expression expected /usr/sbin/laptop_mode: line 618: [: : integer expression expected /usr/sbin/laptop_mode: line 621: [: : integer expression expected Looks like the variable $REMAINING is not set correctly in line 592 when checking /proc/acpi/battery/BAT1/. A fix might be checking /proc/acpi/battery/BATx/info before doing any further operation. On the other hand when multiple batteries are present the value of REMAINING should contain the sum of all batteries when determing other actions depending on that (?). Best regards, Frank -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) laptop-mode-tools depends on no packages. Versions of packages laptop-mode-tools recommends: ii acpid 1.0.4-5 Utilities for using ACPI power man ii hdparm 6.3-3 tune hard disk parameters for high pn sdparm <none> (no description available) -- no debconf information
--- End Message ---
--- Begin Message --->From [EMAIL PROTECTED] Sat Feb 04 13:41:52 2006 Received: (at 351351-close) by bugs.debian.org; 4 Feb 2006 21:41:52 +0000 Return-path: <[EMAIL PROTECTED]> Received: from katie by spohr.debian.org with local (Exim 4.50) id 1F5V27-0004Zi-6M; Sat, 04 Feb 2006 13:33:27 -0800 From: Bart Samwel <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] X-Katie: $Revision: 1.65 $ Subject: Bug#351351: fixed in laptop-mode-tools 1.23-1 Message-Id: <[EMAIL PROTECTED]> Sender: Archive Administrator <[EMAIL PROTECTED]> Date: Sat, 04 Feb 2006 13:33:27 -0800 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 Source: laptop-mode-tools Source-Version: 1.23-1 We believe that the bug you reported is fixed in the latest version of laptop-mode-tools, which is due to be installed in the Debian FTP archive: laptop-mode-tools_1.23-1.diff.gz to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.23-1.diff.gz laptop-mode-tools_1.23-1.dsc to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.23-1.dsc laptop-mode-tools_1.23-1_all.deb to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.23-1_all.deb laptop-mode-tools_1.23.orig.tar.gz to pool/main/l/laptop-mode-tools/laptop-mode-tools_1.23.orig.tar.gz A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Bart Samwel <[EMAIL PROTECTED]> (supplier of updated laptop-mode-tools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Sat, 04 Feb 2006 13:30:00 +0200 Source: laptop-mode-tools Binary: laptop-mode-tools Architecture: source all Version: 1.23-1 Distribution: unstable Urgency: low Maintainer: Bart Samwel <[EMAIL PROTECTED]> Changed-By: Bart Samwel <[EMAIL PROTECTED]> Description: laptop-mode-tools - Scripts to spin down hard drive and save power Closes: 350518 350520 350983 351351 Changes: laptop-mode-tools (1.23-1) unstable; urgency=low . * New upstream version 1.23. * (Closes: #350518) Fixed auto-hibernation. * (Closes: #350520) Cleared up relationship between CONTROL_CPU_FREQUENCY and the CPU governor settings in the laptop-mode.conf manpage. * (Closes: #350983) Fixed media detection code that uses udevinfo. * (Closes: #351351) Fixed handling of double battery slots. Files: 16b2036d0a4a5b4d5dec879fae4a37b0 594 utils optional laptop-mode-tools_1.23-1.dsc 68b2e5e38efebcbc93d77a6711c8f9bb 57077 utils optional laptop-mode-tools_1.23.orig.tar.gz bda0a290b275330733c87df14688fe89 5563 utils optional laptop-mode-tools_1.23-1.diff.gz b87dc691e85b5e6fa4edde9772818b22 60658 utils optional laptop-mode-tools_1.23-1_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD5Q1WKb5dImj9VJ8RAtJTAJ4rWDycL+l21YZXGZAE2U7maoMjWACeJjwN BTfCzg9hVq03HJbjMw+IJcM= =WCHr -----END PGP SIGNATURE-----
--- End Message ---

