LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 02-27-2007, 06:46 PM   #1
nickraj
LQ Newbie
 
Registered: Sep 2006
Location: usa
Posts: 25

Rep: Reputation: 15
disable shutdown by press the power button


hi

I got various ways to disable shutdown ,if I press the power button on the desktop. But if I press the power button on the desktop for 5-10 sec, the computer shuts down, is there any way that I can disable this . I have checked the bios setting also but i was not able to find any related to this. can anybody help


thanks
 
Old 02-27-2007, 07:48 PM   #2
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
The 5 second method is for hard shutdowns, for cases in which the OS has become completely non-responsive. I've never heard of a way to disable this feature, but I suppose a way to get around this could be to reroute the switch wiring to a hidden location so that it would be harder to power it off.

Why would you want to disable it? It's a great feature to have.
 
Old 02-27-2007, 11:09 PM   #3
nickraj
LQ Newbie
 
Registered: Sep 2006
Location: usa
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by SlowCoder
The 5 second method is for hard shutdowns, for cases in which the OS has become completely non-responsive. I've never heard of a way to disable this feature, but I suppose a way to get around this could be to reroute the switch wiring to a hidden location so that it would be harder to power it off.

Why would you want to disable it? It's a great feature to have.
because that linux machine is accesed remotly and some time people shutdown the machine , disconnecting the remote user . I want that only root cando so .
 
Old 02-28-2007, 12:38 AM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
There is no way to do that. You are trying to disable something outside the control of the OS. That is like asking how to keep a machine from shutting off when it is unplugged!You may be able to disconnect the wiring within the case itself so that the wires running from the button to the motherboard are disconnected, but that also may prevent the machine from being powered on.

The real issue here is why people are physically shutting the machine off? Either get the machine in a server room where random people cannot access it, or put a note on it stating that it should never be powered off.

Peace,
JimBass
 
Old 02-28-2007, 03:39 AM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Moved: This thread is more suitable in the General forum and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-28-2007, 09:21 AM   #6
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 30
Quote:
Originally Posted by nickraj
....But if I press the power button on the desktop for 5-10 sec, the computer shuts down, is there any way that I can disable this....
For the 5 secs timeout, I think it's mandatory and you can't disable that. It's part of a higher conspiracy to take over the world by shutting all the machines down in 5 secs intervals.

On the other side, under linux (Slackware 11.0) I disabled the shutdown that triggers then touching that button, because I didn't want office people to mess up with my machine. You can do so by just issuing as root
Code:
chmod -x /etc/acpi/acpi_handler.sh
I also commented out the "Three finger salute" in /etc/inittab as the aforementioned people love to press [Ctrl]+[Alt]+[Del] whenever they panic by seeing a black screen CLI (a tty console).

This was under Slackware, so I can't really help you for other distros
Godspeed
 
Old 02-28-2007, 09:30 AM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
He already has a "quick" power button being pressed fixed, that is the first line of the OP. It is just the pressing it and holding it, which as you and others of us have written, is beyond the control of the OS and can't be messed with.

Peace,
JimBass
 
Old 03-02-2007, 10:36 PM   #8
Amenemhet
LQ Newbie
 
Registered: Mar 2007
Location: canada
Distribution: fedora core 5, ubuntu 6.1
Posts: 13

Rep: Reputation: 0
Nope, Jim is right, and you don't realy want to disable it , you may need it it one day(Murphy is lurking around the corner again). I would tape something over it to prevent people from turning it off, if you can't have it in a secure room.
 
Old 03-02-2007, 11:16 PM   #9
nickraj
LQ Newbie
 
Registered: Sep 2006
Location: usa
Posts: 25

Original Poster
Rep: Reputation: 15
thank you all
 
  


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
Press power button can't turn down the computer shadkong Linux - Hardware 2 05-04-2005 09:50 PM
Power Button for Shutdown gokul Linux - Hardware 4 01-24-2004 12:40 PM
Disable Use of Power Button mooreted Mandriva 4 12-26-2003 04:18 PM
RH 9 orderly shutdown by power button? geezjan Red Hat 1 09-19-2003 10:01 AM
Shutdown with power button hriosm Linux - Hardware 4 06-06-2003 02:43 PM


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