LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2004, 09:38 AM   #1
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Rep: Reputation: 15
Unhappy 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.
 
Old 03-14-2004, 09:56 AM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
It means there's no program called acpi installed...
 
Old 03-14-2004, 10:20 AM   #3
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Original Poster
Rep: Reputation: 15
hmm, but I've seen mentioned somewhere that if acpi was installed correctly, this command should work...
 
Old 03-15-2004, 12:42 AM   #4
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Original Poster
Rep: Reputation: 15
So, if typing acpi on a terminal and getting a command not found message, how would I test that acpi is working?
 
Old 03-19-2004, 12:24 AM   #5
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
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.
 
Old 03-19-2004, 02:39 AM   #6
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Original Poster
Rep: Reputation: 15
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
 
Old 03-19-2004, 12:36 PM   #7
skog
Member
 
Registered: Sep 2003
Location: TX
Distribution: slackware
Posts: 301

Rep: Reputation: 30
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.
 
Old 03-20-2004, 12:12 AM   #8
Alf829
Member
 
Registered: Jul 2003
Distribution: Fedora Core 2 & 5
Posts: 110

Original Poster
Rep: Reputation: 15
Hi skog,

Thanks for the info

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

Cheers,
Alf829
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Confused... Please Help! Bill_Cap Linux - Wireless Networking 1 09-01-2004 09:40 PM
acpi (no /proc/acpi)??? JimDog Linux - Newbie 2 01-25-2004 01:14 AM
so confused... KeTrueno Linux - General 1 09-28-2003 02:45 PM
What is going on? Very confused.. darius2002 Linux - Newbie 8 08-22-2003 01:59 AM
kernel 2.4.20 & acpi-20021212-2.4.20.diff => no /proc/acpi Tinkster Linux - Software 5 03-24-2003 02:56 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration