-
Notifications
You must be signed in to change notification settings - Fork 188
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
Gpu device never parsed? #486
Comments
i had the same issue. OS: Nixos 24.05 |
Same issue, it doesn't seem to successfully read the config when This seems to be the relevant code for reading the config: gamemode/daemon/gamemode-config.c Line 803 in c54d6d4
gamemode/daemon/gamemode-config.c Lines 60 to 66 in c54d6d4
gamemode/daemon/gamemode-config.c Lines 452 to 462 in c54d6d4
And this is the place that calls that code: gamemode/daemon/gamemode-gpu.c Lines 74 to 86 in c54d6d4
And this is what ends up being 0 instead of 1: Lines 35 to 49 in c54d6d4
I can't immediately see an error here just from looking at the code, as it seems to just boil down to a @afayaz-feral Sorry for the direct ping, would you have any guess why this function fails to work when the value is |
Here's what I'm seeing:
The error message is from here: Line 118 in c54d6d4
This loop doesn't use
So the bug is that every card is assumed to have a /vendor file, which isn't the case for simple-framebuffer. |
Implementing #364 would've been nice. |
Describe the bug
gamemoded -t
does not look for the device set in settings, it always looks for default value which is 0To Reproduce
Steps used to reproduce the behavior:
gamemoded -t
ERROR: Couldn't open vendor file at /sys/class/drm/card0/device/vendor, will not apply gpu optimisations!
card0
even if gpu device is not 0Expected behavior
I do not expect it to pass all the tests but at least not for it to look for card 0 when specified 1
System Info (please complete the following information):
Additional context
this is my config, generated by nix in
/etc/gamemode.ini
, it is found by processi do belive but could be wrong that you never parse this part of the config and keep it to default
i belive the device should be set here
https://github.com/FeralInteractive/gamemode/blob/master/daemon/gamemode-gpu.c#L74-L75
but this symbol leads to a reference in
https://github.com/FeralInteractive/gamemode/blob/master/daemon/gamemode-config.h#L116-L117
but i think is never implemented
The text was updated successfully, but these errors were encountered: