Johnny Ljunggren Posted October 31, 2007 Report Share Posted October 31, 2007 I've set up some computers that will use Fvwm2 as window manager. How can I configure the system such that it will do a controlled shutdown after one press on the power button? regards Johnny [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
scarecrow Posted November 12, 2007 Report Share Posted November 12, 2007 http://wiki.archlinux.org/index.php/Shutti...he_power_button It applies, more or less, for every distro out there. Quote Link to comment Share on other sites More sharing options...
Johnny Ljunggren Posted November 13, 2007 Author Report Share Posted November 13, 2007 Hmm, seems that I am unable to accomplish this. Here's what I've done: # service acpid status acpid (pid 3141) is running... # cat /etc/acpi/events/power event=button/power (PWR.||PBTN) action=/sbin/poweroff Mandriva has only got an actions directory in /etc/acpi, so I added power there as well: # cat /etc/acpi/actions/power event=button/power (PWR.||PBTN) action=/sbin/poweroff ls -l /sbin/poweroff lrwxrwxrwx 1 root root 4 Nov 11 22:43 /sbin/poweroff -> halt # ls -l /sbin/halt -rwsr-sr-x 1 root root 10384 Jan 6 2007 /sbin/halt Running halt/poweroff directly shuts down correcly, so it seems that the power action is not triggered. How do I debug this? Johnny Quote Link to comment Share on other sites More sharing options...
scarecrow Posted November 13, 2007 Report Share Posted November 13, 2007 (edited) Hmmm... I'd rather remove that file, recheck the BIOS ACPI settings, and probably reinstall acpid. In the only instance I have Mandriva running ( a VMWare virtual machine, running Cooker) i do have an /etc/acpi/events directory, containing two files- power and sleep, none created by hand. cat /etc/acpi/events/power returns event=button/power (PWR.|PBTN) action=/etc/acpi/actions/pm-fallback-shutdown and /etc/acpi/events/sleep has event=button/sleep action=/etc/acpi/actions/pm-fallback-suspend Edited November 13, 2007 by scarecrow Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.