Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to autorun commands for radeon power configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pd1986
Apprentice
Apprentice


Joined: 19 Feb 2012
Posts: 290
Location: Paris

PostPosted: Sun Feb 03, 2013 6:02 am    Post subject: how to autorun commands for radeon power configuration Reply with quote

Hello, I want to add a simple script which autoruns just after the booting up the computer. This script will include a command like:
echo low > /sys/class/drm/card0/device/power_profile
But I don't where I should put this file. Thanks in advance.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sun Feb 03, 2013 6:15 am    Post subject: Re: how to autorun commands for radeon power configuration Reply with quote

pd1986 wrote:
Hello, I want to add a simple script which autoruns just after the booting up the computer. This script will include a command like:
echo low > /sys/class/drm/card0/device/power_profile
But I don't where I should put this file. Thanks in advance.

In /etc/local.d suffix your script with .start and to have it stop during shutdown suffix a script with .stop
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
pd1986
Apprentice
Apprentice


Joined: 19 Feb 2012
Posts: 290
Location: Paris

PostPosted: Sun Feb 03, 2013 6:16 am    Post subject: Re: how to autorun commands for radeon power configuration Reply with quote

BillWho wrote:
pd1986 wrote:
Hello, I want to add a simple script which autoruns just after the booting up the computer. This script will include a command like:
echo low > /sys/class/drm/card0/device/power_profile
But I don't where I should put this file. Thanks in advance.

In /etc/local.d suffix your script with .start and to have it stop during shutdown suffix a script with .stop



Thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum