Activity log for bug #184783

Date Who What changed Old value New value Message
2008-01-21 10:28:28 aldebx bug added bug
2008-02-06 15:47:08 Martin Pitt sysfsutils: status New Incomplete
2008-02-06 15:47:16 Martin Pitt sysfsutils: assignee pitti
2008-02-21 16:35:58 aldebx description Binary package hint: sysfsutils Although libsysfs and sysfsutils work flawlessly on 2.6.22 kernel, with the 2.6.24 one I cannot have /etc/init.d/sysfsutils running. Starting it via the init script simply does nothing, despite displaying "Setting sysfs variables..." (no "done" string however appears!) Trying to re-install sysfsutils generates a dpkg-configure error saying /usr/sbin/dpkg-reconfigure: sysfsutils is broken or not fully installed however no way reinstalling it solves the problem (notice that rebooting with 2.6.22 kernel sysfsutils works again) Binary package hint: sysfsutils if I set sysfs.conf as follows # 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 and run sysfsutils only the first scsi_host link is set to min_power. Checking with 'cat' confirms the following output. $ 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 $ Sysfsutils manages to give a successful output only when sysfs.conf is set with only one scsi_host link tweak. As far as I managed to understand the presence of other tweaks (for instance tweaks to cpu governor and sound card) did not affect this bug. The only blocking tweak is the scsi_host link. All tweaks that in sysfs.conf follow the first scsi_host link directive are ignored. However if they are put above to be executed first they are carried out fine. Changing the first scsi_host link doesn't positively affect the bug (host0, host1 and so on always cause the bug to appear). 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 unknown attribute class/scsi_host/host0/link_power_management_policy unknown attribute class/scsi_host/host0/link_power_management_policy + read f1 f2 f3 + echo done. done. $
2008-02-21 16:35:58 aldebx title sysfsutils install fails dpkg-configure with 2.6.24 kernel sysfsutils fail to tweak all sysfs.conf directives
2008-02-21 16:49:31 aldebx description Binary package hint: sysfsutils if I set sysfs.conf as follows # 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 and run sysfsutils only the first scsi_host link is set to min_power. Checking with 'cat' confirms the following output. $ 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 $ Sysfsutils manages to give a successful output only when sysfs.conf is set with only one scsi_host link tweak. As far as I managed to understand the presence of other tweaks (for instance tweaks to cpu governor and sound card) did not affect this bug. The only blocking tweak is the scsi_host link. All tweaks that in sysfs.conf follow the first scsi_host link directive are ignored. However if they are put above to be executed first they are carried out fine. Changing the first scsi_host link doesn't positively affect the bug (host0, host1 and so on always cause the bug to appear). 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 unknown attribute class/scsi_host/host0/link_power_management_policy unknown attribute class/scsi_host/host0/link_power_management_policy + read f1 f2 f3 + echo done. done. $ Binary package hint: sysfsutils if I set sysfs.conf as follows # this enables lowest power state for SATA link host nr. 0,1,2 class/scsi_host/host2/link_power_management_policy = min_power class/scsi_host/host3/link_power_management_policy = min_power class/scsi_host/host4/link_power_management_policy = min_power and run sysfsutils none of the scsi_host link are set to min_power. Checking with 'cat' confirms the following output. $ 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/host2/link_power_management_policy = mode -a -n min_power -a -n ] + [ class/scsi_host/host2/link_power_management_policy = owner -a -n min_power -a -n ] + [ class/scsi_host/host2/link_power_management_policy -a -n min_power -a -z ] + [ -f /sys/class/scsi_host/host0/link_power_management_policy ] + echo -n min_power $ ls -l /sys/class/scsi_host/host3/link_power_management_policy -rw-r--r-- 1 root root 0 2008-02-21 17:43 /sys/class/scsi_host/host3/link_power_management_policy ls -l /sys/class/scsi_host/host2/link_power_management_policy -rw-r--r-- 1 root root 0 2008-02-21 17:45 /sys/class/scsi_host/host2/link_power_management_policy ls -l /sys/class/scsi_host/host4/link_power_management_policy -rw-r--r-- 1 root root 4096 2008-02-21 17:42 /sys/class/scsi_host/host4/link_power_management_policy cat /sys/class/scsi_host/host2/link_power_management_policy max_performance and so on for the other two. As far as I managed to understand the presence of other tweaks (for instance tweaks to cpu governor and sound card) did not affect this bug. The only blocking tweak is the scsi_host link. All tweaks that in sysfs.conf follow the first scsi_host link directive are ignored. However if they are put above to be executed first they are carried out fine. Changing the first scsi_host link doesn't positively affect the bug (host2, host3 and so on always cause the bug to appear).
2008-03-26 10:46:19 Andreas Mohr bug assigned to sysfsutils (Debian)
2008-03-27 11:35:02 Bug Watch Updater sysfsutils: status Unknown New
2008-03-31 11:35:25 Martin Pitt sysfsutils: importance Undecided Low
2008-03-31 11:35:25 Martin Pitt sysfsutils: status Incomplete In Progress
2008-04-01 14:56:18 Martin Pitt sysfsutils: status In Progress Fix Committed
2008-04-01 16:56:14 Launchpad Janitor sysfsutils: status Fix Committed Fix Released
2008-04-28 23:09:18 Bug Watch Updater sysfsutils: status New Fix Released