Sunday, 3 July 2011

Dell Studio 1558 fan problems

So we have a dell studio 1558. It's a beast of a laptop, quad core, radeon hd 5400, and in windows land can play quite a few games at a respectable fps.

Now therein lies the problem - this is one hell of a power hungry laptop

The Debian install has been a bit of a nightmare: the fan was on all the time, frequent hard lockups especially when on battery power and add to that the flaky broadcom wifi drivers. It has been an interesting year with this beast.

The only stable configuration seemed to be to run the laptop with the closed source fglrx and leave the laptop plugged into the wall. Anything else was tempting fate.

Recently kernel 2.6.39 hitting testing I though I would try the open source radeon KMS drivers. Last time there was no power control so the gpu was running hot so the fan was always flat out. Installing the flgrx drivers fixed the overheating problem, but the laptop was still quite flakey.

I uninstalled the fglrx drivers and enabled KMS by changing /ect/modprobe.d/radeon-kms.conf to:
options radeon modeset=1


I rebooted and once again got the dreaded maxed out fan. This time I knew it was most probably the kernel running the gpu at maximum speed. A quick look at the following (mount -t debugfs debugfs /sys/kernel/debug/,cat /sys/kernel/debug/dri/0/radeon_pm_info) showed:

default engine clock: 750000 kHz
current engine clock: 750000 kHz
default memory clock: 800000 kHz
current memory clock: 800000 kHz
voltage: 900 mV
PCIE lanes: 16

The gpu was running flat out. A quick google later gave me the following commands to stick into my rc.local:
echo profile > /sys/class/drm/card0/device/power_method
echo low > /sys/class/drm/card0/device/power_profile
Now cat /sys/kernel/debug/dri/0/radeon_pm_info gives:
default engine clock: 750000 kHz
current engine clock: 156990 kHz
default memory clock: 800000 kHz
current memory clock: 199960 kHz
voltage: 900 mV
PCIE lanes: 16
Now the computer seems to be running a lot cooler - I have yet to get it to crash on battery power and if I do have any problems I will hopefully get some help. I did a quick test with fullscreen flash video and there was no significant screen fps problems to hopefully the majority of our problems with this machine are over.

I'm going to do a bit more googling to see if I can reduce the number of PCIE lanes or even the voltage but for the time being at least I have a useable laptop.

The only unsolvable problem seems to be if I try and change the brightness too quickly I get a total crash....

No comments:

Post a Comment