Skip to contentSkip to conversation

Incorporating Thinkpad Detection into Lm_sensors]

[email protected]: [email protected] 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

More good info from the linux-thinkpad mailing list.

----- Forwarded message from Michael Selway <[email protected]> -----

Delivered-To: [email protected]
Delivered-To: [email protected]
From: Michael Selway <[email protected]>
Date: Mon, 22 Jul 2002 09:18:21 +0100
To: [email protected]
Subject: [ltp] Incorporating Thinkpad Detection into Lm_sensors
In-Reply-To: <[email protected]>
X-Mailer: VM 7.04 under Emacs 21.2.1
Precedence: bulk
Reply-To: [email protected]
X-SpamBouncer: 1.6 beta (6/22/02)
X-SBNote: FROM_DAEMON/Listserv
X-SBClass: Bulk

Quoted 1 line · [email protected] writes:

So, I need your help! How can we detect a Thinkpad?

There's some code in arch/i386/kernel/dmi_scan.c whose intention is to change an APM setting for all IBM laptops. The relevant table entry looks like this in 2.4.18:

{ set_apm_ints, "IBM", { /* Allow interrupts during suspend on IBM laptops */

		MATCH(DMI_SYS_VENDOR, "IBM"),
		NO_MATCH, NO_MATCH, NO_MATCH
		} },

HTH,
Michael.

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html

----- End forwarded message -----

Signature · 3 lines
Philip Edelbrock -- IS Manager -- Edge Design, Corvallis, OR
   [email protected] -- http://www.netroedge.com/~phil
 PGP F16: 01 D2 FD 01 B5 46 F4 F0  3A 8B 9D 7E 14 7F FB 7A
#1 lore raw
Quoted 10 lines

There's some code in arch/i386/kernel/dmi_scan.c whose intention is to change an APM setting for all IBM laptops. The relevant table entry looks like this in 2.4.18:

{ set_apm_ints, "IBM", { /* Allow interrupts during suspend on
IBM laptops */

		MATCH(DMI_SYS_VENDOR, "IBM"),
		NO_MATCH, NO_MATCH, NO_MATCH
		} },

I was about to suggest the very same. This file contains an impressive number of model-based or brand-based workarounds for the Linux kernel, not only for IBM laptops but also for many other systems such as Sony or Dell, and also more generic things related to chipsets themselves. Thus, it looks like a very standard and working way of detecting wether we have an IBM or not. I suggest we be very exclusive first (I wouldn't mind blacklisting *all* IBM models), at least until we know more about which models are causing problems and have a reliable way to be sure of what we are doing.

Signature · 2 lines
Jean "Khali" Delvare
http://www.ensicaen.ismra.fr/~delvare/