Buchan Milne <[EMAIL PROTECTED]> writes:
> IBM Thinkpad 600X:
>
> $ grep model /proc/cpuinfo
> model : 8
> model name : Pentium III (Coppermine)
>
> :-(.
hopefully we have other ways to guess for a laptop. current code
is:
sub isLaptop() {
hasPCMCIA() || (matching_desc('C&T.*655[45]\d') || matching_desc('C&T.*68554') ||
matching_desc('Neomagic.*Magic(Media|Graph)') ||
matching_desc('ViRGE.MX') || matching_desc('S3.*Savage.*[IM]X') ||
matching_desc('ATI.*(Mobility|LT)'));
}
(matching_desc being equivalent to output of lspcidrake)
> Would it not also be worthwhile using dmidecode, to identify models? ie,
> if a Thinkpad is found, tpctl etc can be installed?
Why not. I didn't personally know thinkpads needed an additional
package. If dmidecode is supposed to not crash the machine (I
suppose it tried to read in BIOS memory). Any less invasive way
to guess for a thinkpad? Anything thinkpad-special in
lspcidrake's output?
--
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/