summaryrefslogtreecommitdiff
path: root/testing/source/vtown/kde/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules
diff options
context:
space:
mode:
Diffstat (limited to 'testing/source/vtown/kde/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules')
-rw-r--r--testing/source/vtown/kde/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/source/vtown/kde/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules b/testing/source/vtown/kde/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules
new file mode 100644
index 00000000..f001848e
--- /dev/null
+++ b/testing/source/vtown/kde/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules
@@ -0,0 +1,9 @@
+polkit.addRule(
+ function(action, subject) {
+ if ( action.id == "org.kde.powerdevil.discretegpuhelper.hasdualgpu" &&
+ subject.isInGroup("power") ) {
+ return polkit.Result.YES;
+ }
+ }
+);
+