From ea524fd764d4922298994338428038485dbd389c Mon Sep 17 00:00:00 2001 From: ferreo Date: Thu, 16 Jan 2025 20:01:31 +0000 Subject: [PATCH] Fix scx scheduler mode selection order --- .github/release-nest-v3 | 2 +- falcond/debian/changelog | 6 ++++++ falcond/src/clients/scx_scheds.zig | 8 ++++---- main.sh | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/release-nest-v3 b/.github/release-nest-v3 index d8263ee..56a6051 100644 --- a/.github/release-nest-v3 +++ b/.github/release-nest-v3 @@ -1 +1 @@ -2 \ No newline at end of file +1 \ No newline at end of file diff --git a/falcond/debian/changelog b/falcond/debian/changelog index 97db8d5..a275f2e 100644 --- a/falcond/debian/changelog +++ b/falcond/debian/changelog @@ -1,3 +1,9 @@ +falcond (1.0.8-101pika2) pika; urgency=low + + * Fix scx scheduler mode selection order + + -- ferreo Sun, 12 Jan 2025 13:48:00 +0300 + falcond (1.0.7-101pika2) pika; urgency=low * Don't load profiles in subfolders diff --git a/falcond/src/clients/scx_scheds.zig b/falcond/src/clients/scx_scheds.zig index a3e6f7e..91df844 100644 --- a/falcond/src/clients/scx_scheds.zig +++ b/falcond/src/clients/scx_scheds.zig @@ -102,8 +102,8 @@ const SCX_IFACE = "org.scx.Loader"; fn modeToInt(mode: ScxSchedModes) u32 { return switch (mode) { .default => 0, - .power => 1, - .gaming => 2, + .gaming => 1, + .power => 2, .latency => 3, .server => 4, }; @@ -112,8 +112,8 @@ fn modeToInt(mode: ScxSchedModes) u32 { fn intToMode(value: u32) ScxError!ScxSchedModes { return switch (value) { 0 => .default, - 1 => .power, - 2 => .gaming, + 1 => .gaming, + 2 => .power, 3 => .latency, 4 => .server, else => error.InvalidValue, diff --git a/main.sh b/main.sh index 385a101..c3afeb2 100755 --- a/main.sh +++ b/main.sh @@ -2,7 +2,7 @@ set -e -VERSION="1.0.7" +VERSION="1.0.8" source ./pika-build-config.sh