Skip to content

gamemode is unable to change the processor scheduler #280976

@3JlOy-PYCCKUi

Description

@3JlOy-PYCCKUi

Describe the bug

gamemode is unable to change the processor scheduler

Steps To Reproduce

Steps to reproduce the behavior:

  1. set any (schedutil for example) CPU scheduler as default (powerManagement.cpuFreqGovernor = "schedutil";)
  2. set programs.gamemode.enable and programs.gamemode.enableRenice to true, set programs.gamemode.settings.general.desiredgov to different CPU scheduler (performance for example)
  3. run any command with gamemoderun and check logs of service (journalctl --user -e -u gamemoded), there will be pkexec "Not authorized" errors. Or run /run/wrappers/bin/gamemoded -t it 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

@kira-bruneau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions