power-profiles-daemon/data/power-profiles-daemon.policy
Mario Limonciello d08683ecf1 Add support for turning on/off upower at runtime
This will allow DE environments to decide whether they want to allow
actions and profiles to dynamically change from the battery level or
AC adapter presence.
2025-02-07 19:29:41 -06:00

51 lines
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
<vendor>power-profiles-daemon</vendor>
<vendor_url>https://gitlab.freedesktop.org/hadess/power-profiles-daemon</vendor_url>
<action id="org.freedesktop.UPower.PowerProfiles.switch-profile">
<description>Switch Power Profile</description>
<message>Privileges are required to switch power profiles.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.UPower.PowerProfiles.hold-profile">
<description>Hold Power Profile</description>
<message>Privileges are required to hold power profiles.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.UPower.PowerProfiles.configure-action">
<description>Configure action</description>
<message>Privileges are required to configure actions.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.UPower.PowerProfiles.configure-battery-aware">
<description>Configure action</description>
<message>Privileges are required to configure battery-awareness.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>