2

So when I log on, I go to a terminal and type

echo "mid" | sudo tee /sys/class/drm/card0/device/power_profile 

which means my laptop works without the fan being constantly ON.

It would be great it I didn't have to do this; I would like this to be done for me, and without me having to enter the password for sudo.

artfulrobot
  • 8,733

4 Answers4

2

Stick it in /etc/rc.local, before the exit statement.

Oli
  • 299,380
1

I tried the rc.local solution and found it not working for some reason (like other common solutions as described here). So I'm posting an alternative solution using pm-utils. I'm not sure if it is the best way to do it (I'm new to Linux) but it does what is necessary: Set the radeon power_profile to low on boot and retain that setting after suspend-resume.

Step 1: Create hook

gksu gedit /usr/lib/pm-utils/power.d/radeon-power_profile

Step 2: Fill in the desired setting

#!/bin/sh

echo profile > /sys/class/drm/card0/device/power_method
echo low > /sys/class/drm/card0/device/power_profile

exit 0

Step 3: Make it executable

sudo chmod +x /usr/lib/pm-utils/power.d/radeon-power_profile

That's it :)

0

I had try it but doesn't work for me echo "low" | sudo password /sys/class/drm/card0/device/power_profile or echo "low" > /sys/class/drm/card0/device/power_profile when I log in and enter cat /sys/class/drm/card0/device/power_profile still gives me "high"

running - 12.04 x64 , 3.2.0-25-generic

Tosho
  • 548
0

alt-f2:

gksudo gedit /etc/init.d/ati-power-save

write this in ati-power-save file:

#!/bin/sh

# ATI power save
echo profile > /sys/class/drm/card0/device/power_method
echo low > /sys/class/drm/card0/device/power_profile

save and run these commands:

sudo chmod +x /etc/init.d/ati-power-save 
sudo update-rc.d ati-power-save defaults 99

as described in here

user18107
  • 101