Comment 2 for bug 184783

Revision history for this message
aldebx (aldebx) wrote : Re: sysfsutils install fails dpkg-configure with 2.6.24 kernel

Sorry for the late response:

$ sudo sh -ex /etc/init.d/sysfsutils start

+ CONFFILE=/etc/sysfs.conf
+ [ -r /etc/sysfs.conf ]
+ echo -n Setting sysfs variables...
Setting sysfs variables...+ sed s/#.*$//; /^[[:space:]]*$/d;
              s/^[[:space:]]*\([^=[:space:]]*\)[[:space:]]*\([^=[:space:]]*\)[[:space:]]*=[[:space:]]*\(.*\)/\1 \2 \3/ /etc/sysfs.conf
+ 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

Please note that sysfsutils actually set the host0 link to min_power, however it simply stopped here, whereas the sysfs.conf I set is this:

# this enables lowest power state for SATA link host nr. 0,1,2
class/scsi_host/host0/link_power_management_policy = min_power
class/scsi_host/host1/link_power_management_policy = min_power
class/scsi_host/host2/link_power_management_policy = min_power
# this enables low power state for Realtek HD Audio HDA audio switch
module/snd_hda_intel/parameters/power_save = 15

In fact, manually checking via 'cat' neither host1, host2 nor the snd_hda_intel module are tweaked accordingly.