From 513cf999c6a947fd2a9e1ccd4285146bd722ed00 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 5 Dec 2008 10:42:56 +0000 Subject: [PATCH] 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 --- prog/detect/sensors-detect | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index f007b8c8..b2583f5b 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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; }