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

Reconnaissance et configuration du matériel / kernel linux
Avatar de l’utilisateur
CyDes
Daikyu
Messages : 71
Inscription : mar. 08 juin 2010, 21:41
Localisation : Nantes

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

Message 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 ?
Quand vous avez tout essayé, lisez le mode d'emploi...
Avatar de l’utilisateur
CyDes
Daikyu
Messages : 71
Inscription : mar. 08 juin 2010, 21:41
Localisation : Nantes

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

Message par CyDes »

Un pti up ...

Personne n'a d'idée ou manque t il des infos ?
Quand vous avez tout essayé, lisez le mode d'emploi...
oktoberfest
Maître du Kyudo
Messages : 1855
Inscription : mer. 06 janv. 2010, 13:51
Localisation : Ried - Alsace - France

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

Message 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.
La majorité des bugs se situe entre la chaise et le clavier...
Arrêtez de vous prendre la tête avec les partitions... passez au LVM
Avatar de l’utilisateur
CyDes
Daikyu
Messages : 71
Inscription : mar. 08 juin 2010, 21:41
Localisation : Nantes

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

Message par CyDes »

Bien vu :D J'utilise gnome et je n'avait pas pensé a ça. Je teste et je te dis quoi.
Quand vous avez tout essayé, lisez le mode d'emploi...
Répondre