LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2003, 09:57 PM   #1
boicraig
LQ Newbie
 
Registered: Jan 2003
Posts: 10

Rep: Reputation: 0
apm and acpi


On my laptop, in linux, my power button turns off the system without shutting down linux. is there any way to have it send the shutdown command to linux when pressed? my computer is acpi complaint and is running the apm demon.

craig
 
Old 01-08-2003, 10:06 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You'll need to use ACPI instead of APM. You will need kernel suppoort for ACPI which is pretty starighforward (rebuild kernel with acpi modules). You can use the ospm_ modules and a script to interpret the different ospm events (power button, closed lid switch) and act upon them as you choose.

Last edited by mcleodnine; 01-08-2003 at 10:08 PM.
 
  


Reply



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
ACPI and APM dvrboy Linux - Laptop and Netbook 1 03-08-2005 06:19 AM
apm vs acpi vrln Linux - Software 1 08-23-2004 08:17 AM
ACPI vs. APM perry Linux - Hardware 0 07-21-2004 01:13 PM
apm vs. acpi ? (modprobe: FATAL: Error inserting apm) OneManArmy Linux - Laptop and Netbook 0 05-12-2004 04:39 PM
APM v. ACPI downinthemine Linux - Laptop and Netbook 1 11-26-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 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
Open Source Consulting | Domain Registration