Bug 10297

Summary: Button Power on PC don't work in XFCE
Product: Mageia Reporter: Alex Loginov <loginov_alex>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: jani.valimaa
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: pm-fallback-policy CVE:
Status comment:

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