[Bug 201539] AMDGPU R9 390 automatic fan speed control in Linux 4.19/4.20/5.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=201539

--- Comment #48 from Jan Ziak (http://atom-symbol.net) (0xe2.0x9a.0x9b@xxxxxxxxx) ---
(In reply to muncrief from comment #47)
> (In reply to Jan Ziak (http://atom-symbol.net) from comment #46)
> > There is also the possibility to use question marks in the path:
> > 
> > /sys/class/drm/card?/device/hwmon/hwmon?
> 
> Thank you for mentioning that. If you only have one GPU that will indeed
> work. I have multiple GPUs, one Nvidia and one AMD, so I have to hard-code
> the card.

Maybe you can use the PCI ID of the device:

FOUND=false
for CARD in /sys/class/drm/card?; do
  DEVICE="$(cat "$CARD/device/device")"
  if [[ "${DEVICE,,}" == 0x67b1 ]]; then
    FOUND=true
    break
  fi
done
$FOUND || exit 1
HWMON=$CARD/device/hwmon/hwmon?
echo $HWMON

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux