Package: sysfsutils
Version: 2.1.0-3
Severity: normal

Hello,

powertop suggested the following:
=====
Suggestion: Enable SATA ALPM link power management via:
  echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
=====

However, /etc/init.d/sysfsutils calls `echo -n` which gives an error on
that sysfs file:
=====
[EMAIL PROTECTED]:/home/luca# invoke-rc.d sysfsutils start
[...]
+ read f1 f2 f3
+ '[' class/scsi_host/host0/link_power_management_policy = mode -a -n 
'"min_power"' -a -n '' ']'
+ '[' class/scsi_host/host0/link_power_management_policy = owner -a -n 
'"min_power"' -a -n '' ']'
+ '[' class/scsi_host/host0/link_power_management_policy -a -n '"min_power"' -a 
-z '' ']'
+ '[' -f /sys/class/scsi_host/host0/link_power_management_policy ']'
+ echo -n '"min_power"'
/etc/init.d/sysfsutils: line 49: echo: write error: Invalid argument
"min_power"+ log_end_msg 0

[EMAIL PROTECTED]:/home/luca# echo "min_power" \
 >/sys/class/scsi_host/host0/link_power_management_policy  && echo OK
OK
[EMAIL PROTECTED]:/home/luca# 
=====

I'm not sure whom to blame here, sysfsutils or the linux kernel (for not
accepting `echo -n`), feel free to reassign it.

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-rc5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sysfsutils depends on:
ii  libc6                         2.7-5      GNU C Library: Shared libraries
ii  libsysfs2                     2.1.0-3    interface library to sysfs

sysfsutils recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to