Customize the "no sensors found" message for laptops.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5525 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-12-05 10:42:56 +00:00
1 parent 04f9959fd6
commit 513cf999c6
1 file changed
+10 -6
+10 -6
View File
@@ -5242,12 +5242,16 @@ sub main
}
if (!keys %chips_detected) {
print "Sorry, no sensors were detected.\n",
"Either your sensors are not supported, or they are connected to an\n",
"I2C or SMBus adapter that is not supported. See\n",
"http://www.lm-sensors.org/wiki/FAQ/Chapter3 for further information.\n",
"If you find out what chips are on your board, check\n",
"http://www.lm-sensors.org/wiki/Devices for driver status.\n";
print "Sorry, no sensors were detected.\n";
if (is_laptop() && -d "/sys/firmware/acpi") {
print "This is relatively common on laptops, where thermal management is\n".
"handled by ACPI rather than the OS.\n";
} else {
print "Either your system has no sensors, or they are not supported, or\n".
"they are connected to an I2C or SMBus adapter that is not\n".
"supported. If you find out what chips are on your board, check\n".
"http://www.lm-sensors.org/wiki/Devices for driver status.\n";
}
exit;
}