View previous topic :: View next topic |
Author |
Message |
nick24 n00b
Joined: 10 Nov 2007 Posts: 24
|
Posted: Sun Sep 21, 2008 11:51 pm Post subject: Turning off acpid output |
|
|
I have my laptop set up to change it's cpu frequency using cpufrequtils and acpid. It works fine, but whenever I plug in the laptop (or unplug it), acpid spits out a bunch of stuff to all of the TTYs. I use the TTYs a lot, and it's very annoying to have that happen, especially while using emacs. I was wondering if there is a way to stop acpid from writing to stdout, either by an option in the initscripts or by redirecting it to a file somewhere.
Thanks! |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Mon Sep 22, 2008 12:45 am Post subject: |
|
|
I believe the problem lies within the /etc/acpi/ scripts.
I have a similar configuration, and can safely say my consoles are acipd-output free.
You'll probably have to do a bit of digging to find the problem, or if you post the suspect files up here, someone could take a look at them for you. |
|
Back to top |
|
|
DeathCarrot Tux's lil' helper
Joined: 04 May 2006 Posts: 93 Location: Southampton, United Kingdom
|
Posted: Tue Sep 23, 2008 10:33 am Post subject: |
|
|
My TTYs also get flooded by acpid, and I've never touched /etc/acpi:
Code: | [jkasus:/etc/acpi] ll -R [18:26]
.:
total 8.0K
-rwxr-xr-x 1 root root 1.2K 2008-09-23 18:22 default.sh
drwxr-xr-x 2 root root 4.0K 2008-09-23 18:22 events
./events:
total 4.0K
-rw-r--r-- 1 root root 663 2008-09-23 18:22 default
|
I'll post them if you want but they're what I got when I emerged acpid.
Additionally, my /var/log/messages doesn't get acpid messages.
EDIT: Running acpid-1.0.6-r1 and gentoo-sources-2.6.26-r1
EDIT: *facepalm* Syslog wasn't starting at boot for some reason, fixed now. So OP, make sure you have syslog-ng running, this will log all the messages into /var/log/messages instead of the TTYs. |
|
Back to top |
|
|
nick24 n00b
Joined: 10 Nov 2007 Posts: 24
|
Posted: Tue Sep 23, 2008 9:12 pm Post subject: |
|
|
Aha! That makes sense now. I wasn't running a system logger because my laptop has an SSD and I wanted to minimize writes (and it's pretty slow too). I guess I can just run it and dump messages into a file on a ramdisk. Thanks for your help.
EDIT: That totally fixed it. |
|
Back to top |
|
|
|