From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C2BD61381F3 for ; Sun, 18 Nov 2012 14:18:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E75721C0BD; Sun, 18 Nov 2012 14:17:47 +0000 (UTC) Received: from vergina.dyndns.org (cust-218-222.on4.ontelecoms.gr [92.118.218.222]) by pigeon.gentoo.org (Postfix) with ESMTP id B4E8C21C0B7 for ; Sun, 18 Nov 2012 14:15:40 +0000 (UTC) Received: from [192.168.0.1] (viper.vergina.dyndns.org [192.168.0.1]) by viper.vergina.dyndns.org (Postfix) with ESMTP id B1A657B3; Sun, 18 Nov 2012 16:15:39 +0200 (EET) Message-ID: <50A8ED8B.4060300@asyr.hopto.org> Date: Sun, 18 Nov 2012 16:15:39 +0200 From: Thanasis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121104 Thunderbird/10.0.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org CC: Mick Subject: Re: [gentoo-user] How to save a change to radeon power profile References: <201211181237.38166.michaelkintzios@gmail.com> <50A8ED20.7090201@asyr.hopto.org> In-Reply-To: <50A8ED20.7090201@asyr.hopto.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 43963248-e499-4cba-a362-7e016f760656 X-Archives-Hash: 1c81373e40af2e8c32165800d0f28b52 on 11/18/2012 04:13 PM Thanasis wrote the following: > on 11/18/2012 02:37 PM Mick wrote the following: >> I would like to check the difference between the power management profile >> settings of 'default' and 'auto' for my radeon card. I can change it from >> default with: >> >> # echo auto > /sys/class/drm/card0/device/power_profile >> >> # cat /sys/class/drm/card0/device/power_profile >> auto >> >> but, upon reboot it has reverted back to 'default' :-( >> >> >> I looked under sysctl but can't find anything. How can I set the profile to >> 'auto' to survive between reboots? > > create a script in /etc/local.d as root and make it executable : > > cd /etc/local.d > cat > set_radeon_to_auto > echo auto > /sys/class/drm/card0/device/power_profile > (CTRL-D) > chmod +x set_radeon_to_auto Correction: the name of the script must end in .start like: set_radeon_to_auto.start