Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Acpi e problema di log
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) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Sun Feb 22, 2009 4:00 pm    Post subject: Acpi e problema di log Reply with quote

Sto seguendo questa guida http://www.gentoo.it/home/index.php?option=com_content&task=view&id=187&Itemid=31 per la gestione energetica...ho un problema pero, mi viene richiesto di controllare una cosa nel log di acpi ma il file /var/log/acpid, quello cioè riportato nella guida, non esiste...ho controllato anche con man acpid ed infatti non lo riporta...come posso fare :S? Nello specifico la guida richiede questo:
...
tail -f /var/log/acpid | grep "received event"
e l'uscita dovrebbe esser qualcosa del genere:

[Tue Sep 20 17:39:06 2005] received event "ac_adapter AC 00000080 00000000"
[Tue Sep 20 17:39:06 2005] received event "battery BAT0 00000080 00000001"
_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sun Feb 22, 2009 5:38 pm    Post subject: Reply with quote

e tu invece cosa ottieni?
Back to top
View user's profile Send private message
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Sun Feb 22, 2009 5:59 pm    Post subject: Reply with quote

mi dice che non esiste il file:P ecco l'output preciso:
tail: cannot open `/var/log/acpid' for reading: No such file or directory
tail: no files remaining
_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Sun Feb 22, 2009 7:05 pm    Post subject: Reply with quote

mmm, il demone acpid è attivo?
mi sembra che il programma acpi_listen sputi un output simile. provalo.
Back to top
View user's profile Send private message
redo86
n00b
n00b


Joined: 29 Nov 2008
Posts: 43
Location: Pisa

PostPosted: Mon Feb 23, 2009 12:17 am    Post subject: Reply with quote

grazie mille...=) ha funzionato:P..posso farti un ulteriore domanda? ad un certo punto la guida dice "Provando ora ad attaccare e staccare l'alimentazione a corrente, nei log di sistema dovrebbero apparire a seconda dei casi i messaggi "Switching to AC mode" o "Switching to battery mode" intende dmesg :S? o sempre acpi_listen perche se è cosi non me lo riportano nessuno dei due:P
_________________
Happiness is thinking linear
[img]http://www.fruciano.it/Musica2/korn/korn.jpg[/img]
Back to top
View user's profile Send private message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1325
Location: Italy

PostPosted: Mon Feb 23, 2009 11:08 am    Post subject: Reply with quote

Comunque sia il problema sara` sicuramente legato al fatto che il demone syslog-ng non ha regole per separare l'output di acpid dal resto.
Di conseguenza il tuo output dovrebbe finire nel calderone di "/var/log/messages".
Eventualmente
Code:
man syslog-ng.conf
per capire come configurare il demone di loggina affinche` ti separi cio` che ti serve
:wink:
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Mon Feb 23, 2009 8:33 pm    Post subject: Reply with quote

io ho questo con acpi_listen staccando la corrente:
Code:
 
acpi_listen
ac_adapter AC0 00000080 00000000
hotkey ATKD 00000057 00000002
processor P001 00000081 00000000
processor P002 00000081 00000000
battery BAT0 00000080 00000001


invece riattaccando:
Code:
battery BAT0 00000081 00000001
ac_adapter AC0 00000080 00000000
ac_adapter AC0 00000080 00000001
hotkey ATKD 00000058 00000002
processor P001 00000081 00000000
processor P002 00000081 00000000
battery BAT0 00000080 00000001


quindi direi che il code da ricercare per me potrebbe essere hotkey ATKD 00000058 e hotkey ATKD 00000057 in quanto sono unici, scarterei ac_adapter AC0 00000080 00000000 in quanto viene ripetuto anche quando collego l'alimentazione. Il comando ATKD non mi sembra ripetuto da altri comandi dell'acpi, però ho dato un'occhiata veloce quindi potrei sbagliarmi, prova a vedere l'output sul tuo pc, magari ripetuto qualche volta.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano 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