Ask Your Question

ATI power profile command with /etc/rc.d/rc.local

asked 2012-02-19 08:16:47 -0500

Peter Roos gravatar image


I have a HP laptop with a powerful ATI videocard. Since Fedora16 doesn't work well with fglrx, I decided to work with the default one. This does run the card at 100% (fans are constantly loud). I found a command that solves this problem:

sudo su echo low > /sys/class/drm/card0/device/power_profile

In order not to type this in every time I boot the laptop, I was advised to create a file in /etc/rc.d/rc.local and add this line, than make the file executable. I have done this, but it seems that this method does not work. I have to open the terminal, and apply the command, than it works again.

What have I done wrong? Why is this workaround don't work?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-02-19 09:01:12 -0500

ztank1013 gravatar image

updated 2012-02-19 15:21:00 -0500

Fedora 16 relese notes say:

The /etc/rc.d/rc.local local customization script is no longer included by default. Administrators who need this functionality merely have to create this file, make it executable, and it will run on boot. Upgrades are not affected by this change.

Is your rc.local executable? if not make it executable

sudo chmod a+x /etc/rc.d/rc.local

and try again.

edit: Be also sure to add at the very top of the file the shebang line:


another thing you should be sure of is to add a trailing line like this:

exit 0

because the booting process always expects this script to end successfully and return a 0 exit value.

edit2: Although you can add any commands you like to rc.local, it is best to run them in the background; that way, if they hang, they will not stop the boot process.

edit flag offensive delete link more


Additionally, you need a #!/bin/sh at the top of the file

nirik gravatar imagenirik ( 2012-02-19 12:04:15 -0500 )edit

answered 2012-06-23 15:57:13 -0500

Tosho gravatar image

Please, add an Answer how did you solve the problem!

edit flag offensive delete link more

Question Tools



Asked: 2012-02-19 08:16:47 -0500

Seen: 2,091 times

Last updated: Jun 23 '12