Problema powernowd

3 risposte [Ultimo contenuto]
Ritratto di tarhan
tarhan
(Junior)
Offline
Junior
Iscritto: 08/05/2009
Messaggi: 16

ciao a tutti!
ho riscontrato un piccolo problema riguardante l'utilizzo della cpu:

ho un dell latitude d830 (debian 64bit su core due2 1.8) con i moduli acpi installati correttamente, la batteria marca (con il comando "acpi") 3h25min...fin qui tutto ok

ora: ho installato powernowd (apt-get install powernowd), pero ho notato che sulla mia conky che la frequenza e sempre al massimo, cosi sono andato a vedere nel file /etc/init./powernowd e qui di seguito si puo vedere che si avvia con l'opzione "-q"

#! /bin/sh<br /># Init script for powernowd<br />#<br />### BEGIN INIT INFO<br /># Provides:          powernowd<br /># Required-Start:    $syslog $local_fs $time<br /># Required-Stop:     $syslog $local_fs<br /># Default-Start:     2 3 4 5<br /># Default-Stop:         0 1 6<br /># Short-Description: Start powernowd .<br />### END INIT INFO<br /><br /><br />PATH=/sbin:/bin:/usr/sbin:/usr/bin<br />DAEMON=/usr/sbin/powernowd<br />NAME=powernowd<br />DESC=powernowd<br />OPTIONS=&quot;-q&quot;<br /><br />test -x $DAEMON || exit 0<br /><br /># modify the file /etc/default/powernowd if you want to add personal options<br /><br />[ -f /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME<br /><br />set -e<br /><br />case &quot;$1&quot; in<br />  start)<br /> echo -n &quot;Starting $DESC: &quot;<br />      if [ -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ]<br />   then<br />              start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $OPTIONS<br />     else<br />              echo &quot;required sysfs objects not found!&quot;<br />                echo -e &quot;\tRead /usr/share/doc/powernowd/README.Debian for more information.&quot;<br />           exit 0<br />    fi<br />        echo &quot;$NAME.&quot;<br />   ;;<br />  stop)<br />   echo -n &quot;Stopping $DESC: &quot;<br />      start-stop-daemon --stop --quiet --oknodo --exec $DAEMON<br />  echo &quot;$NAME.&quot;<br />   ;;<br />  restart|force-reload)<br />   echo -n &quot;Restarting $DESC: &quot;<br />    start-stop-daemon --stop --quiet --oknodo --exec $DAEMON<br />  sleep 1<br />   start-stop-daemon --start --quiet --oknodo --exec $DAEMON -- $OPTIONS<br />     echo &quot;$NAME.&quot;<br />   ;;<br />  *)<br />      N=/etc/init.d/$NAME<br />       echo &quot;Usage: $N {start|stop|restart|force-reload}&quot; &gt;&amp;2<br />   exit 1<br />    ;;<br />esac<br />exit 0

mi sono detto, perche non modifico l'opzione per farlo avviare con la modalita "sine", cioe che scala la frequenza quando non serve al massimo....
ho dato sto comando per vedere se era possibile mettere questa modalita:
albion:/home/taliesin# powernowd -m 0<br />powernowd: PowerNow Daemon v1.00, (c) 2003-2008 John Clemens<br />/sys/devices/system/cpu/cpu0/cpufreq/affected_cpus: No such file or directory<br />powernowd: err=2<br />powernowd: Found 2 scalable units:  -- 1 &#039;CPU&#039; per scalable unit<br />/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: No such file or directory<br /><br />PowerNowd encountered and error and could not start.<br />Please make sure that:<br /> - You are running a v2.6.7 kernel or later<br /> - That you have sysfs mounted /sys<br /> - That you have the core cpufreq and cpufreq-userspace<br />   modules loaded into your kernel<br /> - That you have the cpufreq driver for your cpu loaded,<br />   (for example: powernow-k7), and that it works. Check<br />   &#039;dmesg&#039; for errors.<br />If all of the above are true, and you still have problems,<br />please email the author: clemej@alum.rpi.edu<br />

allora:
-1e ok, ho un 2.6.26-2
-2 credo che sia ok, pero se qualc'uno mi saprebbe dire come controllare...
-3il primo mi da "FATAL: Module cpufreq not found.", il secondo non da niente come risultato
-4 non saprei quale modulo mi serve

dove sbaglio?
qualc'uno mi sa dire qualche cosa a riguardo?

http://s2.tanoth.it?kid=tarhan . . . fatevi sotto!!Big Grin

Ritratto di tarhan
tarhan
(Junior)
Offline
Junior
Iscritto: 08/05/2009
Messaggi: 16

up! Big Grin

http://s2.tanoth.it?kid=tarhan . . . fatevi sotto!!Big Grin

Ritratto di sette70
sette70
(Geek)
Offline
Geek
Iscritto: 14/01/2005
Messaggi: 113

Ciao, prova a controllare se sono caricati i moduli del kernel necessari.Apri una console e dai "lsmod | grep speedstep" se non e presente caricalo con "modprobe speedstep-centrino"

Ritratto di tarhan
tarhan
(Junior)
Offline
Junior
Iscritto: 08/05/2009
Messaggi: 16

ciao, cercando un po' in giro ho trovato un programma che a quanto letto e equivalente a powernowd, si tratta di cpufreq.

ora, dal momento che anche con powernowd al comando

"lsmod | grep speedstep"

non mi dava nessun risultato, e con il comando

"modprobe speedstep-centrino"

mi dava un "fatal error"...driver not found, ho trovato in giro che i driver "generici" che posso usare (ho un core 2duo T7100), sono gli
"acpi_cpufreq", ho messo quelli e come output di "cpufreq-info" ho il seguente codice:

albion:/home/taliesin# cpufreq-info <br />cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006<br />Report errors and bugs to cpufreq@lists.linux.org.uk, please.<br />analyzing CPU 0:<br />  driver: acpi-cpufreq<br />  CPUs which need to switch frequency at the same time: 0<br />  hardware limits: 800 MHz - 1.80 GHz<br />  available frequency steps: 1.80 GHz, 1.80 GHz, 1.20 GHz, 800 MHz<br />  available cpufreq governors: conservative, powersave, ondemand, userspace, performance<br />  current policy: frequency should be within 800 MHz and 1.20 GHz.<br />                  The governor &quot;ondemand&quot; may decide which speed to use<br />                  within this range.<br />  current CPU frequency is 1.80 GHz (asserted by call to hardware).<br />  cpufreq stats: 1.80 GHz:66.30%, 1.80 GHz:0.00%, 1.20 GHz:6.25%, 800 MHz:27.44%  (379)<br />analyzing CPU 1:<br />  no or unknown cpufreq driver is active on this CPU<br />
se non ho capito male la prima cpu me l'ha settata come volevo, ma la "cpu1" come mai non funzia? sono i driver? ho bisogno per forza i speedstep_centrino?

con il comando "modprobe speedstep_centrino", l'output e questo:

FATAL: Error inserting speedstep_centrino (/lib/modules/2.6.26-2-amd64/kernel/arch/x86/kernel/cpu/cpufreq/speedstep-centrino.ko): Device or resource busy<br />
che devo fare

grazie per l'aiuto

http://s2.tanoth.it?kid=tarhan . . . fatevi sotto!!Big Grin