as described here dell 7520 (inspiron 15R SE), fan on full speed on 12.04, 12.10, 13.04, i still have problems with my energy comsumption and fan noise under ubuntu 13.04. i could reduce it to a minimum though with the following entries in /etc/rc.local like described How to permanently switch off discrete graphic card?
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
echo "min_power" | sudo tee /sys/class/scsi_host/host*/link_power_management_policy
the first command reduces battery consumption, the second one reduces fan noise. the entry in the rc.local makes sure to run the commands at startup. so far, so good.
from time to time it is necessary to run the 2nd command again to silence the fans, for example after plugin the ac power or after resume. also after resume the discrete graphics card is running again.
my question now:
- how can i make script or button to run the two commands as user with root rights without doing all that typing work in a terminal all the time, as a shortcut for example?
- is there a more elegant solution so solve that issue?
By the way, if that is of any help. it seems like the fans start spinning immediately and together with minimum rise of cpu usage