Bug 1268963

Summary: Can't set action to be made when battery's level is critical
Product: [Fedora] Fedora Reporter: Giulio 'juliuxpigface' <juliux.pigface>
Component: control-centerAssignee: Control Center Maintainer <control-center-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: bnocera, control-center-maint, fmuellner, mkasik, ofourdan, oholy, otaylor, rstrode, tiagomatos
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-09 13:35:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Giulio 'juliuxpigface' 2015-10-05 18:18:57 UTC
Description of problem:
I can't set the action to be automatically made by Gnome when battery's level is critical. Nothing seems to happen when I click on the appropriate option.

Version-Release number of selected component (if applicable):
gnome-shell-3.16.3-1.fc22.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Boot a laptop which has got a battery inserted.
2. Log in to Gnome.
3. Open the power management GUI.
4. Go to the bottom of the menu and click on the option which allows users to customize the action to be made when battery's level is critical.

Actual results:
Nothing happens.

Expected results:
User should be able to switch from the default "hibernate" to "shutdown" or "suspend".

Additional info:
There seems to be a workaround, for example:

$ gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action "shutdown"

Comment 1 Florian Müllner 2015-10-08 10:41:10 UTC
(In reply to Giulio 'juliuxpigface' from comment #0)
> Steps to Reproduce:
> 1. Boot a laptop which has got a battery inserted.
> 2. Log in to Gnome.
> 3. Open the power management GUI.

Assuming this refers to Settings' power panel, so reassigning there - could also be a gnome-settings-daemon issue, but not gnome-shell.

Comment 2 Bastien Nocera 2015-10-09 13:35:58 UTC
That's done in /etc/UPower/UPower.conf now, since upower 0.99.x:
http://www.hadess.net/2013/10/more-power-management-changes.html

This has been the case since GNOME 3.12, so brought with Fedora 21.