Fórum Ubuntu CZ/SK

Ostatní => Tipy a triky pro Linux => Téma založeno: Veselá#Houba 22 Října 2007, 11:34:14

Název: zásadní úspora energie na notebooku s Intel procesorem
Přispěvatel: Veselá#Houba 22 Října 2007, 11:34:14
Zdravíčko vespolek. Trochu jsem hloubal nad tím, jak zvýšit výdrž svého ntb a přišel jsem na toto:
OZKOUŠENO POUZE PRO 7.04 FEISTY

Použijte utilitku PowerTOP (http://www.linuxpowertop.org/download.php (http://www.linuxpowertop.org/download.php)) od Intelu.
k 21.10.07 verze 1.8
Kód: [Vybrat]
wget http://www.linuxpowertop.org/download/powertop-1.8.tar.gz
tar xzf powertop*
rm powertop*.tar.gz
cd powertop*
make
a potom spusťte
Kód: [Vybrat]
sudo ./powertopPak už jen sledujte s čím souhlasíte a nechte aplikovat nebo ne.

pokud dostanete hlášku:
Kód: [Vybrat]
/usr/bin/ld: cannot find -lncurseswproveďte
Kód: [Vybrat]
sudo apt-get install libncursesw5-dev
Abyste mohli použít většinu vychytávek, musíte nainstalovat kernel z Gutsy Gibbon. Já jsem postupoval podle návodu na http://ubuntuforums.org/showthread.php?t=511974 (http://ubuntuforums.org/showthread.php?t=511974) v sekci MANUAL. Nebojte se, je to jednoduché, jenom kopírujete příkazy. Jak autor varuje: NEDĚLEJTE BĚHEM TÉTO ČINNOSTI NIC JINÉHO CO SE TÝČE UPGRADE!!!
Váš aktuální kernel se nikam neztratí, takže prakticky nemáte co ztratit :)

Kdyby vám systém nechtěl z nějakého důvodu nabootovat, tak před zavedením stiskněte "Esc" a vyberte starší kernel.
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: tom.i (Duriel) 23 Října 2007, 12:14:46
No a bodlo by vedet jestli to opravdu funguje nebo je to jenom nejaka silenost (zbytecna).
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: Cepela 23 Října 2007, 13:01:47
Take by me docela zajimalo jake jsou s tim zkusenosti, protoze moje rok stara baterka v ntb dell vydrzi tak cca 10min.
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: pinpet 23 Října 2007, 14:16:18
gusty to ma v repozitaroch.
co sa tyka uspory, tak som to zatial nejako extra netestoval, ale da sa tym vypnut par veci
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: Veselá#Houba 24 Října 2007, 10:17:25
No úspora je celkem znatelná, protože powerTop ukazuje i aktuální odběr z baterie a ten přitom klesl u mě asi o 1/6, což mi přijde dost zásadní, když se cení každá minuta.

pinpet:
S Gutsy si záměrně dávám na čas, protože co jsem koukal na testy spotřeby třeba na digg.com tak Gutsy dopadlo hůř než Feisty.
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: pinpet 24 Října 2007, 23:49:38
mozem potvrdit. dnes pri ceste vlakom nevydrzal ani 2 hod. a to som pozeral pdf, pocuval hudbu a jas bol stiahnuty
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: Radius 29 Října 2007, 11:24:50
no na mem booku Gutsy vydrzi mnohem dele nez XP (tak 20 min pri snizeni frekvence o 50 procent). Gutsy tak 30 min (tez -50 procent cpu), Feisty bohuzel nevim... a pouzivam Xubuntu. Baterka je vprd... to vim
Název: Další zdroje
Přispěvatel: Veselá#Houba 19 Listopadu 2007, 08:53:54
Objevil jsem podobně zaměřený článek v angličtině, pokud by měl nekdo zájem...
http://www.ubuntugeek.com/saving-power-on-intel-hardware-using-powertop.html (http://www.ubuntugeek.com/saving-power-on-intel-hardware-using-powertop.html)
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: .:Šimi:. 18 Prosince 2007, 23:38:36
Ahoj, se omlouvam, teprve zacinam s ubuntu, ale kdyz chci zadat
Citace
sudo ./powertop
Tak mi to pise command not found. :(
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: b.art 19 Prosince 2007, 12:21:24
Pokud mate nainstalovany balicek powertop tak zkuste
Kód: [Vybrat]
sudo powertop
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: .:Šimi:. 19 Prosince 2007, 19:33:52
Ja se znovu omlouvam, teprve s ubuntu začínam. Úspora energie by se hodila, ale když dam příkaz make, tak to vypíše tohle:(

jindra@Atlant-ubuntu:~/powertop-1.9$ make
cc -Os -g -Wall  -W -Wshadow   -c -o display.o display.c
display.c:32:21: error: ncurses.h: No such file or directory
display.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
display.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
display.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
display.c:41: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
display.c:42: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
display.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
display.c:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
display.c: In function ‘cleanup_curses’:
display.c:51: warning: implicit declaration of function ‘endwin’
display.c: In function ‘zap_windows’:
display.c:56: error: ‘title_bar_window’ undeclared (first use in this function)
display.c:56: error: (Each undeclared identifier is reported only once
display.c:56: error: for each function it appears in.)
display.c:57: warning: implicit declaration of function ‘delwin’
display.c:60: error: ‘cstate_window’ undeclared (first use in this function)
display.c:64: error: ‘wakeup_window’ undeclared (first use in this function)
display.c:68: error: ‘acpi_power_window’ undeclared (first use in this function)
display.c:72: error: ‘timerstat_window’ undeclared (first use in this function)
display.c:76: error: ‘suggestion_window’ undeclared (first use in this function)
display.c:80: error: ‘status_bar_window’ undeclared (first use in this function)
display.c: In function ‘setup_windows’:
display.c:94: warning: implicit declaration of function ‘getmaxyx’
display.c:94: error: ‘stdscr’ undeclared (first use in this function)
display.c:98: error: ‘title_bar_window’ undeclared (first use in this function)
display.c:98: warning: implicit declaration of function ‘subwin’
display.c:99: error: ‘cstate_window’ undeclared (first use in this function)
display.c:100: error: ‘wakeup_window’ undeclared (first use in this function)
display.c:101: error: ‘acpi_power_window’ undeclared (first use in this function)
display.c:102: error: ‘timerstat_window’ undeclared (first use in this function)
display.c:105: error: ‘suggestion_window’ undeclared (first use in this function)
display.c:106: error: ‘status_bar_window’ undeclared (first use in this function)
display.c:111: warning: implicit declaration of function ‘werase’
display.c:112: warning: implicit declaration of function ‘refresh’
display.c: In function ‘initialize_curses’:
display.c:117: warning: implicit declaration of function ‘initscr’
display.c:118: warning: implicit declaration of function ‘start_color’
display.c:119: warning: implicit declaration of function ‘keypad’
display.c:119: error: ‘stdscr’ undeclared (first use in this function)
display.c:119: error: ‘TRUE’ undeclared (first use in this function)
display.c:120: warning: implicit declaration of function ‘nonl’
display.c:121: warning: implicit declaration of function ‘cbreak’
display.c:122: warning: implicit declaration of function ‘noecho’
display.c:123: warning: implicit declaration of function ‘curs_set’
display.c:124: warning: implicit declaration of function ‘use_default_colors’
display.c:126: warning: implicit declaration of function ‘init_pair’
display.c:126: error: ‘COLOR_WHITE’ undeclared (first use in this function)
display.c:126: error: ‘COLOR_BLACK’ undeclared (first use in this function)
display.c:128: error: ‘COLOR_RED’ undeclared (first use in this function)
display.c:130: error: ‘COLOR_YELLOW’ undeclared (first use in this function)
display.c:131: error: ‘COLOR_GREEN’ undeclared (first use in this function)
display.c:132: error: ‘COLOR_BLUE’ undeclared (first use in this function)
display.c: In function ‘show_title_bar’:
display.c:142: warning: implicit declaration of function ‘wattrset’
display.c:142: error: ‘title_bar_window’ undeclared (first use in this function)
display.c:142: warning: implicit declaration of function ‘COLOR_PAIR’
display.c:143: warning: implicit declaration of function ‘wbkgd’
display.c:146: warning: implicit declaration of function ‘mvwprintw’
display.c:148: warning: implicit declaration of function ‘wrefresh’
display.c:150: error: ‘status_bar_window’ undeclared (first use in this function)
display.c:156: warning: implicit declaration of function ‘wattron’
display.c:156: error: ‘A_REVERSE’ undeclared (first use in this function)
display.c:158: warning: implicit declaration of function ‘wattroff’
display.c: In function ‘show_cstates’:
display.c:167: error: ‘cstate_window’ undeclared (first use in this function)
display.c:171: error: ‘A_BOLD’ undeclared (first use in this function)
display.c: In function ‘show_acpi_power_line’:
display.c:195: error: ‘acpi_power_window’ undeclared (first use in this function)
display.c: In function ‘show_wakeups’:
display.c:213: error: ‘wakeup_window’ undeclared (first use in this function)
display.c:228: error: ‘A_BOLD’ undeclared (first use in this function)
display.c: In function ‘show_timerstats’:
display.c:236: error: ‘timerstat_window’ undeclared (first use in this function)
display.c:244: error: ‘A_BOLD’ undeclared (first use in this function)
display.c: In function ‘show_suggestion’:
display.c:267: error: ‘suggestion_window’ undeclared (first use in this function)
make: *** [display.o] Error 1
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: Petr Merlin Vaněček 19 Prosince 2007, 20:33:11
Ja se znovu omlouvam, teprve s ubuntu začínam. Úspora energie by se hodila, ale když dam příkaz make, tak to vypíše tohle:(

jindra@Atlant-ubuntu:~/powertop-1.9$ make
cc -Os -g -Wall  -W -Wshadow   -c -o display.o display.c
display.c:32:21: error: ncurses.h: No such file or directory
.
.
.


sudo apt-get install ncurses-dev
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: c4pp4 20 Prosince 2007, 19:18:11
Deb balíčky verze 1.9 pro Ubuntu: http://www.getdeb.net/app.php?name=PowerTOP (http://www.getdeb.net/app.php?name=PowerTOP)
Název: Re: zásadní úspora energie na notebooku (s Intel procesorem)
Přispěvatel: .:Šimi:. 20 Prosince 2007, 23:45:41
sudo apt-get install ncurses-dev

Děkuji mnohokrat, uz funguje ;)
Název: Re: zásadní úspora energie na notebooku s Intel procesorem
Přispěvatel: Maculko 27 Prosince 2007, 09:41:15
takze cavte.... stiahol som ten powertop nainstaloval a pri prvom príkaze "tar xzf powertop*"
my vypise toto neviete mi pomoct mam Ubuntu 7.10
"
tar: powertop-1.9: Nie je možné read: Is a directory
tar: Páska na začiatku, končím
tar: Z chyby sa nie je možné zotaviť: ukončuje sa

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Za behu programu nastala chyba
"
Název: Re: zásadní úspora energie na notebooku s Intel procesorem
Přispěvatel: Petr Merlin Vaněček 27 Prosince 2007, 11:26:37
takze cavte.... stiahol som ten powertop nainstaloval a pri prvom príkaze "tar xzf powertop*"
my vypise toto neviete mi pomoct mam Ubuntu 7.10
"
tar: powertop-1.9: Nie je možné read: Is a directory
tar: Páska na začiatku, končím
tar: Z chyby sa nie je možné zotaviť: ukončuje sa

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Za behu programu nastala chyba
"

Pravdepodobne jiz existuje adresar powertop-1.9 v miste, kde se snazite powertop rozbalit, smazte jej.
Název: Re: zásadní úspora energie na notebooku s Intel procesorem
Přispěvatel: Maculko 31 Prosince 2007, 00:42:53
cavte mam problem potrebujem prekopirovat subor powertop-1.9.tar.gz do adresara  /usr/src... ale ked to skusim urobit povie mi ze na to nemam prava neviete ako sa to da vyriesit?????
Název: Re: zásadní úspora energie na notebooku s Intel procesorem
Přispěvatel: Petr Merlin Vaněček 31 Prosince 2007, 11:32:43
cavte mam problem potrebujem prekopirovat subor powertop-1.9.tar.gz do adresara  /usr/src... ale ked to skusim urobit povie mi ze na to nemam prava neviete ako sa to da vyriesit?????

opravneni pro toto ma root - musis pouzit prikaz sudo viz. http://wiki.ubuntu.cz/Root_sudo
Název: Re: zásadní úspora energie na notebooku s Intel procesorem
Přispěvatel: sansom 16 Října 2009, 10:42:06
tak se mi to po útrapách podařilo nainstalovat, ale nechápu k čemu je to dobré ani co to píše :-[ a už vůbec jak s tím mám uspořit energii...