[ltp] Re: can not open /dev/thinkpad

Rob Walker linux-thinkpad@linux-thinkpad.org
20 Oct 2002 21:53:27 -0700


Notes inline.

On Fri, 2002-10-18 at 01:35, Thomas Hood wrote:
> *** List MOVED use linux-thinkpad@linux-thinkpad.org for future postings ***
> 
> Those who have been getting the
>     Can't open device file /dev/thinkpad with flags O_RDONLY
> error, please try these:
>     http://panopticon.csustan.edu/thood/tpctl_3.8.tar.gz
>     http://panopticon.csustan.edu/thood/thinkpad_3.8.tar.gz
> 
> If you are a Debian user, you can do:

This is _great_!

>     tar zxvf tpctl_3.8.tar.gz
>     tar zxvf thinkpad_3.8.tar.gz
>     cd tpctl-3.8
>     sudo make deb
>     sudo dpkg -i ../tpctl_3.8-1_i386.deb
>     cd ../thinkpad-3.8
>     sudo make debs
>     sudo dpkg -i ../thinkpad-base_3.8-1_i386.deb
> ../thinkpad-source_3.8-1_i386.deb

Doh!  line wrap, but okay, got them installed.  


>     cd /usr/src

uh, had to sudo for this.  :-)

>     rm -rf modules/thinkpad
>     tar zxvf thinkpad.tar.gz
>     cd $KERNEL_SOURCE_TREE
>     sudo make-kpkg modules-image
>     dpkg --install ../thinkpad-modules-...3.8-1...deb

tp600x:/lib/modules/2.4.18/thinkpad# lsmod | grep -i think | wc -l
      0

tp600x:/lib/modules/2.4.18/thinkpad# dpkg -l | grep -i thinkpad
ii  thinkpad-base  3.8-1          Configuration files for thinkpad-modules pac
ii  thinkpad-modul 3.8-1+10.00.Cu Device driver modules for configuring ThinkP
ii  thinkpad-sourc 3.8-1          Source code for thinkpad-modules packages
ii  tpctl          3.8-1          ThinkPad configuration tools for Linux


tp600x:/lib/modules/2.4.18/thinkpad# for i in thinkpad rtcmosram smapi superio thinkpadpm ; do { insmod $i.o ; } done
tp600x:/lib/modules/2.4.18/thinkpad# lsmod | grep -i think
thinkpadpm              2676   0  (unused)
thinkpad                2532   0  [thinkpadpm superio smapi rtcmosram]

>     tpctl -x

uh, oh.....

tp600x:/lib/modules/2.4.18/thinkpad# tpctl -x
tpctl: stat() of device file /dev/thinkpad/thinkpad failed. Exiting.
tp600x:/lib/modules/2.4.18/thinkpad#


remember, I do _not_ have devfs mounted here ....

So..  I followed a hunch.

  587  cd /dev/
  588  ls -alrt thinkpad
  589  rm thinkpad
  590  mkdir thinkpad
  591  cd thinkpad/
  592  ln -s ../smapi thinkpad
  593  tpctl -x


tp600x:/dev/thinkpad# tpctl -x | wc -l
    110


rob