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