You are not logged in.

#1 2013-04-18 19:48:51

koshak
Member
Registered: 2013-03-13
Posts: 35

{WORKAROUND} Maximum fan speed after resume from sleep

Hello!

When waking up, fan on my laptop go crazy https://bbs.archlinux.org/viewtopic.php?id=156681

Now I have to manually do #  for i in {0..9};do echo 0 > /sys/class/thermal/cooling_device$i/cur_state; done
It resets the state of all cooling devices, including the display backlight level.

The question is how can I automate this operation?

Thanx.

Last edited by koshak (2013-04-22 08:49:08)

Offline

#2 2013-04-19 14:25:08

hrkfdn
Member
Registered: 2012-08-29
Posts: 14

Re: {WORKAROUND} Maximum fan speed after resume from sleep

You could write a script and put it in /etc/pm/sleep.d. There is a 90alsa script on my system which explains how you can make it run on wakeup.

I'm having the same problem by the way. Are you on a SandyBridge system with Intel GPU? I will try the workaround next time it happens to me..

However my system is heating up as well. Does that happen to you, too?

Last edited by hrkfdn (2013-04-19 14:25:55)

Offline

#3 2013-04-20 00:07:36

hobarrera
Member
From: The Netherlands
Registered: 2011-04-12
Posts: 355
Website

Re: {WORKAROUND} Maximum fan speed after resume from sleep

As well as that workaround, you should report the issue so it gets fixed upstream at some point.

Offline

#4 2013-04-20 13:10:05

koshak
Member
Registered: 2013-03-13
Posts: 35

Re: {WORKAROUND} Maximum fan speed after resume from sleep

hrkfdn, no, that's not SandyBridge. GPU is Intel GM965. As for heating, I haven't noticed one. The normal temp of my U7700 is about 40 to 55°C. What's yours after resume?

hobarrera, upstream of what? systemd? Or kernel?

Offline

#5 2013-04-20 13:42:33

hobarrera
Member
From: The Netherlands
Registered: 2011-04-12
Posts: 355
Website

Re: {WORKAROUND} Maximum fan speed after resume from sleep

koshak wrote:

hrkfdn, no, that's not SandyBridge. GPU is Intel GM965. As for heating, I haven't noticed one. The normal temp of my U7700 is about 40 to 55°C. What's yours after resume?

hobarrera, upstream of what? systemd? Or kernel?

Kernel, IMO, since it's the actual kernel that does the hibernating and the kernel that controls fan speeds as well.

Offline

#6 2013-04-22 08:47:31

koshak
Member
Registered: 2013-03-13
Posts: 35

Re: {WORKAROUND} Maximum fan speed after resume from sleep

As a workaround I made /etc/fans.sh:

#!/bin/sh
# fan spindown controller script
for i in {0..9};do echo 0 > /sys/class/thermal/cooling_device$i/cur_state; done

and  /etc/systemd/system/root-resume.service:

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=simple
ExecStart=/etc/fans.sh

[Install]
WantedBy=suspend.target

And then just # systemctl enable root-resume

For those who wants to dig deep:
https://bugzilla.redhat.com/show_bug.cgi?id=895276
https://lkml.org/lkml/2012/12/4/428

Offline

Board footer

Powered by FluxBB