ACPI: shutdown computer by pushing power button...
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) 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.
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.
ACPI: shutdown computer by pushing power button...
Ok, I know this is lazy, but still... I would like to shutdown my computer by pushing the power button. Is this possible on Mandrake 9.1? If yes... how?
You mean right in the middle of a session? Disks mounted, jobs running, apps open?
No.
You could try to set up an icon on your desktop that was a link to /sbin/poweroff, but don't blame me if that spreadsheet you spent all day working on gets lost!
On some computers, I think this is controlled by the BIOS holding down the power switch for 4 seconds will turn the computer off instantly (just kidding of course)
You can set the properties of Ctrl-Alt-Del to shutdown the computer in the /etc/inittab file. It might be possible to write an app to with a BIOS call to detect when the power switch is pressed.
no I mean I have a PC without keyboard or mouse running some servers. I just want to push the power button, else I have to log in as root and run halt.
Originally posted by jkobrien You mean right in the middle of a session? Disks mounted, jobs running, apps open?
No.
You could try to set up an icon on your desktop that was a link to /sbin/poweroff, but don't blame me if that spreadsheet you spent all day working on gets lost!
APM is able todo that as well, I don't need an suspend mode. What I need is a replacement to running 'halt', but by using the power button instead of the keyboard.
Originally posted by elluva APM is able todo that as well, I don't need an suspend mode. What I need is a replacement to running 'halt', but by using the power button instead of the keyboard.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.