LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Confused about ACPI (https://www.linuxquestions.org/questions/linux-newbie-8/confused-about-acpi-157465/)

Alf829 03-14-2004 08:38 AM

Confused about ACPI
 
Hi all,

I've just installed FC2 on my laptop and although I've managed to get a battery monitor and CPU throttling up, when I try to type acpi on a terminal, it says command not found.

I'm getting confused over this because does this mean that ACPI IS installed or NOT?

TIA for your help.

Caeda 03-14-2004 08:56 AM

It means there's no program called acpi installed...

Alf829 03-14-2004 09:20 AM

hmm, but I've seen mentioned somewhere that if acpi was installed correctly, this command should work...

Alf829 03-14-2004 11:42 PM

So, if typing acpi on a terminal and getting a command not found message, how would I test that acpi is working?

skog 03-18-2004 11:24 PM

acpi should be listed in your boot up ... dmesg is a command that will print out all your boot settings look up at the top.

so at the terminal type "dmesg" and then scroll up to the top and it should have some info.

the acpi command just gives out information about what your current levels are ... like level of battery left, level of temperature ...

to test if acpi is working correctly pass some events to the daemon and see if it reacts properly.

Alf829 03-19-2004 01:39 AM

Quote:

Originally posted by skog
acpi should be listed in your boot up ... dmesg is a command that will print out all your boot settings look up at the top.

so at the terminal type "dmesg" and then scroll up to the top and it should have some info.

There are some listed ACPI entries, the top-most ones have hexadecimal numbers after ACPI:

Quote:

the acpi command just gives out information about what your current levels are ... like level of battery left, level of temperature ...

to test if acpi is working correctly pass some events to the daemon and see if it reacts properly.
How would I go about passing events to the daemon? Also, there is no acpi command on my system. Is it part of some utilities that I haven't installed?

Cheers,
Alf829

skog 03-19-2004 11:36 AM

the hex stuff after ACPI in dmesg? yes then it is installed and is working wether it is configured properly and setup to run in an effective manner would still need to be determined

acpi command not installed? no it is not, but it only deals with getting and displaying information ... it doesnt really do anything.

ex. if you type acpi -v it will display
battery: unknown,96%
temperature: 46c
adapter: online

how to pass an event to acpid? You just have to do something that would cause an event. if you unplug your ac adapter it should get the event ac_adapter.ADP1

but that will only be effective if you have your events setup to properly handle events. In /etc/acpi check for event_handler.sh or something like that. And make sure you have an option to log everything

*.* logger group $1 / event $2 just happened

other events can be in there so like
something.* logger the pc just blew up
good.* logger the pc turned to gold
*.* logger group $1 / event $2 not a known event

$1 and $2 are just variables passed from the acpid they tell what just happened then in the event handler file you can set what to do. This is kinda of distro dependent; some distros set this up for you to some extent, some set it up completely, and some dont set it up at all.

Alf829 03-19-2004 11:12 PM

Hi skog,

Thanks for the info :)

Will take a look and see how my event handlers have been setup.

Cheers,
Alf829


All times are GMT -5. The time now is 09:08 PM.