Jump to content

Shutdown when pressing power button in fvwm2


Johnny Ljunggren
 Share

Recommended Posts

  • 2 weeks later...

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

Link to comment
Share on other sites

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 by scarecrow
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...