-
Notifications
You must be signed in to change notification settings - Fork 185
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
Support for hybrid graphic cards #20
Comments
Hi @mgerhardy, to be specific here, what sort of behavior are you looking for? Controlling optirun etc. may be something outside of the scope of a daemon, unfortunately. It's also worth noting too that with Vulkan these issues start to go away - the game should allow you to choose which GPU is to be used. |
I'm looking for activating the main gpu automatically. To be honest I'm not sure how optirun works - but for e.g. nvidia-prime it is already enough to export an env var ( for example:
and on the other side:
But I'm not sure what exactly is needed for the other solutions out there. |
Such a feature is out of the scope of GameMode and could not be properly implemented. Let's document this and reference the issue. Closes: FeralInteractive#20 Signed-off-by: Kai Krakow <kai@kaishome.de>
I think with the new gamemoderun command this should be implemented. Currently there are 4 possible options to run an app with a secondary GPU: With that in mind, it should also be added an option to set |
This is a cool idea actually, gamemoderun could evolve into a helper script for this kind of stuff! |
In that case, what happens if you run gamemoderun on an app with built-in gamemode support? Because if Hybrid GPU would be implemented in gamemoderun, it would be a very nice replacement to optirun etc for Hybrid GPU user. |
I think this is a fine situation - the only difference is the daemon sees the app request gamemode twice - a safe operation. |
So is someone working on this? I would give it a shot, but I can't find where the gamemoderun code is (probably would with make, but I never used meson). Nevermind I found it. But I think if gamemoderun stays just a shell script this will be a problem, since loading a config isn't that trivial. |
It's here: https://github.com/FeralInteractive/gamemode/blob/master/data/gamemoderun.in It's not on my immediate list, so I'd say go for it |
I already got the bash script working, wasn't that much work, but I would take some advice on how to get the config. I think the best option would be to add a DBUS option to gamemoded to get the config. Any suggestions? |
@mdiluz Do we want to be adding major functionality to |
Yeah, I'd been mulling on it for a while - realising it'd need access to the config to make it useful kind of makes it a little bit more problematic too. Perhaps it's simple enough for someone to write a wrapper scipt to do this for themselves? |
I wouldn't call it a major functionality for most people. If you have a hybrid gpu, you have to use a command before starting a game anyway. |
Bumblebee, nvidia-prime and all the other options that exist
The text was updated successfully, but these errors were encountered: