Bug 976834
Summary: | Power Management: suspend when laptop lid close should be easily configurable | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ondrej Hudlicky <ohudlick> | |
Component: | control-center | Assignee: | Control Center Maintainer <control-center-maint> | |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 19 | CC: | bnocera, control-center-maint, dmitryburstein, markus, mclasen, me, michael.mzik, mkasik, ofourdan, ohudlick, pmuller, rhughes, rstrode, tbzatek, tiagomatos, vbenes | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1001511 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-19 13:26:30 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
Ondrej Hudlicky
2013-06-21 15:17:09 UTC
Hopefully this is the correct component, please advise. > b) workaround described in docs doesn't work
> $ gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action blank
> No such key 'lid-close-ac-action'
Which docs were that ? They should be updated to not refer to nonexisting keys.
(In reply to Matthias Clasen from comment #3) > > b) workaround described in docs doesn't work > > $ gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action blank > > No such key 'lid-close-ac-action' > > Which docs were that ? They should be updated to not refer to nonexisting > keys. I found this documentation in <F1> Gnome Help -- Power & Battery User menu -> Settings -> Power -> <F1> Is there any way how to configure my laptop (with F19 Gnome Shell) to not suspend when the lid is closed while running on battery? As a workaround, make sure the file /etc/systemd/logind.conf includes an uncommented line "HandleLidSwitch=ignore", and then just restart the systemd-logind service. But you are right: this should be made easily configurable in the power settings! If we make this 'easily configurable', that basically means have to train our users to a) close the lid and b) wait for the suspend led to come on before putting the laptop away. It is a recipe for accidents like: Close the lid, start moving to another room, meet somebody in the hallway, get in a discussion, put the laptop in your back and go with the person for a walk. Now your laptop is simmering in its own heat in your bag... I agree that software should save misbehaving users from harming the system or themselves, but definitely not for cost of having the software unusable for common/majority user. According to laptop user manual, everybody should check whether the laptop is properly suspended/hibernated/off before putting it to the bag (especially when the auto-suspend-on-lid-close is disabled). I do and take responsibility for my behaviour if I fail. I am afraid that points in comment 6 are not compatible with the usability maxims (e.g. comment 2). It make sense to remove useless config options to reduce maintenance costs and code complexity, but in this case I feel the user power are unnecessarily reduced -> usability drop -> quality deficiency. Is the shiny Gnome3 for smart users or for cats and donkeys? Give me chance to use the system as a smart user and keep the standard config options. I'd like to configure my work environment according to my needs. I see no reason why this bug blocks 908276 It's the way we've always handled things by default at least, but the move to systemd to handle suspend and inhibition means that we need to do more work on the power plugin side. Re-adding the code would complicate already very complicated code for not much gain, since there are alternatives. There's also a funny tool for your particular use case: http://www.hadess.net/2011/09/omg-i-haz-designed-bug-fix.html office-runner is being reviewed in Fedora at: https://bugzilla.redhat.com/show_bug.cgi?id=998238 You can also modify /etc/systemd/logind.conf to read: HandleLidSwitch=ignore So that lid closure aren't taken into account. You can also inhibit suspend for a period of time, or while a particular application is running by doing: systemd-inhibit --what=handle-lid-switch sleep 3600 Finally, there might also be a gnome-shell extension for this. I'll close this, as we won't be bringing back the option, as alternatives are already available. I do not believe the statement in comment #6 is valid; we are not protecting people against 'simmering laptops' as the original functionality was 'lid-close-ac-action', which handles the action to take for the lid switch when on AC power. This functionality has now disappeared... and for which HandleLidSwitch=ignore does not provide an appropriate alternative. |