-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration files for systemd, dbus and polkit
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | ||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | ||
|
||
<busconfig> | ||
<policy user="root"> | ||
<allow own="net.hadess.PowerProfiles"/> | ||
</policy> | ||
|
||
<policy context="default"> | ||
<allow send_destination="net.hadess.PowerProfiles" send_interface="net.hadess.PowerProfiles"/> | ||
<allow send_destination="net.hadess.PowerProfiles" send_interface="org.freedesktop.DBus.Introspectable"/> | ||
<allow send_destination="net.hadess.PowerProfiles" send_interface="org.freedesktop.DBus.Properties"/> | ||
<allow send_destination="net.hadess.PowerProfiles" send_interface="org.freedesktop.DBus.Peer"/> | ||
</policy> | ||
</busconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?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>TuneD</vendor> | ||
<vendor_url>https://tuned-project.org/</vendor_url> | ||
|
||
<action id="net.hadess.PowerProfiles.HoldProfile"> | ||
<description>Hold power profile</description> | ||
<message>Authentication is 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="net.hadess.PowerProfiles.ReleaseProfile"> | ||
<description>Release power profile</description> | ||
<message>Authentication is required to release power profiles.</message> | ||
<defaults> | ||
<allow_any>no</allow_any> | ||
<allow_inactive>no</allow_inactive> | ||
<allow_active>yes</allow_active> | ||
</defaults> | ||
</action> | ||
|
||
</policyconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=TuneD-to-PPD API Translation Daemon | ||
Requires=tuned.service | ||
Before=multi-user.target display-manager.target | ||
|
||
[Service] | ||
Type=dbus | ||
PIDFile=/run/tuned/tuned-ppd.pid | ||
BusName=net.hadess.PowerProfiles | ||
ExecStart=/usr/sbin/tuned-ppd | ||
|
||
[Install] | ||
WantedBy=graphical.target |