Bug#507640: laptop-mode-tools: Problems enabling laptop-mode
Package: laptop-mode-tools Version: 1.45-1 Severity: important Bootmessage: Enabling laptop mode.../usr/share/laptop-mode-tools/modules/lcd-brightness: line 25: echo: write error: Invalid argument I found the line if ( $BRIGHTNESS_COMMAND $BRIGHTNESS_OUTPUT ) ; then in the Script. It is a shell-skript, i think it should be: if [ $BRIGHTNESS_COMMAND -gt $BRIGHTNESS_OUTPUT ] ; then But i don't know how to make a patch. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages laptop-mode-tools depends on: ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip ii util-linux2.13.1.1-1 Miscellaneous system utilities Versions of packages laptop-mode-tools recommends: ii acpid 1.0.6-16 Utilities for using ACPI power man ii apmd 3.2.2-12 Utilities for Advanced Power Manag ii hal 0.5.11-6 Hardware Abstraction Layer ii hdparm8.9-2 tune hard disk parameters for high ii sdparm1.02-1 Output and modify SCSI device para laptop-mode-tools suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#507640: laptop-mode-tools: Problems enabling laptop-mode
Hi Jakob, Jakob Schuerz wrote: Bootmessage: Enabling laptop mode.../usr/share/laptop-mode-tools/modules/lcd-brightness: line 25: echo: write error: Invalid argument I found the line if ( $BRIGHTNESS_COMMAND $BRIGHTNESS_OUTPUT ) ; then in the Script. It is a shell-skript, i think it should be: if [ $BRIGHTNESS_COMMAND -gt $BRIGHTNESS_OUTPUT ] ; then But i don't know how to make a patch. Ehm... no. It's not as in greater than, it's as in redirect the output of the $BRIGHTNESS_COMMAND to the file $BRIGHTNESS_OUTPUT. So that's fine. What is in your configuration file for the lcd-brightness module (/etc/laptop-mode/conf.d/lcd-brightness.conf)? Cheers, Bart -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]