特殊:Badtitle/NS100:BinaryDriverHowto/Fglrx lowpower:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的6个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/BinaryDriverHowto/ | {{From|https://help.ubuntu.com/community/BinaryDriverHowto/Fglrx_lowpower}} | ||
{{Languages|UbuntuHelp:BinaryDriverHowto/ | {{Languages|UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower}} | ||
This is an ugly hack to get a Radeon video card to run on low power when running off batteries. It saves quite a bit of power, but it's known that enabling low power mode on the fglrx driver can cause "mysterious hangs", so be aware of that. However, when it works, battery life is considerably improved. | This is an ugly hack to get a Radeon video card to run on low power when running off batteries. It saves quite a bit of power, but it's known that enabling low power mode on the fglrx driver can cause "mysterious hangs", so be aware of that. However, when it works, battery life is considerably improved. | ||
This works for me, but YMMV. Use at your own risk. Interested to hear any/all feedback. | This works for me, but YMMV. Use at your own risk. Interested to hear any/all feedback. | ||
第6行: | 第6行: | ||
* First install the fglrx driver by installing the xorg-driver-fglrx package from the Restricted Repository & make sure you can run 'aticonfig --lsp' | * First install the fglrx driver by installing the xorg-driver-fglrx package from the Restricted Repository & make sure you can run 'aticonfig --lsp' | ||
* In /etc/default/fglrx, uncomment/set: | * In /etc/default/fglrx, uncomment/set: | ||
<pre><nowiki>FGLRX_ACPI_SWITCH_POWERSTATES=true | <pre><nowiki> | ||
FGLRX_ACPI_SWITCH_POWERSTATES=true | |||
</nowiki></pre> | </nowiki></pre> | ||
* In /etc/default/acpi-support, uncomment/set: | * In /etc/default/acpi-support, uncomment/set: | ||
<pre><nowiki>ENABLE_LAPTOP_MODE=true | <pre><nowiki> | ||
ENABLE_LAPTOP_MODE=true | |||
</nowiki></pre> | </nowiki></pre> | ||
* Then we need a modified version of /etc/acpi/fglrx-powermode.sh | * Then we need a modified version of /etc/acpi/fglrx-powermode.sh | ||
第22行: | 第24行: | ||
<pre><nowiki> | <pre><nowiki> | ||
#!/bin/bash | #!/bin/bash | ||
~/bin/fglrx-powermode.sh | ~/bin/fglrx-powermode.sh | ||
</nowiki></pre> | </nowiki></pre> | ||
* Set execute permissions on script | * Set execute permissions on script | ||
<pre><nowiki>chmod +x ~/bin/fglrx-powermode.sh | <pre><nowiki> | ||
chmod +x ~/bin/fglrx-powermode.sh | |||
</nowiki></pre> | </nowiki></pre> | ||
* Now if you boot while on battery, ati-config --lsp should indicate the vid card as in low power mode. | * Now if you boot while on battery, ati-config --lsp should indicate the vid card as in low power mode. | ||
<pre><nowiki>aticonfig --lsp | <pre><nowiki> | ||
core/mem [flags] | aticonfig --lsp | ||
core/mem [flags] | |||
----------------- | ----------------- | ||
* 1: 111/111 MHz [low voltage] | * 1: 111/111 MHz [low voltage] | ||
2: 392/209 MHz [default state] | 2: 392/209 MHz [default state] | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Comments === | === Comments === | ||
第49行: | 第54行: | ||
<pre><nowiki> | <pre><nowiki> | ||
. /usr/share/acpi-support/power-funcs | . /usr/share/acpi-support/power-funcs | ||
new_state=1 | new_state=1 | ||
if [ -x /usr/bin/aticonfig ]; then | if [ -x /usr/bin/aticonfig ]; then | ||
for x in /tmp/.X11-unix/*; do | for x in /tmp/.X11-unix/*; do | ||
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` | displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` | ||
getXuser; | getXuser; | ||
if [ x"$XAUTHORITY" != x"" ]; then | if [ x"$XAUTHORITY" != x"" ]; then | ||
export DISPLAY=":$displaynum" | export DISPLAY=":$displaynum" | ||
/usr/bin/aticonfig --set-powerstate=$new_state | /usr/bin/aticonfig --set-powerstate=$new_state | ||
fi | fi | ||
done | done | ||
fi | fi | ||
</nowiki></pre> | </nowiki></pre> |
2010年5月19日 (三) 21:42的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BinaryDriverHowto/Fglrx_lowpower }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/af | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Afrikaans| [[::BinaryDriverHowto/Fglrx lowpower/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ar | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|العربية| [[::BinaryDriverHowto/Fglrx lowpower/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/az | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|azərbaycanca| [[::BinaryDriverHowto/Fglrx lowpower/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/bcc | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|جهلسری بلوچی| [[::BinaryDriverHowto/Fglrx lowpower/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/bg | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|български| [[::BinaryDriverHowto/Fglrx lowpower/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/br | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|brezhoneg| [[::BinaryDriverHowto/Fglrx lowpower/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ca | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|català| [[::BinaryDriverHowto/Fglrx lowpower/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/cs | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|čeština| [[::BinaryDriverHowto/Fglrx lowpower/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/de | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Deutsch| [[::BinaryDriverHowto/Fglrx lowpower/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/el | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Ελληνικά| [[::BinaryDriverHowto/Fglrx lowpower/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/es | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|español| [[::BinaryDriverHowto/Fglrx lowpower/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/fa | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|فارسی| [[::BinaryDriverHowto/Fglrx lowpower/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/fi | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|suomi| [[::BinaryDriverHowto/Fglrx lowpower/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/fr | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|français| [[::BinaryDriverHowto/Fglrx lowpower/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/gu | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|ગુજરાતી| [[::BinaryDriverHowto/Fglrx lowpower/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/he | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|עברית| [[::BinaryDriverHowto/Fglrx lowpower/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/hu | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|magyar| [[::BinaryDriverHowto/Fglrx lowpower/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/id | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Bahasa Indonesia| [[::BinaryDriverHowto/Fglrx lowpower/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/it | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|italiano| [[::BinaryDriverHowto/Fglrx lowpower/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ja | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|日本語| [[::BinaryDriverHowto/Fglrx lowpower/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ko | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|한국어| [[::BinaryDriverHowto/Fglrx lowpower/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ksh | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Ripoarisch| [[::BinaryDriverHowto/Fglrx lowpower/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/mr | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|मराठी| [[::BinaryDriverHowto/Fglrx lowpower/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ms | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Bahasa Melayu| [[::BinaryDriverHowto/Fglrx lowpower/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/nl | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Nederlands| [[::BinaryDriverHowto/Fglrx lowpower/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/no | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|norsk| [[::BinaryDriverHowto/Fglrx lowpower/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/oc | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|occitan| [[::BinaryDriverHowto/Fglrx lowpower/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/pl | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|polski| [[::BinaryDriverHowto/Fglrx lowpower/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/pt | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|português| [[::BinaryDriverHowto/Fglrx lowpower/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ro | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|română| [[::BinaryDriverHowto/Fglrx lowpower/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/ru | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|русский| [[::BinaryDriverHowto/Fglrx lowpower/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/si | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|සිංහල| [[::BinaryDriverHowto/Fglrx lowpower/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/sq | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|shqip| [[::BinaryDriverHowto/Fglrx lowpower/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/sr | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|српски / srpski| [[::BinaryDriverHowto/Fglrx lowpower/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/sv | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|svenska| [[::BinaryDriverHowto/Fglrx lowpower/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/th | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|ไทย| [[::BinaryDriverHowto/Fglrx lowpower/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/tr | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Türkçe| [[::BinaryDriverHowto/Fglrx lowpower/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/vi | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|Tiếng Việt| [[::BinaryDriverHowto/Fglrx lowpower/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/yue | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|粵語| [[::BinaryDriverHowto/Fglrx lowpower/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/zh | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|中文| [[::BinaryDriverHowto/Fglrx lowpower/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/zh-hans | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|中文(简体)| [[::BinaryDriverHowto/Fglrx lowpower/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower | {{#if: | :}}BinaryDriverHowto/Fglrx lowpower}}/zh-hant | • {{#if: UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|中文(繁體)| [[::BinaryDriverHowto/Fglrx lowpower/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:BinaryDriverHowto/Fglrx_lowpower|:BinaryDriverHowto/Fglrx lowpower|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :BinaryDriverHowto/Fglrx lowpower/zh | | {{#ifexist: BinaryDriverHowto/Fglrx lowpower/zh | | {{#ifeq: {{#titleparts:BinaryDriverHowto/Fglrx lowpower|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:BinaryDriverHowto/Fglrx lowpower|1|-1|}} | zh | | }}
This is an ugly hack to get a Radeon video card to run on low power when running off batteries. It saves quite a bit of power, but it's known that enabling low power mode on the fglrx driver can cause "mysterious hangs", so be aware of that. However, when it works, battery life is considerably improved. This works for me, but YMMV. Use at your own risk. Interested to hear any/all feedback. The following was written for Ubuntu 6.06 (Dapper Drake).
- First install the fglrx driver by installing the xorg-driver-fglrx package from the Restricted Repository & make sure you can run 'aticonfig --lsp'
- In /etc/default/fglrx, uncomment/set:
FGLRX_ACPI_SWITCH_POWERSTATES=true
- In /etc/default/acpi-support, uncomment/set:
ENABLE_LAPTOP_MODE=true
- Then we need a modified version of /etc/acpi/fglrx-powermode.sh
(if the script doesn't exist, it means you haven't got the fglrx driver installed)
mkdir ~/bin cat /etc/acpi/fglrx-powermode.sh | sed 's/su \$user -c \"\(.*\)\"/\1/' > ~/bin/fglrx-powermode.sh chmod +x ~/bin/fglrx-powermode.sh
- Next, edit/create ~/.gnomerc to call the new script (eg):
sample ~/.gnomerc
#!/bin/bash ~/bin/fglrx-powermode.sh
- Set execute permissions on script
chmod +x ~/bin/fglrx-powermode.sh
- Now if you boot while on battery, ati-config --lsp should indicate the vid card as in low power mode.
aticonfig --lsp core/mem [flags] ----------------- * 1: 111/111 MHz [low voltage] 2: 392/209 MHz [default state]
Comments
Worked for me on my Dell D610. On dapper, /etc/acpi
has battery.d
and ac.d
directories. The scripts in here are sourced (not executed) by the power.sh
script on switching of power modes. In most cases, there is no difference between sourcing and executing. I just linked the fglrx script into the two directories (after editing the files in /etc/default
):
cd /etc/acpi/battery.sh sudo ln -s ../fglrx_powermode.sh cd ../ac.d sudo ln -s ../fglrx_powermode.sh
I consider this a better solution than making a script for gnome to run.
-- JPKotta
I don't think this will set low power mode at boot up.
-- fz
I somehow lost the fglrx_powermode.sh script. So I reinvented the wheel and came up with this script which I put directly in /etc/acpi/{battery.d,ac.d}/ati.sh
. The 'new_state=' line is obviously different in the ac.d vs. battery.d scripts.
. /usr/share/acpi-support/power-funcs new_state=1 if [ -x /usr/bin/aticonfig ]; then for x in /tmp/.X11-unix/*; do displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` getXuser; if [ x"$XAUTHORITY" != x"" ]; then export DISPLAY=":$displaynum" /usr/bin/aticonfig --set-powerstate=$new_state fi done fi
If you want to run it at boot time, put a symlink to /etc/acpi/power.sh
named something like /etc/rc2.d/S99powerstate
(I have not tested this).
--jpkotta