Dear Bart, Funnily enough, VERBOSE_OUTPUT is not set. C.f. attachment. Okay, I added an echo to a temp file to know what was going on: this is because the variable $VERBOSE itself is set to "yes" - and I got difficulties to find why!! But I may have understood:
My /etc/init.d/rcS contains VERBOSE=yes: % grep VERBOSE /etc/default/rcS # Set VERBOSE to "no" if you would like a more quiet bootup. VERBOSE=yes This seems to get translated into acpid environment. Indeed, if I look to the environment of my acpid process: % less /proc/`pidof acpid`/environ [EMAIL PROTECTED]/dev/[EMAIL PROTECTED]@[EMAIL PROTECTED]/sbin:/bin:/usr/sbin:/usr/[EMAIL PROTECTED]@[EMAIL PROTECTED]/[EMAIL PROTECTED]@[EMAIL PROTECTED]@HOME=/[EMAIL PROTECTED]@[EMAIL PROTECTED]/sbin/start-stop-daemon^@ So I end up with acpid calling laptop_mode action with VERBOSE setted to "yes", which translates to VERBOSE_OUTPUT setted to "yes" ! Hmmm... I am 99.999% sure I never touched /etc/init.d/rcS, and I do not know if VERBOSE=yes is the debian's default - is it !? Anyway, this might be a dependency that can hurt laptop_mode !? Thanks, Cheers, JD. BS > Jean-Damien Durand wrote: BS > > Package: laptop-mode-tools BS > > Version: 1.10-1 BS > > Severity: normal BS > > BS > > FYI I got the error mentionned in subject with version 1.10-1. BS > BS > Did you set VERBOSE_OUTPUT=yes? Use "1" instead. None of the laptop mode BS > tools settings work with yes/no, they're all 1/0. BS > BS > --Bart BS >
# Configuration for Laptop Mode Tools # # There is a "system" to the configuration setting names: # CONTROL_something=0/1 Determines whether Laptop Mode Tools controls something # LM_something=value Value of "something" when laptop mode is active # NOLM_something=value Value of "something" when laptop mode is NOT active # AC_something=value Value of "something" when the computer is running on AC power # BATT_something=value Value of "something when the computer is running on battery power # # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the available prefixes # are different for each setting. The available ones are documented in the manual page, # laptop-mode.conf(8). If there is no LM_/NOLM_ in a setting name, then the value # is used independently of laptop mode state, and similarly, if there is no AC_/BATT_, # then the value is used independently of power state. # Set this to 1 if you want to see a lot of information when you start/stop laptop_mode. VERBOSE_OUTPUT=0 ############################################################################### # When to enable laptop mode ############################################################################### # Enable laptop mode when on battery power. ENABLE_LAPTOP_MODE_ON_BATTERY=1 # Enable laptop mode when on AC power. ENABLE_LAPTOP_MODE_ON_AC=0 # Enable laptop mode when the laptop's lid is closed, even when we're on # AC power? This only works on ACPI machines. ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0 # Disable laptop mode when the number of minutes of battery that you have left # goes below this threshold. (Note that some batteries do not report a discharge # rate, and this option will not have any effect on those batteries. Use the battery # charge options instead.) MINIMUM_BATTERY_MINUTES=7 # Automatically disable laptop mode when the remaining charge in your battery # goes below this value. There is a configuration value in mWh and in mAh, # the one that is used depends on how your battery reports its capacity. MINIMUM_BATTERY_CHARGE_MAH=100 MINIMUM_BATTERY_CHARGE_MWH=500 ############################################################################### # Controlled hard drives and partitions ############################################################################### # The drives that laptop mode controls. # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a # wildcard, which will get you all your IDE and SCSI/SATA drives. HD="/dev/[hs]d[abcdefgh]" # The partitions (or mount points) that laptop mode controls. # Separate the values by spaces. Use "auto" to indicate all partitions on drives # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can # also specify mount points, e.g. "/mnt/data". PARTITIONS="auto" ############################################################################### # Hard drive behaviour settings ############################################################################### # Maximum time, in seconds, of work that you are prepared to lose when your # system crashes or power runs out. This is the maximum time that Laptop Mode # will keep unsaved data waiting in memory before spinning up your hard drive. LM_BATT_MAX_LOST_WORK_SECONDS=600 LM_AC_MAX_LOST_WORK_SECONDS=360 # Should laptop mode tools control readahead? CONTROL_READAHEAD=1 # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB). Effectively, # the disk will read a complete MP3 at once, and will then spin down while # the MP3/OGG is playing. Don't set this too high, because the readahead is # applied to _all_ files that are read from disk. LM_READAHEAD=3072 NOLM_READAHEAD=128 # Should laptop mode tools add the "noatime" option to the mount options when laptop # mode is enabled? CONTROL_NOATIME=1 # Should laptop mode tools control the hard drive idle timeout settings? CONTROL_HD_IDLE_TIMEOUT=1 # Idle timeout values. (hdparm -S) # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 5 seconds for battery # and for AC with laptop mode on. LM_AC_HD_IDLE_TIMEOUT_SECONDS=5 LM_BATT_HD_IDLE_TIMEOUT_SECONDS=5 NOLM_HD_IDLE_TIMEOUT_SECONDS=7200 # Shoudl laptop mode tools control the hard drive power management settings? CONTROL_HD_POWERMGMT=1 # Power management for HD (hdparm -B values) BATT_HD_POWERMGMT=1 LM_AC_HD_POWERMGMT=255 NOLM_AC_HD_POWERMGMT=255 # Should laptop mode tools control the hard drive write cache settings? CONTROL_HD_WRITECACHE=1 # Write cache settings for HD (hdparm -W values) NOLM_AC_HD_WRITECACHE=1 NOLM_BATT_HD_WRITECACHE=0 LM_HD_WRITECACHE=0 ############################################################################### # ACPI binding ############################################################################### # Enable this if you have a buggy ACPI implementation that doesn't send # out AC adapter events. This will make laptop mode check the AC state # on battery state change events as well. ACPI_WITHOUT_AC_EVENTS=0 ############################################################################### # CPU frequency scaling and throttling ############################################################################### # Should laptop mode tools control the maximum CPU frequency? # (Only works on 2.6 kernels with appropriate sysfs entries.) CONTROL_CPU_MAXFREQ=0 # Legal values are "slowest" for the slowest speed that your # CPU is able to operate at, "highest" for the fastest speed, or a value listed in # /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies. BATT_CPU_MAXFREQ=slowest LM_AC_CPU_MAXFREQ=fastest NOLM_AC_CPU_MAXFREQ=fastest # Should laptop mode tools control the CPU throttling? This is only useful # on processors that don't have frequency scaling. # (Only works when you have /proc/acpi/processor/CPU*/throttling.) CONTROL_CPU_THROTTLING=0 # Legal values are "maximum" for the maximum (slowest) throttling level, # "minimum" for minimum (fastest) throttling level, "medium" for a value # somewhere in the middle (this is usually 50% for P4s), or any value listed # in /proc/acpi/processor/CPU*/throttling. Be careful when using "maximum": # this may be _very_ slow (in fact, with P4s it slows down the processor # by a factor 8). BATT_CPU_THROTTLING=medium LM_AC_CPU_THROTTLING=minimum NOLM_AC_CPU_THROTTLING=minimum ############################################################################### # Syslog configuration control ############################################################################### # Should laptop mode tools control which syslog.conf should be used? CONTROL_SYSLOG_CONF=0 # Laptop mode tools controls syslog.conf by replacing /etc/syslog.conf (or # whatever you specify in SYSLOG_CONF) by a link to the files configured here. # NOTE: these files are NOT created by default, and if they do not # exist this feature will not work. You can run the script # /usr/sbin/lm-syslog-setup to set things up. LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf # Signal this program when syslog.conf has been replaced. SYSLOG_CONF_SIGNAL_PROGRAM=syslogd # This is the syslog configuration file that should be replaced by a link to the # other files. SYSLOG_CONF=/etc/syslog.conf ############################################################################### # Settings you probably don't want to touch ############################################################################### # Change mount options on partitions in PARTITIONS? You don't really want to # disable this. If you do, then your hard drives will probably not spin down # anymore. CONTROL_MOUNT_OPTIONS=1 # Dirty synchronous ratio. At this percentage of dirty pages the process # which calls write() does its own writeback. LM_DIRTY_RATIO=60 NOLM_DIRTY_RATIO=40 # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been # exceeded, the kernel will wake pdflush which will then reduce the amount # of dirty memory to dirty_background_ratio. Set this nice and low, so once # some writeout has commenced, we do a lot of it. # LM_DIRTY_BACKGROUND_RATIO=1 NOLM_DIRTY_BACKGROUND_RATIO=10 # kernel default settings -- don't touch these unless you know what you're doing. DEF_UPDATE=5 DEF_XFS_AGE_BUFFER=15 DEF_XFS_SYNC_INTERVAL=30 DEF_XFS_BUFD_INTERVAL=1 DEF_MAX_AGE=30 # This must be adjusted manually to the value of HZ in the running kernel # on 2.4, until the XFS people change their 2.4 external interfaces to work in # centisecs. This can be automated, but it's a work in progress that still # needs# some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for # external interfaces, and that is currently always set to 100. So you don't # need to change this on 2.6. XFS_HZ=100 # Seconds laptop mode has to to wait after the disk goes idle before doing # a sync. LM_SECONDS_BEFORE_SYNC=2