mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-03 06:07:20 +02:00

The platform profile lives in /sys/firmware/acpi/platform_profile. The desiredprof and defaultprof options correspond to the values for the platform profile set when gamescope begins and ends, respectively. HACK: The platform profile may restrict what values the governor can take, so we choose to set the governor before the platform profile in order to store the correct default governor, and restore the platform profile before the governor. This is done to maximize correctness after restoration, but it can cause issues if the previous platform profile restricts the governor. TODO: Save all the state we care about before any of it is changed. In thsi case, we should set (and restore) the platform profile before the governor.
76 lines
1.4 KiB
Meson
76 lines
1.4 KiB
Meson
|
|
# Small target util to get and set cpu governors
|
|
cpugovctl_sources = [
|
|
'cpugovctl.c',
|
|
]
|
|
|
|
cpugovctl = executable(
|
|
'cpugovctl',
|
|
sources: cpugovctl_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
],
|
|
install: true,
|
|
install_dir: path_libexecdir,
|
|
)
|
|
|
|
# Small target util to get and set gpu clocks values
|
|
gpuclockctl_sources = [
|
|
'gpuclockctl.c',
|
|
]
|
|
|
|
gpuclockctl = executable(
|
|
'gpuclockctl',
|
|
sources: gpuclockctl_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
],
|
|
install: true,
|
|
install_dir: path_libexecdir,
|
|
)
|
|
|
|
# Small target util to park and unpark cores
|
|
cpucorectl_sources = [
|
|
'cpucorectl.c',
|
|
]
|
|
|
|
cpucorectl = executable(
|
|
'cpucorectl',
|
|
sources: cpucorectl_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
],
|
|
install: true,
|
|
install_dir: path_libexecdir,
|
|
)
|
|
|
|
# Small target util to set values in /proc/sys/
|
|
procsysctl_sources = [
|
|
'procsysctl.c',
|
|
]
|
|
|
|
procsysctl = executable(
|
|
'procsysctl',
|
|
sources: procsysctl_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
],
|
|
install: true,
|
|
install_dir: path_libexecdir,
|
|
)
|
|
|
|
# Small target util to get and set platform profile
|
|
platprofctl_sources = [
|
|
'platprofctl.c',
|
|
]
|
|
|
|
platprofctl = executable(
|
|
'platprofctl',
|
|
sources: platprofctl_sources,
|
|
dependencies: [
|
|
link_daemon_common,
|
|
],
|
|
install: true,
|
|
install_dir: path_libexecdir,
|
|
)
|