Computer power button not functioning until you login.
Hi all,
Is there any way I can get Fedora 8 to respond to my computer's power button being pressed even when no-one has logged in? It only appears to work after you log in... Thanks, E71 |
An alternative is to use the Shutdown option at the login screen. I have used Fedora 9, and I would use the Shutdown option...next time I can try to power down with the button...keep in mind that Linux likes to shutdown nicely, so that it can do all of its clean-up. You should use the Shutdown command. Any reason not to upgrade to Fedora 9?
If you power-down without letting Linux shutdown nicely, you may lose some data or have to give Linux the chance to clean-up on reboot. Is that problem universal for Fedora 8? |
Quote:
My FC8 box has no keyboard/mouse/screen connected and is controlled purely via SSH over the network. To shutdown, I normally issue the shutdown -h now command. Normally, when I switch it on, it always remains on the login screen but I'd like for it to shutdown as normal (clean shutdown) by pressing (without holding) the power button (just like how you would in Windows or Linux after logging in). Any suggestions? Thanks, E71 |
E71, I think that I get your question after you explained it a bit more. There is something called Power Management, and while I can not point to the specific place in FC8 to find it (since I am not using the FC9 that I have right now...) you would need to change the settings so that it would allow you to power down ("shutdown") nicely from the login screen. If you look for it, you should find it. Someone else who has FC8 or 9 handy should be able to give the exact answer to your question.
Another option that I would like, that is better than just attaching a keyboard to it and to know what to do to get it to shutdown, is to make it into a touch-screen system. Then you just touch the shutdown option, and you are done. Too fancy for you? |
Hehe. Not too fancy, just too expensive. Still, thanks for the suggestions, I'll check it out.
|
Have a look at the file /etc/acpi/acpi_handler.sh
That's its location on Slackware - on RH it may have a different location. You will need something like the following in it: Code:
If you want it to do something more complex, then have it call your own script in that line and put the commands you want it to execute in that script. Place your script in the same directory as that of acpi_handler.sh. |
Thanks for the suggestion. I'm having some trouble finding the Redhat counterpart but I'm sure it's there somewhere. Thanks again.
|
Did you find the counterpart in RH? Post your solution if it works now.
|
I'm afraid I couldn't find it.
It would be nice to know how because it would make my fileserver/nas a little more like an appliance. |
This is not a direct answer to your question, but should help you get started in the right direction.
|
Thank you. I'll check it out.
|
All times are GMT -5. The time now is 03:55 PM. |