Bug 10297 - Button Power on PC don't work in XFCE
Summary: Button Power on PC don't work in XFCE
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-26 19:11 CEST by Alex Loginov
Modified: 2013-09-07 15:25 CEST (History)
1 user (show)

See Also:
Source RPM: pm-fallback-policy
CVE:
Status comment:


Attachments

Description Alex Loginov 2013-05-26 19:11:37 CEST
Description of problem: Button Power on PC don't work in XFCE


Version-Release number of selected component (if applicable): pm-fallback-policy-0.1


How reproducible: always


Steps to Reproduce:
1. to run XFCE
2. to press button Power off on your PC
3. no effect

Solution - new files /etc/acpi/events/power and /etc/acpi/actions/pm-fallback-shutdown.

/etc/acpi/events/power:

event=button/power (PWR.|PBTN)
action=/etc/acpi/actions/pm-fallback-shutdown

/etc/acpi/actions/pm-fallback-shutdown:

#!/bin/sh
/usr/bin/poweroff
#/usr/bin/pm-has-power-policy || /sbin/poweroff


Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-05-28 21:35:36 CEST
and it works in other desktop ?
Comment 2 Jani Välimaa 2013-06-17 18:56:01 CEST
New xfce4-power-manager should handle PowerOff correctly with systemd without any extra scripts/files.

Of course Xfce needs to be configured (with xfce4-power-manager-settings) to shutdown using power button.

CC: (none) => jani.valimaa

Comment 3 Jani Välimaa 2013-09-07 15:25:46 CEST
I'm closing this as FIXED for now, feel free to reopen if needed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.