Computer power button not functioning until you login.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
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.
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?
Thanks for the reply, however to clarify my situation:
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).
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?
That's its location on Slackware - on RH it may have a different location.
You will need something like the following in it:
Code:
#!/bin/sh
# Default acpi script that takes an entry for all actions
IFS=${IFS}/
set $@
case "$1" in
button)
case "$2" in
power) /sbin/init 0
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*)
logger "ACPI group $1 / action $2 is not defined"
;;
esac
The line in red is the crucial line. You might like to change it to one of the shutdown commands or poweroff.
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.
Last edited by harryhaller; 08-25-2008 at 11:33 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.