[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
Switch to laptop-mode-tools? How can I do that? I already hade laptop- mode enabled en /etc/default/acpi-support, but nothing changed. [EMAIL PROTECTED]:~$ sudo -s [EMAIL PROTECTED]:~# echo min_power > /sys/class/scsi_host/host2/link_power_management_policy [EMAIL PROTECTED]:~# echo min_power > /sys/class/scsi_host/host3/link_power_management_policy [EMAIL PROTECTED]:~# echo min_power > /sys/class/scsi_host/host4/link_power_management_policy [EMAIL PROTECTED]:~# cat /sys/class/scsi_host/host2/link_power_management_policy max_performance [EMAIL PROTECTED]:~# cat /sys/class/scsi_host/host3/link_power_management_policy max_performance [EMAIL PROTECTED]:~# cat /sys/class/scsi_host/host4/link_power_management_policy max_performance [EMAIL PROTECTED]:~# sh -ex /etc/init.d/sysfsutils start + CONFFILE=/etc/sysfs.conf + [ -r /etc/sysfs.conf ] + . /lib/lsb/init-functions + FANCYTTY= + [ -e /etc/lsb-base-logging.sh ] + . /etc/lsb-base-logging.sh + log_begin_msg Setting sysfs variables... + log_daemon_msg Setting sysfs variables... + [ -z Setting sysfs variables... ] + log_use_usplash + [ n = y ] + type usplash_write + usplash_write TEXT Setting sysfs variables... + log_to_console log_daemon_msg Setting sysfs variables... + [ n != y ] + [ no != yes ] + readlink /proc/self/fd/0 + stdin=/dev/pts/0 + [ /dev/pts/0 != /dev/pts/0 ] + return 0 + log_use_fancy_output + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + [ xxterm != xdumb ] + [ -x /usr/bin/tput ] + [ -x /usr/bin/expr ] + /usr/bin/tput hpa 60 + /usr/bin/tput setaf 1 + [ -z ] + FANCYTTY=1 + true + /usr/bin/tput xenl + /usr/bin/tput cols + COLS=80 + [ 80 ] + [ 80 -gt 6 ] + /usr/bin/expr 80 - 7 + COL=73 + printf * Setting sysfs variables... * Setting sysfs variables... + /usr/bin/expr 80 - 1 + /usr/bin/tput hpa 79 + printf + sed s/#.*$//; /^[[:space:]]*$/d; s/^[[:space:]]*\([^=[:space:]]*\)[[:space:]]*\([^=[:space:]]*\)[[:space:]]*=[[:space:]]*\(.*\)/\1 \2 \3/ /etc/sysfs.conf + read f1 f2 f3 + [ class/scsi_host/host3/link_power_management_policy = mode -a -n min_power -a -n ] + [ class/scsi_host/host3/link_power_management_policy = owner -a -n min_power -a -n ] + [ class/scsi_host/host3/link_power_management_policy -a -n min_power -a -z ] + [ -f /sys/class/scsi_host/host3/link_power_management_policy ] + echo -n min_power + echo min_power + read f1 f2 f3 + log_end_msg 0 + [ -z 0 ] + log_use_usplash + [ n = y ] + type usplash_write + [ 0 -eq 0 ] + usplash_write SUCCESS OK + log_to_console log_end_msg 0 + [ n != y ] + [ no != yes ] + readlink /proc/self/fd/0 + stdin=/dev/pts/0 + [ /dev/pts/0 != /dev/pts/0 ] + return 0 + [ 73 ] + [ -x /usr/bin/tput ] + printf \r + /usr/bin/tput hpa 73 + [ 0 -eq 0 ] + echo [ OK ] [ OK ] + return 0 [EMAIL PROTECTED]:~# Any thoughts? -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
Just an advice, try not leaving any empty line in sysfs.conf. It seems that empty lines now interfere with how the file is parsed. You can always check what's happening with $ sudo sh -ex /etc/init.d/sysfsutils start Anyway I just switched to laptop-mode-tools feature for tweaking Intel SCSI host link power. Latest version has this feature. -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
Hi there I'm having the exact same problem. I'm trying this: sudo -s echo min_power > /sys/class/scsi_host/host3/link_power_management_policy after that, cat /sys/class/scsi_host/host3/link_power_management_policy still return max_performace. My laptop is a Fujitsu-Siemens Esprimo U9200. Any ideas? Anything to try? -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
** Changed in: sysfsutils (Debian) Status: New => Fix Released -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
This bug was fixed in the package sysfsutils - 2.1.0-4 --- sysfsutils (2.1.0-4) unstable; urgency=low * debian/sysfsutils.init: Some attributes in sysfs need a terminating newline, some don't, so try both. Thanks to Stefan Monnier for the patch! (Closes: #459240, LP: #184783) sysfsutils (2.1.0-3) unstable; urgency=low * debian/sysfsutils.init: Fix Default-Stop LSB header to not run in any level, since 'stop' does not do anything. (Closes: #458272, #427033) * debian/sysfsutils.init: Use LSB output commands. (Closes: #457662) * debian/sysfsutils.README.Debian: Fix script name. (Closes: #453312) * Bump Standards-Version (no changes necessary). * debian/control: Replace obsolete ${Source-Version} with ${binary:Version}. * debian/rules: Drop pointless rpath from systool binary. Add chrpath build dependency. -- Martin Pitt <[EMAIL PROTECTED]> Tue, 01 Apr 2008 17:55:53 +0100 ** Changed in: sysfsutils (Ubuntu) Status: Fix Committed => Fix Released -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
** Changed in: sysfsutils (Ubuntu) Status: In Progress => Fix Committed -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
Debian bug has a patch I'll upload to Debian soon. ** Changed in: sysfsutils (Ubuntu) Importance: Undecided => Low Status: Incomplete => In Progress -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
** Changed in: sysfsutils (Debian) Status: Unknown => New -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
** Bug watch added: Debian Bug tracker #459240 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459240 ** Also affects: sysfsutils (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459240 Importance: Unknown Status: Unknown -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
It seems deleting the '-n' in 'echo -n "$f2" > "/sys/$f1"' solves the problem. At least for me it seems to work then. Happy hacking eastern! -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
problem still occurs with Ubuntu Hardy Beta and sysfsutils 2.1.0-2 it still cannot change values on class/scsi_host/host0/link_power_management_policy = min_power -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
Gosh I'm very sorry, I realized too late that in the last comment the output was successful just because there was no link_power_management_policy file in host0 (I do not understand why, but some recent kernel update mush have moved the host having link_power_management_policy from host0 host1 & host2 to host2, host3 & host4). Anyway I corrected one more the report and the but is still there, no way to set those attributes via sysfsutils! (still, however, other tweaks are possible and are done without issues (in devices/system/cpu/cpu0/cpufreq/scaling_governor and module/snd_hda_intel/parameters/power_save ) -- sysfsutils fail to tweak all sysfs.conf directives https://bugs.launchpad.net/bugs/184783 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 184783] Re: sysfsutils fail to tweak all sysfs.conf directives
I updated the description and corrected the Bug title to reflect the new aspects of the bug I've found out: sysfsutils 2.1.0-2 (hardy) 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. $ ** Summary changed: - sysfsutils install fails dpkg-configure with 2.6.24 kernel + sysfsutils fail to tweak all sysfs.conf directives ** Description changed: 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. + 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 - Starting it via the init script simply does nothing, despite displaying - "Setting sysfs variables..." (no "done" string however appears!) + and run sysfsutils only the first scsi_host link is set to min_power. + Checking with 'cat' confirms the following output. - Trying to re-install sysfsutils generates a dpkg-configure error saying + $ sudo sh -ex /etc/init.d/sysfsutils start - /usr/sbin/dpkg-reconfigure: sysfsutils is broken or not fully installed + + 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 + $ - however no way reinstalling it solves the problem (notice that rebooting - with 2.6.22 kernel sysfsutils works again) + 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. + $ ** Description changed: Bina