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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-03-2003, 04:16 PM
|
#1
|
LQ Newbie
Registered: Jun 2003
Posts: 3
Rep:
|
Shutdown with power button
Hi,
Does anybody know how to shutdown the linux redhat 7 or 8 when one presses the power button?
It would be useful to me because most of the time I don't have a monitor connected to my linux server.
Thanks,
Hector Rios
Last edited by hriosm; 06-03-2003 at 04:18 PM.
|
|
|
06-03-2003, 04:18 PM
|
#2
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
i don't think you can do it, but you can setup
poweroff if you have the apm module loaded.
type poweroff, and the machine shuts down and off.
|
|
|
06-04-2003, 06:20 PM
|
#3
|
LQ Newbie
Registered: Jun 2003
Posts: 3
Original Poster
Rep:
|
pOWEROFF
I know it can be done because I have a 3Com Internet server that works this way. It comes with no keyboard and video connector closed. You would do the setup thru the internet.
Unfortunately, 3Com didn't provide root's password and can't access to check how they did it.
|
|
|
06-05-2003, 05:47 PM
|
#4
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
Moved to the Hardware forum
Yep - you need to build ACPI into your kernel or as a module. Then you can load the ospm_button module and start acpid. You should have a script in your /etc/acpi that will be called when a button event occurs. Usually it's not much more than 'shutdown -h now'.
We use it a lot for clients who have their own server. There's always som twit in the office who thinks that it's a good idea the shutdown the server because his Excel crashed. Really. It happens.
Last edited by mcleodnine; 06-05-2003 at 05:49 PM.
|
|
|
06-06-2003, 02:43 PM
|
#5
|
LQ Newbie
Registered: Jun 2003
Posts: 3
Original Poster
Rep:
|
Thanks McLeod (?)
I'll try. It may take me a while because my knowledge is not that good in those areas but will get there. Thanks again.
Hector
|
|
|
All times are GMT -5. The time now is 12:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|