-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
0.kind: bugSomething is brokenSomething is broken
Description
Describe the bug
gamemode is unable to change the processor scheduler
Steps To Reproduce
Steps to reproduce the behavior:
- set any (schedutil for example) CPU scheduler as default (
powerManagement.cpuFreqGovernor = "schedutil";) - set
programs.gamemode.enableandprograms.gamemode.enableReniceto true, setprograms.gamemode.settings.general.desiredgovto different CPU scheduler (performance for example) - run any command with
gamemoderunand check logs of service (journalctl --user -e -u gamemoded), there will be pkexec "Not authorized" errors. Or run/run/wrappers/bin/gamemoded -tit will report that tests failing
Expected behavior
The CPU scheduler is changed to the one specified in programs.gamemode.settings.general.desiredgov for the duration of the execution of the gamemoderun command, and then returned to the default value
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
tested on nixpkgs commit 317484b1ead87b9c1b8ac5261a8d2dd748a0492d
Notify maintainers
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.6.9-xanmod1, NixOS, 24.05 (Uakari), 24.05.20240108.317484b`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.1`
- nixpkgs: `/nix/store/wckjmzcqc347li9r9154nvav82f22g8n-0g53xyh39z3y90p4d8r341wbqyjy1zhl-source`Add a 👍 reaction to issues you find important.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken