Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ma chi mi mette in sleep l'hd???
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
rb34
Guru
Guru


Joined: 03 Oct 2004
Posts: 361
Location: Rome, italy

PostPosted: Tue Nov 09, 2010 12:18 pm    Post subject: Ma chi mi mette in sleep l'hd??? Reply with quote

Parliamo di power saving per un portatile: avevo smanettato tempo fa per diminuire il consumo energetico, ma adesso le cose non vanno come dovrebbero; non ricordo più cosa ho fatto e la consultazione della gentoo power mgmt guide non mi ha aiutato

Ora come ora, quando stacco l'alimentazione e va a batteria, l'hd va in sleep dopo pochi secondi, e non voglio questo.
Ma non capisco chi è che glielo ordina. Perché avevo creato un runlevel battery, ma per qualche motivo che devo ricostruire il runlvel, nel passaggio a batteria, rimane quello default!
E allora, chi comanda all'hd lo sleep?

Al momento ho:
Code:
# rc-status
Runlevel: default
 acpid                                                              [ started  ]
 alsasound                                                          [ started  ]
 consolekit                                                         [ started  ]
 cpufrequtils                                                       [ started  ]
 cupsd                                                              [ started  ]
 dbus                                                               [ started  ]
 esound                                                             [ started  ]
 fcron                                                              [ started  ]
 gpm                                                                [ started  ]
 hald                                                               [ started  ]
 local                                                              [ started  ]
 named                                                              [ started  ]
 net.eth0                                                           [ started  ]
 netmount                                                           [ started  ]
 syslog-ng                                                          [ started  ]
 udev-postmount                                                     [ started  ]
 xdm                                                                [ started  ]


E, appunto, se stacco l'alimentazione e dò rc-status ottengo lo stesso output.
Cosa consigliate di controllare????
_________________
rb
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Tue Nov 09, 2010 1:51 pm    Post subject: Reply with quote

hdparm/sdparm?
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
rb34
Guru
Guru


Joined: 03 Oct 2004
Posts: 361
Location: Rome, italy

PostPosted: Tue Nov 09, 2010 2:43 pm    Post subject: Reply with quote

Onip wrote:
hdparm/sdparm?


sì, probabile, ma lanciati da chi?
_________________
rb
Back to top
View user's profile Send private message
uoslagelo
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jul 2009
Posts: 81

PostPosted: Thu Nov 18, 2010 12:39 am    Post subject: Reply with quote

Prova ad interrompere il bootstrap e ad eseguire manualmente i servizi. Dopo ogni servizio avviato verifica lo stato del risparmio energetico del disco con hdparm -B /dev/sdX
Back to top
View user's profile Send private message
rb34
Guru
Guru


Joined: 03 Oct 2004
Posts: 361
Location: Rome, italy

PostPosted: Sun Dec 26, 2010 1:59 pm    Post subject: Reply with quote

Non so bene chi lo lanciasse, ma a chiamare hdparm era pm-utils.
Ho sostituito ad hdparm uno script "spia", che posto alla fine, e con cui ho visto il chiamante, che era /usr/lib/pm-utils/power.d/harddrive, dove ci sono i parametri impostabili che passa ad hdparm.
Ma chi è che lancia pm-utils? Acpid no, perché gli ho bloccato gli script. E` gnome?

Script spia:
Code:
#!/bin/bash

CALLER=$(ps ax | grep "^ *$PPID" | awk '
{
for (i=5; i<=NF; i++)
printf("%s ", $i)
printf("\n")
}')
echo "caller=$CALLER" >> /tmp/hdparm.log
echo "params=$*" >> /tmp/hdparm.log

_________________
rb
Back to top
View user's profile Send private message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Wed Dec 29, 2010 10:04 am    Post subject: Reply with quote

se guardi poco sotto avevo aperto un topic su upower e affini.
Più che altro perché una politica di sleep così aggressiva è inusabile.
Avevo visto che pm utils era tirato dentro da gnome-session. Io ho "risolto" modificando gli script di pm-utils.
Ciao!
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum