Code Monkey home page Code Monkey logo

Comments (7)

uaktags avatar uaktags commented on July 30, 2024

so I'm confused, you have 13 physical cards that are AMDs, but the system only has card0-9 showing up in the directory mentioned previously?
what are the cards that are not being detected? to me it sounds like they aren't compatible with the DRM structure that's being used in
/sys/class/drm/.

from amdgpu-pro-fans.

uaktags avatar uaktags commented on July 30, 2024

No guarantees that this will run, but perhaps try running this and posting the output. Just some "debug" information to show me how far the script is going. This may also be one of the big reasons the developer stopped supporting doing this all via a BASH script and instead opted to go the route of a low-level application.

Put this into a file, call it whatever, chmod +x on it, and then run it. As you can see in the code, it's just going to echo out the /sys/class/drm/card# and then echo out everytime it enters into a hardware monitor section of that card. If it fails to do either of these for that card, that tells me that that card is not supported by this for whatever reason.

#!/usr/bin/env bash

cardcount="0";
for CurrentCard in  /sys/class/drm/card?/ ; do
	 echo "Found: $CurrentCard" # &>/dev/null
	 for CurrentMonitor in "$CurrentCard"device/hwmon/hwmon?/ ; do
		  cd $CurrentMonitor # &>/dev/null
		  echo "CD'd into $CurrentMonitor" # &>/dev/null
	 done
	 cardcount="$(($cardcount + 1))"
done
exit;

from amdgpu-pro-fans.

DominiLux avatar DominiLux commented on July 30, 2024

Interesting. Can you provide me with the output of the following command:
ls /sys/class/drm

P.S. I haven't been on here in a while, I stay pretty busy these days.

from amdgpu-pro-fans.

jawkhan avatar jawkhan commented on July 30, 2024

I found a way to get it to work for more than 10, if you change line 53 to the following:

for CurrentCard in /sys/class/drm/card?/ -o /sys/class/drm/card??/ ; do

That fixed the issue for me.

Hope it helps :)

from amdgpu-pro-fans.

exeex avatar exeex commented on July 30, 2024

@DominiLux if the card nunber is over 10
the path would be /sys/class/drm/card11/
which can't be catch by
/sys/class/drm/card?/

from amdgpu-pro-fans.

uaktags avatar uaktags commented on July 30, 2024

@exeex
I believe @jawkhan already answered this. The single wildcard "?" is looking for a single character, it's not looking for a two character value.

from amdgpu-pro-fans.

minzak avatar minzak commented on July 30, 2024

Just need replace hwmon? to hwmon* and work with 10+ card

from amdgpu-pro-fans.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.