Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] acpid no log file?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ALF__
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2003
Posts: 143

PostPosted: Sat Jan 10, 2015 12:32 am    Post subject: [solved] acpid no log file? Reply with quote

Hello!

Im trying to configure acpi on my laptop..

ive copied the script for sleep from thinkwiki and it works when i call it manually.

The guid tells me to check /var/log/acpid for what events the lid calls for. But acpid have no log file?


Any ideas on what might be wrong? is the log file located somewere else?


Last edited by ALF__ on Sat Jan 10, 2015 3:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5762

PostPosted: Sat Jan 10, 2015 3:47 am    Post subject: Reply with quote

The log is wherever you've configured syslog to write it to.
Back to top
View user's profile Send private message
ALF__
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2003
Posts: 143

PostPosted: Sat Jan 10, 2015 10:20 am    Post subject: Reply with quote

I have not touched the configuration since the manual says "/var/log/acpid if no changes to configuration have been made"
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Jan 10, 2015 2:17 pm    Post subject: Reply with quote

ALF__ wrote:
I have not touched the configuration since the manual says "/var/log/acpid if no changes to configuration have been made"

ALF__ .... acpid doesn't do its own logging, it uses the system logger, probably right now it logs to /var/log/messages. Dependent on the logger in use then this can be configured via the method provided by the logger, so, for example using syslog-ng you could do something like the following:

Code:
destination acpid { file("/var/log/acpid.log"); };
filter f_acpid { facility(acpid); };
log { source(src); filter(f_acpid); destination(acpid); };

best ... khay
Back to top
View user's profile Send private message
ALF__
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2003
Posts: 143

PostPosted: Sat Jan 10, 2015 2:35 pm    Post subject: Reply with quote

Hello!

Thank you very much for your reply..

I did add the entries you stated. Still the same though.

However, i did find this in /var/log/messages:
localhost acpid: waiting for events: event logging is off

But i cannot find any configuration file that i can turn this on in?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Jan 10, 2015 2:49 pm    Post subject: Reply with quote

ALF__ wrote:
Thank you very much for your reply. I did add the entries you stated. Still the same though.

ALF__ ... you're welcome. I'm not sure how your syslog-ng is currently configured, what I provided was an adaption from my own (it may not be correct as I'm not sure what facility acpid logs as). So, it was really more of an example ...

ALF__ wrote:
[...] i cannot find any configuration file that i can turn this on in?

/etc/conf.d/acpid
Code:
ACPID_ARGS="--logevents"

HTH & best ... khay
Back to top
View user's profile Send private message
ALF__
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2003
Posts: 143

PostPosted: Sat Jan 10, 2015 3:53 pm    Post subject: Reply with quote

Again, thank you very much!


The --logevents did it!


For future reference though, i learned that there is a program called acpi_listen that output all the eventnames as they happen.

So i managed to get sleep to work!

Again, thank you for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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