特殊:Badtitle/NS100:BinaryDriverHowto/Fglrx lowpower
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/BinaryDriverHowto/Fglrx%20lowpower }} |
点击翻译: |
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