-
Notifications
You must be signed in to change notification settings - Fork 39
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
Options for selecting GPU(s) in /etc/amdgpu-fan.yml #1
Comments
I looked closer at |
from a quick look it seems i should put some code to handle non-amd gpu's in the same system - it appears this code makes a blanket assumption that all cards in the system are AMD or atleast will have hwmon. I should be able to get to this soon |
@DerVerruckteFuchs so i have an implementation of this in master currently (0.0.2+) please let me know if it fixes your problem. |
Thanks, works in dual gpu system. |
cool, I'll leave this open however as I'm sure that being able to specify the GPU's you'd like this to act on might actually be useful to some people and seems like something i should implement. |
selectable cards implemented in 7184fb6 |
Is there a means for running amdgpu-fan only with (a) selected GPU(s)? I have my Intel iGPU enabled and it's
/sys/class/drm/card0
whereas my AMD GPU is/sys/class/drm/card1
. It seemsamdgpu.py
looks forcard0
by default. It looks like I could useamdgpu.py --get card1 fan_speed
from the help flag, but It only looks forcard0
even when I try to explicitly run it withcard1
as part of the command. My Intel iGPU does not seem to have a/device/hwmon
directory, soamdgpu.py
fails with the following traceback:Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/amdgpu_fan/lib/amdgpu.py", line 113, in <module> scanner = Scanner() File "/usr/lib/python3.7/site-packages/amdgpu_fan/lib/amdgpu.py", line 69, in __init__ self.cards = self._get_cards() File "/usr/lib/python3.7/site-packages/amdgpu_fan/lib/amdgpu.py", line 76, in _get_cards return {node: Card(node) for node in os.listdir(ROOT_DIR) if re.match(self.CARD_REGEX, node)} File "/usr/lib/python3.7/site-packages/amdgpu_fan/lib/amdgpu.py", line 76, in <dictcomp> return {node: Card(node) for node in os.listdir(ROOT_DIR) if re.match(self.CARD_REGEX, node)} File "/usr/lib/python3.7/site-packages/amdgpu_fan/lib/amdgpu.py", line 15, in __init__ for node in os.listdir(os.path.join(ROOT_DIR, self._identifier, HWMON_DIR)): FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/drm/card0/device/hwmon'
The text was updated successfully, but these errors were encountered: