jgrulich created this revision. jgrulich added reviewers: broulik, Plasma. jgrulich set the repository for this revision to rPOWERDEVIL Powerdevil. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY This patch adds a kauth helper class which just checks existence of /sys/kernel/debug/vgaswitcheroo/switch file, which means the user has dual gpu in case of existence. The value we get using that helper class is exposed over DBus so it can be used outside as well. REPOSITORY rPOWERDEVIL Powerdevil REVISION DETAIL https://phabricator.kde.org/D3451 AFFECTED FILES daemon/backends/CMakeLists.txt daemon/backends/upower/discretegpu_helper_actions.actions daemon/backends/upower/discretegpuhelper.cpp daemon/backends/upower/discretegpuhelper.h daemon/org.kde.Solid.PowerManagement.xml daemon/powerdevilbackendinterface.cpp daemon/powerdevilcore.cpp daemon/powerdevilcore.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: jgrulich, broulik, #plasma Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas