Page 1 sur 1

[Powertop2] Mise en place des modifs en dur dans rc.local

Publié : mer. 21 mars 2012, 12:23
par CyDes
Bonjour,

Je vous sollicite pour un petit soucis que je n'arrive pas à résoudre.En suivant le wiki anglophone sur Powertop https://wiki.archlinux.org/index.php/Powertop.

J'ai rempli mon rc.local comme ceci :

Code : Tout sélectionner

hdparm -B 254 /dev/sda
iwconfig wlan0 power on
echo 1 > /sys/devices/system/cpu/sched_mc_power_savings
echo 1 > /sys/module/snd_hda_intel/parameters/power_save
echo 0 > /proc/sys/kernel/nmi_watchdog
for i in `find /sys/devices/*/power/control`; do echo auto > $i; done;
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
for i in `find /sys/bus/usb/devices/*/power/level`; do echo auto > $i; done;
for i in `find /sys/bus/usb/devices/*/power/autosuspend`; do echo 30 > $i; done;
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
ethtool -s eth0 wol d
Je reboote, je relance powertop2 pour vérifier si tout est ok mais non une partie des commandes du rc.local non pas été exécutée. Si je relance le rc.local puis powertop2, la tout est bon.

Le powertop apres le reboot :

Code : Tout sélectionner

  Bad           Wireless Power Saving for interface wlan0                                                              
   Bad           Enable SATA link power management for /dev/sda
   Bad           Power Aware CPU scheduler
   Bad           VM writeback timeout
   Bad           Enable Audio codec power management
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
   Bad           Runtime PM for PCI Device Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
   Bad           Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
   Bad           Runtime PM for PCI Device Intel Corporation Centrino Wireless-N 100
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1
   Bad           Runtime PM for PCI Device Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port
   Bad           Runtime PM for PCI Device Intel Corporation 2nd Generation Core Processor Family DRAM Controller
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
   Good          NMI watchdog should be turned off
   Good          Autosuspend for USB device Gaming Mouse G400 [Logitech]
   Good          Autosuspend for USB device WebCam SC-0311139N [Image Processor]
Le powertop après la relance du rc.local a la main

Code : Tout sélectionner

 Bad           Runtime PM for PCI Device Intel Corporation Centrino Wireless-N 100                                    
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
   Bad           Runtime PM for PCI Device Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1
   Bad           Runtime PM for PCI Device Intel Corporation 2nd Generation Core Processor Family DRAM Controller
   Bad           Runtime PM for PCI Device Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port
   Bad           Runtime PM for PCI Device Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
   Bad           Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
   Good          Wireless Power Saving for interface wlan0
   Good          Enable Audio codec power management
   Good          Enable SATA link power management for /dev/sda
   Good          NMI watchdog should be turned off
   Good          Power Aware CPU scheduler
   Good          VM writeback timeout
   Good          Autosuspend for USB device Gaming Mouse G400 [Logitech]
   Good          Autosuspend for USB device WebCam SC-0311139N [Image Processor]
Auriez-vous une idée pour m'eviter de relancer le rc.local a la main pour appliquer mes modifs ?

Re: [Powertop2] Mise en place des modifs en dur dans rc.loca

Publié : jeu. 22 mars 2012, 11:59
par CyDes
Un pti up ...

Personne n'a d'idée ou manque t il des infos ?

Re: [Powertop2] Mise en place des modifs en dur dans rc.loca

Publié : jeu. 22 mars 2012, 12:41
par oktoberfest
Salut,

tu utilises quel environnement ? Car Gnome applique lui aussi un paramétrage pour l'énergie.
Tu te retrouves alors lors du boot :
- application du paramétrage via /etc/rc.loca
- puis application du paramétrage via Gnome qui va peut-être aller à l'encontre de certains paramétrages de ton rc.local

Le meilleur moyen de vérifier cela est de :
- démarrer en runlevel 3
- regarder si les modifs du rc.local ont été appliquées
- faire un init 5 en root
- regarder si les modifs du rc.local ont été écrasées.

Re: [Powertop2] Mise en place des modifs en dur dans rc.loca

Publié : jeu. 22 mars 2012, 12:42
par CyDes
Bien vu :D J'utilise gnome et je n'avait pas pensé a ça. Je teste et je te dis quoi.