LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 12-12-2003, 11:21 AM   #1
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
ACPI: shutdown computer by pushing power button...


Ok, I know this is lazy, but still... I would like to shutdown my computer by pushing the power button. Is this possible on Mandrake 9.1? If yes... how?

greetz 'n tnx,
elluva
 
Old 12-12-2003, 12:04 PM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
You mean right in the middle of a session? Disks mounted, jobs running, apps open?

No.

You could try to set up an icon on your desktop that was a link to /sbin/poweroff, but don't blame me if that spreadsheet you spent all day working on gets lost!

John
 
Old 12-12-2003, 01:21 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,049

Rep: Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758Reputation: 758
On some computers, I think this is controlled by the BIOS holding down the power switch for 4 seconds will turn the computer off instantly (just kidding of course)

You can set the properties of Ctrl-Alt-Del to shutdown the computer in the /etc/inittab file. It might be possible to write an app to with a BIOS call to detect when the power switch is pressed.
 
Old 12-13-2003, 09:42 AM   #4
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Rep: Reputation: 33
Try this

Hi,
First I think you have to have the acpi packages installed..Then go to boot configuration
either lilo or grub and enable acpi
Good Luck,
JP

Edit:: sorry,I misunderstood..Not a clue here..

Last edited by jolphil; 12-14-2003 at 05:02 PM.
 
Old 12-14-2003, 04:01 PM   #5
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
no I mean I have a PC without keyboard or mouse running some servers. I just want to push the power button, else I have to log in as root and run halt.
 
Old 12-14-2003, 06:34 PM   #6
zib
LQ Newbie
 
Registered: Dec 2003
Distribution: MDK8.2
Posts: 14

Rep: Reputation: 0
You might wanna try the following:

http://www.mjmwired.net/resources/redhat8-acpi.html

Seems to be what you're looking for.
Different distro, but that shouldn't matter.


/j.
 
Old 12-15-2003, 04:18 AM   #7
dukeinlondon
Member
 
Registered: May 2003
Location: London
Distribution: kubuntu 8.10
Posts: 593
Blog Entries: 1

Rep: Reputation: 30
apm should be able to do the same no ? Knoppix has detected than my mobo is apm able so I was going to go down that route ... Any idea anyone ?
 
Old 12-15-2003, 04:30 AM   #8
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
Quote:
Originally posted by jkobrien
You mean right in the middle of a session? Disks mounted, jobs running, apps open?

No.

You could try to set up an icon on your desktop that was a link to /sbin/poweroff, but don't blame me if that spreadsheet you spent all day working on gets lost!

John
Actually you can do this . http://swsusp.sourceforge.net/
 
Old 12-15-2003, 04:44 AM   #9
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
APM is able todo that as well, I don't need an suspend mode. What I need is a replacement to running 'halt', but by using the power button instead of the keyboard.
 
Old 12-15-2003, 04:53 AM   #10
burnpile
Member
 
Registered: Dec 2003
Location: Almost Heaven, West Virginia
Distribution: Slackware
Posts: 327

Rep: Reputation: 30
Quote:
Originally posted by elluva
APM is able todo that as well, I don't need an suspend mode. What I need is a replacement to running 'halt', but by using the power button instead of the keyboard.
Try this http://sourceforge.net/projects/acpid/
it handles events written to /proc/acpi/ and allows you to pass arguments and commands
 
Old 12-15-2003, 04:57 AM   #11
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
tnx, I think this will end my quest.

Greetingz,
elluva
 
  


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
Is there any way to turn off the computer power without pushing the button? Necronomicom Slackware 11 02-27-2006 04:50 AM
Power Button for Shutdown gokul Linux - Hardware 4 01-24-2004 01:40 PM
how to get mandrake 9.0 shut down the computer without pushing the power button? sirpelidor Mandriva 8 11-25-2003 01:11 PM
RH 9 orderly shutdown by power button? geezjan Red Hat 1 09-19-2003 11:01 AM
Shutdown with power button hriosm Linux - Hardware 4 06-06-2003 03:43 PM


All times are GMT -5. The time now is 07:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration