This is new code: #!/bin/sh # # 99funguj: sprav co se da
case "$1" in hibernate|suspend) # Stopping is not required. ;; thaw|resume) # sprav to for x in /proc/acpi/fan/*; do if [ -f "$x/state" ] && [ "`grep on $x/state`" ]; then echo -n 3 > $x/state; echo -n 0 > $x/state; fi done for x in /proc/acpi/fan/*; do if [ -f "$x/state" ] && [ "`grep off $x/state`" ]; then echo "echo -n 0 > $x/state;" >> /tmp/fanstate0 echo "echo -n 3 > $x/state;" >> /tmp/fanstate3 fi done sh /tmp/fanstate0 sleep 1 sh /tmp/fanstate3 rm /tmp/fanstate0 rm /tmp/fanstate3 ;; *) exit $NA ;; esac -- Laptop Fan always on after resume from suspend to RAM https://bugs.launchpad.net/bugs/77370 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