[ltp] recognising a thinkpad

Richard Neill linux-thinkpad@linux-thinkpad.org
Wed, 16 Jul 2008 07:56:26 +0100


Helmut Hullen wrote:
> Hallo, linux-thinkpad,
> 
> how can I let recognise the system if it runs on a thinkpad (here:  
> mostly T2x, 1 T40)?
> 
> Ok - I could put a line
> 
>         modprobe -q thinkpad_acpi 2>/dev/null
> 
> into a start script. But is there a better way?
> 

I think I'd suggest you look at the output of lspci -vvv   and
    hwinfo --bios.  On the two machines I have, one T60p, and one 
desktop machine, the following test works:

if sudo hwinfo --bios | grep -iq thinkpad  ; then
     echo ImAThinkPad
else
     echo NotAThinkpad
fi


Regards,

Richard



> Viele Gruesse!
> Helmut