Gamemode + Steam

gamemoderun steam

Produces the following error:

Steam on Linux now requires the ability to create new user namespaces.

If the file /proc/sys/kernel/unprivileged_userns_clone exists, check that
it contains value 1.

If the file /proc/sys/user/max_user_namespaces exists, check that its
value is high enough.

My configuration:

  programs.gamemode = {
    enable = true;
    enableRenice = true;
    settings = {
      general = {
        softrealtime = "auto";
        renice = 10;
      };
      custom = {
        start = "notify-send -a 'Gamemode' 'Optimizations activated'";
        end = "notify-send -a 'Gamemode' 'Optimizations deactivated'";
      };
    };
  };

Haven’t seen anything about it in the documentation…

/proc/sys/kernel/unprivileged_userns_clone/proc/sys/kernel/unprivileged_userns_clone does not exist.

I assume you want gamemode for your games instead of steam itself. Instead of running steam in gamemode you can put gamemoderun %command% into the steam launch options of a game. This way gamemode gets activated on launch.

It was mentioned in the wiki, so I use that. But the gamemoderun steam method was mentioned as well, so I was wondering if I was doing something wrong. Besides, too lazy to add it for every game…