Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feral Gamemode #142

Open
Azathoth-88 opened this issue Oct 31, 2024 · 1 comment
Open

Feral Gamemode #142

Azathoth-88 opened this issue Oct 31, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Azathoth-88
Copy link

Hi all,

First, thank you very much for your hard work, i've just came across Wolf recently but this is truly an amazing project!

I'm sure some of us in the same shoes, but i run this stack on a headless server, and most of the time my main concern is to make it's energy consumption as low as possible, hence using powersave scheduler.

I've seen that retroarch have a native integration with gamemode, which seems to be an ideal solution to trigger performance mode and various optimalizations, so i've installed it on my server, gamemoded -t passes all the tests.
However when i run Retroarch as a container, it doesnt trigger gamemode (gamemoded -s returns inactive).

So far I have tried adding "GroupAdd": ["gamemode"], to the host_config variable, and setting the container to priviliged, but it doesn't seem to do the trick. In fact, adding the gamemode group fails to start the container at all with the below error message.
[DOCKER] error 500 - {"message":"Unable to find group gamemode: no matching entries in group file"}
Priviliged on it's own doesn't seem to make it work either.
The cmd API command might work, but i'm not sure where to put it, and if it's overrides the default entrypoint, so i haven't experimented with that.

My question is, did anyone managed to overcome this issue, or how it would be possible to enable gamemode for the containers?

Many thanks ! :)

@ABeltramo
Copy link
Member

I've quickly looked into gamemode and I feel that this wouldn't work as easily since it's using systemd to exchange messages with the daemon (that would need to be exposed to our Docker containers).

I guess ideally we would integrate libgamemode into Wolf so that we can trigger it when starting/stopping a stream. Unfortunately looks like documentation is lacking in that regard, if anyone wants to take a stab at it I'd be happy to help!

@ABeltramo ABeltramo added enhancement New feature or request good first issue Good for newcomers labels Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants