[opensuse-xfce] fan noise after resuming from suspend
hello everyone, I have found that the terrible noise of my cpu fan. It works well until after suspending. (sleep by xfce-power-manager or press the sleep button) I examined and compared the values of /sys/devices/virtual/thermal/cooling_device{3,4,5,6,7}/cur_state, and found their values are changed after resuming from suspend. so I wrote a simple script and hoped it to be run after each suspend. ========= for i in /sys/devices/virtual/thermal/cooling_device{3,4,5,6,7}/cur_state; do echo $i ; echo 0> $i; done========= But I wonder how can i trigger it after resuming in xfce environment. thanks.
Hi, * Xiang Liu <xlml@outlook.com> [2013-11-18 04:46]:
hello everyone,
I have found that the terrible noise of my cpu fan. It works well until after suspending. (sleep by xfce-power-manager or press the sleep button)
I examined and compared the values of /sys/devices/virtual/thermal/cooling_device{3,4,5,6,7}/cur_state, and found their values are changed after resuming from suspend.
so I wrote a simple script and hoped it to be run after each suspend. [...]
But I wonder how can i trigger it after resuming in xfce environment.
Xfce has no special facilities for that, however you should be able to execute your script by creating a pm-utils hook, see http://old-en.opensuse.org/Pm-utils#Creating_your_own_hooks -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-xfce+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-xfce+owner@opensuse.org
Hi,
I have found that the terrible noise of my cpu fan. It works well until after suspending. (sleep by xfce-power-manager or press the sleep button)
I examined and compared the values of /sys/devices/virtual/thermal/cooling_device{3,4,5,6,7}/cur_state, and found their values are changed after resuming from suspend.
so I wrote a simple script and hoped it to be run after each suspend. [...]
But I wonder how can i trigger it after resuming in xfce environment.
Xfce has no special facilities for that, however you should be able to execute your script by creating a pm-utils hook, see http://old-en.opensuse.org/Pm-utils#Creating_your_own_hooks
You can also achieve something similar by dropping in a script in /usr/lib/systemd/system-sleep/ See systemd-suspend.service(8) for details. Greets Marcus
Hi,
* Xiang Liu <xlml@outlook.com> [2013-11-18 04:46]:
hello everyone,
I have found that the terrible noise of my cpu fan. It works well until after suspending. (sleep by xfce-power-manager or press the sleep button)
I examined and compared the values of /sys/devices/virtual/thermal/cooling_device{3,4,5,6,7}/cur_state, and found their values are changed after resuming from suspend.
so I wrote a simple script and hoped it to be run after each suspend. [...]
But I wonder how can i trigger it after resuming in xfce environment.
Xfce has no special facilities for that, however you should be able to execute your script by creating a pm-utils hook, see http://old-en.opensuse.org/Pm-utils#Creating_your_own_hooks
thanks, In fact, the full story is that I have tested the pm-utils hook before I asked help here. It works only if pm-suspend was used to suspend the system. but the /usr/lib/systemd/system-sleep way works.
-- Guido Berhoerster --
thanks you and marcus. you are both most kind. N�����r��y隊Z)z{.��_qﮞ˛���m�)z{.��+�:�{Zr�az�'z��j)h���DZ}Ǿ� ޮ�^�ˬz��
participants (3)
-
Guido Berhoerster
-
Marcus Moeller
-
Xiang Liu