summaryrefslogtreecommitdiff
path: root/etc
AgeCommit message (Collapse)AuthorFilesLines
2024-04-25linux: up-backend: A safeguard for the risky CriticalPowerActionKate Hsuan1-1/+1
If AllowRiskyCriticalPowerAction is true and the CriticalPowerAction is "Suspend", The "Suspend" can be the CriticalPowerAction. Otherwise, "HybridSleep" will be the CriticalPowerAction.
2024-04-25up-config: The warning message for the risky CriticalPowerActionKate Hsuan1-2/+9
The warning message will be shown when CriticalPowerAction is "Suspend". One iwarning message is for enabling the risky CriticalPowerAction and the other is to show the potential risk when AllowRiskyCriticalPowerAction is true.
2024-04-25linux: allow Suspend as CriticalPowerActionAlexander Couzens1-0/+2
When using UPower in a non-hybernate setup, the result of a CriticalPowerAction would be PowerOff. Certain users prefer Suspend instead, because this is the only way to recover graceful from that state. Suspend action will only used, when explicit configured. Closes: #23 Closes: #59 Signed-off-by: Kate Hsuan <hpa@redhat.com>
2021-09-07etc: Document Time* unitpacien1-3/+3
2021-09-06build: Remove autotoolsBastien Nocera1-7/+0
2021-09-02build: Support building upower with mesonBenjamin Berg1-0/+1
2021-07-22etc: Tweak default percentage levelsBastien Nocera1-4/+4
If we want the computer to be able to take useful action about the low battery, we should have a slightly higher "low" percentage level so that power saving made really makes a difference in runtime. Also bump "critical" slightly so that doom isn't quite as near but in the distance nonetheless. The "action" level stays the same, as 1% is too close to some batteries' actual switch off point, eg. the computer might brown out before we see 1%.
2015-11-12etc: Update IgnoreLid documentationBastien Nocera1-2/+3
It's not used by gnome-settings-daemon any more, logind reads the Lid status itself. https://bugs.freedesktop.org/show_bug.cgi?id=92920
2015-11-12etc: Change the default low battery policyBastien Nocera1-3/+5
It is now based on the percentage of battery left, rather than the usually unreliable "time left". See configuration file for more details. https://bugs.freedesktop.org/show_bug.cgi?id=92920
2014-05-07daemon: Deprecate "IsDocked" propertyBastien Nocera1-8/+0
The IsDocked property has been incorrect for a number of laptops for a while, as it thought that laptops with hybrid graphics cards were always docked. The alternative would have been to use the platform/dock_station devices, but those are only exported for ACPI docking stations. Instead, whether an external display is attached (which isn't really docking) should be checked in the same place where the policy depending on the value should be applied, such as gnome-settings-daemon. https://bugs.freedesktop.org/show_bug.cgi?id=36818
2013-10-26linux: Add NoPollBatteries configuration optionBastien Nocera1-0/+9
For system integrators. If your firmware is helpful to user space and automatically sends out uevent when the battery level changes (rather than just the battery state) as on most machines, you can enable "NoPollBatteries" in the configuration option, and reduce power consumption from UPower and its listeners.
2013-10-14daemon: Add CriticalPowerActionBastien Nocera1-0/+12
Paraphrasing from the configuration option: The action to take when "TimeAction" or "PercentageAction" above has been reached for the batteries (UPS or laptop batteries) supplying the computer. This is done 20 seconds after the warning-level variable got set to UP_DEVICE_LEVEL_ACTION has been set, to give the opportunity to front-ends to display a (short) warning. This is only implemented for the Linux backend, using logind.
2013-10-14etc: Add configuration for battery levelsBastien Nocera1-0/+41
2013-10-14etc: Remove now unused configuration optionsBastien Nocera1-24/+1
2013-10-14etc: Disable Watts-Up devices by defaultBastien Nocera1-2/+2
They are few are far between, and users of the device can spare the time to enable this by default. https://bugs.freedesktop.org/show_bug.cgi?id=33846
2012-01-06Add boolean RunPowersaveCommand to UPower.confLandry Breuil1-0/+6
Defaulting to true, it controls whether we want the powersave commands to be run when running on battery/plugging ac. Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-07-19Use git.mk and remove the manual .gitignore filesRichard Hughes1-0/+1
2011-03-28Add a config option 'IgnoreLid' so users with broken / inverted lid switches ↵Richard Hughes1-0/+9
don't suspend at session start
2011-03-14Add a config option 'EnableWattsUpPro' to disable the Watts Up Pro deviceRichard Hughes1-0/+14
Annoyingly, the device used in the Watts Up Pro device seems to be a generic USB->serial adaptor, which means it doesn't have a unique vendor and product ID. If we try to probe for the WUP device, we can actually upset other devices that are not expecing to be probed. This fixes #33846 although we actually still need to be more strict in detecting a true WUP device.
2011-03-03Add an option for polling dock devices in UPower.conf, defaulting to falseRichard Hughes1-0/+9
2010-04-14Add a config file with SleepTimeout and AllowHibernateEncryptedSwap entriesRichard Hughes2-0/+28