diff --git a/CHANGES b/CHANGES index be22247a..f06a317d 100644 --- a/CHANGES +++ b/CHANGES @@ -37,6 +37,7 @@ SVN HEAD Document driver support for NCT7802Y Add detection of NCT7904D Add detection of IT8790E + Fix graphics cards detection (#2386, #2392) 3.3.5 "Happy Birthday Beddy" (2014-01-22) libsensors: Improve documentation of two functions diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index cd3e662e..ceab7624 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -3897,7 +3897,9 @@ sub get_pci_class my ($subsystem, $class); $subsystem = sysfs_device_subsystem($device); - return 0 unless defined $subsystem && $subsystem eq "pci"; + return 0 unless defined $subsystem; + return 0x0300 if $subsystem eq "drm"; # Graphics card + return 0 unless $subsystem eq "pci"; $class = sysfs_device_attribute($device, "class"); return 0 unless defined $class;