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.
Details
Details
- Reviewers
broulik - Group Reviewers
Plasma - Commits
- R122:e41eedbec274: Add information about existence of discrete GPU
Diff Detail
Diff Detail
- Repository
- R122 Powerdevil
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
daemon/backends/upower/discretegpu_helper_actions.actions | ||
---|---|---|
4 | You can drop all those localized ones, this will be (should be?) taken care of by scripty | |
daemon/backends/upower/discretegpuhelper.h | ||
33 | explicit | |
daemon/powerdevilbackendinterface.cpp | ||
33 ↗ | (On Diff #8392) | Why do we have it both in Core and the backendinterface? |