Use power-profiles-daemon[1] to implement switchable power profiles. The performance profile will only be available on systems which provide this functionality. [1]: https://gitlab.freedesktop.org/hadess/power-profiles-daemon