Originally posted by marazmista
View Post
Code:
$ grep 'sys/class' * radeon_profile.cpp: powerMethodFilePath = "/sys/class/drm/card0/device/power_method", radeon_profile.cpp: profilePath = "/sys/class/drm/card0/device/power_profile", radeon_profile.cpp: dpmStateFilePath = "/sys/class/drm/card0/device/power_dpm_state", radeon_profile.cpp: forcePowerLevelFilePath = "/sys/class/drm/card0/device/power_dpm_force_performance_level",
You could get the driver which is being using by the cards this way:
Code:
$ grep DRIVER /sys/class/drm/card?/device/uevent /sys/class/drm/card0/device/uevent:DRIVER=radeon /sys/class/drm/card1/device/uevent:DRIVER=radeon $ grep DRIVER /sys/class/drm/card?/device/uevent | cut -d= -f2 radeon radeon
Comment