LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-13-2002, 05:44 AM   #1
glj
Member
 
Registered: Jul 2001
Location: London
Distribution: RH 9
Posts: 151

Rep: Reputation: 30
Reset Button


I can't remember if I read it here or somewhere else, but I half remember someone mentioning that you can re-program the reset button through one file somewhere (in /proc maybe, can't see it though). Did I make this up or what

If I didn't can you put anything you want in there?

cheers

glj
 
Old 02-13-2002, 06:07 AM   #2
sourceman
Member
 
Registered: Feb 2002
Posts: 48

Rep: Reputation: 15
This is not possible.
The reset switch is not software related.
 
Old 02-13-2002, 07:22 AM   #3
ca9mbu
LQ Newbie
 
Registered: Nov 2001
Location: Sunderland, UK
Distribution: Mandrake 8.1
Posts: 21

Rep: Reputation: 15
The reset button on the front of your PC will ALWAYS reboot the machine. However I believe that Linux allows you to re-program the 3-fingered-salute combination ctrl-alt-del. I think it's an X-Windows feature?

Matt
 
Old 02-13-2002, 08:13 AM   #4
glj
Member
 
Registered: Jul 2001
Location: London
Distribution: RH 9
Posts: 151

Original Poster
Rep: Reputation: 30
I realised that the reset button just moves the program counter back (can't remember the address now though). Should have asked if this creates some interrupt that linux could catch.

Can I change the inittab to point to any script of my choice for ctrl-alt-del??

Cheers

glj
 
Old 02-13-2002, 09:39 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

change that to whatever you want. some sites recommend setting it to an echo and a log action
 
Old 02-13-2002, 09:42 AM   #6
glj
Member
 
Registered: Jul 2001
Location: London
Distribution: RH 9
Posts: 151

Original Poster
Rep: Reputation: 30
YAY, nice one Cheers all!

Now, what can I have it do...
 
Old 02-13-2002, 12:19 PM   #7
DiamondViper
LQ Newbie
 
Registered: Feb 2002
Location: Canada Ontario
Distribution: RedHat
Posts: 10

Rep: Reputation: 0
You can rewire your reset button so that it suspends you computer ... i know you can do it in Win cuz my bro has his set up like that.

Not sure about Linux.
 
Old 02-13-2002, 12:29 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by DiamondViper
You can rewire your reset button so that it suspends you computer ... i know you can do it in Win cuz my bro has his set up like that.

Not sure about Linux.
well, all atx compatible mobos have reset and sleep connectors on them, so that's easy enough. That is, if you're case isn't good enough to have a proper sleep button already anyway.

Then again tho, Suspend To RAM support on linux is minimal at best.
 
Old 07-08-2008, 12:52 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Reset Button hook: 6 years later...

Quote:
Originally Posted by acid_kewpie View Post
well, all atx compatible mobos have reset and sleep connectors on them, so that's easy enough. That is, if you're case isn't good enough to have a proper sleep button already anyway.

Then again tho, Suspend To RAM support on linux is minimal at best.
So! lol, here we still are. Old thread, yes, but the perfect place.

Has anything changed as far as hooking the RESET button to make it do something other than kill instantly?
Anything I haven't found by Googling, that the newer kernels can do to 'software-rewire' the RESET button so that acpid can catch it?
Or is it really still a 'hardware' hard-wired button?
I did not see anything recorded in acpid.log after I pressed RESET, but then again, the machine reset pretty quick when I hit the button


I am about to have a look inside my machine anyhow; I have a new motherboard (6mos old or so) and seem to have fairly complete ACPI support (at least in theory). Maybe if I have no other connector to connect the RESET button to, I will just disconnect it. After all, the power button works fine, and IS ACPI-hookable.

Sasha

Last edited by GrapefruiTgirl; 07-08-2008 at 12:55 PM.
 
Old 07-14-2008, 10:02 AM   #10
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
I bloody well HOPE the reset button is hardware, I hate the feeling of something like that being programmable. What they did to the POWER button is unthinkable - to turn off my machine, I have to HOLD DOWN the button, and you can't buy a case with a switch that's a SWITCH. Why does "shutdown in windows" powering down the machine mean that I have to hold the button on the front of my case down?
 
Old 07-14-2008, 04:05 PM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
In many cases (resetreset) the power button function can be set in your BIOS. There are often options like "Suspend, power off instantly, or 4-second delay".

A case with a SWITCH would be rather pointless, as the power button is a momentary SPST button, and does not maintain connectivity after being released (unless maybe the case is old as hell, and then it *may* have a SPDT switch-button). It only sends a signal to the motherboard to tell the power supply to turn on (by dropping the green wire to ground).

S
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3 button mouse (scroll button) Spyiish Slackware 24 07-23-2005 01:37 PM
Reset the MBR? 123 Paul Linux - General 2 12-27-2004 02:00 PM
VNC and Reset yetwai Linux - Software 11 11-24-2003 02:22 PM
middle mouse button is paste.. but what if i dont have a mid mouse button? kublador Linux - Newbie 4 09-02-2003 08:59 AM
how do i reset my ip? i_is_cat Linux - Newbie 8 07-31-2003 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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