LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 12-13-2003, 11:48 PM   #1
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Rep: Reputation: 30
power button turns computer off


Hey, I suppose this might have seemed like a stupid question from the title

When I am in windows and I press the power button it shuts the computer down (by actually shutting down the programs and waiting for windows to shutdown). I had an option in the screen saving setup to change it so that the power button would put the computer to sleep or shut it down or hibernate

In mandrake, the computer just goes off when you push the power. I would like it to at least be disabled so that when I press the button with my toe (it happens) it won't shut down. Also so that my cousin is unable to just turn off the computer when I have it set to a password screen. Any help would be appreciated
 
Old 12-14-2003, 12:45 AM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
It depends on your hardware, and the associated power management setup.

Or you may be able to use powerswitch.o



More Info?
 
Old 12-14-2003, 02:56 AM   #3
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
It seems like your computer has an ACPI compatible BIOS, but linux generally only uses the APM features of a BIOS. Either check your BIOS or get a kernel module for ACPI... Or recompile the kernel with ACPI support.
 
Old 12-14-2003, 06:07 PM   #4
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
Disconnect the power button, and connect the reset button to the power header on the motherboard. Reset buttons are generally more difficult to hit by accident. ;-)

On the software side, in order to mess with the behaviour of things like the power button, you're probably going to need to be running an ACPI enabled kernel. I have no idea if Mandrake's default one is. This could be a great fun adventure in kernel compilation for you!
 
Old 12-14-2003, 09:14 PM   #5
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Original Poster
Rep: Reputation: 30
You were right about my bios, it only supports ACPI. But it says that Mandrake supports it too, so I don't know what's going on. And it's working in the way that when I shut down the computer turns off by it's self when it's finishing shutting down.

I went into my configuration and it has an option for ACPI to be on or off and it says that it's on. Now, there's also an option for "Force no APIC", I'm not sure what that is. Can anyone explain what that does. (I'm too lazy right now to try it myself)
 
Old 12-14-2003, 10:02 PM   #6
jsmarshall85
Member
 
Registered: Aug 2003
Posts: 386

Rep: Reputation: 30
i have a question. why would you want to power off your computer that way in the first place? just choose shutdown from a menu or at the command line as root just type shutdown now
 
Old 12-14-2003, 10:04 PM   #7
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Original Poster
Rep: Reputation: 30
You people must be simple...

It powers off that way right now, I DON'T want it to power off that way. I don't want the computer to shut down when the power button is pressed. And it's more for my cousin then me.
 
Old 12-15-2003, 01:16 AM   #8
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
these commands

chkconfig acpid on
service acpid start

If no errors then you need to look at /var/log/messages for acpi messages

you need events in /etc/acpi/events

[david@zeus events]$ pwd
/etc/acpi/events

[david@zeus events]$ ls
lid.conf power-button-2.4.conf power-button-2.6.conf

[david@zeus events]$ cat power-button-2.4.conf
event=button pow*
action=/sbin/poweroff

[root@zeus root]# service acpid restart
Stopping acpi daemon: [ OK ]
Starting acpi daemon: [ OK ]

[root@zeus root]# tail /var/log/acpid | grep rules
[Mon Dec 15 01:11:31 2003] 3 rules loaded
 
Old 12-15-2003, 08:59 AM   #9
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Original Poster
Rep: Reputation: 30
Thanks, I'll check that out. I don't have time to try it right now but it sounds promising
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 03:50 AM
Press power button can't turn down the computer shadkong Linux - Hardware 2 05-04-2005 09:50 PM
Power button shuts down computer? kaega2 Linux - Software 0 01-08-2004 06:32 PM
ACPI: shutdown computer by pushing power button... elluva Mandriva 10 12-15-2003 03:57 AM
how to get mandrake 9.0 shut down the computer without pushing the power button? sirpelidor Mandriva 8 11-25-2003 12:11 PM


All times are GMT -5. The time now is 12:46 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