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

Rob Walker linux-thinkpad@linux-thinkpad.org
17 Oct 2002 07:42:03 -0700


On Thu, 2002-10-17 at 01:43, Michael Hagemann wrote:
> *** List MOVED use linux-thinkpad@linux-thinkpad.org for future postings ***
> 
> 
> On Wed, 16 Oct 2002 15:40:55 +0200 Thomas Hood wrote:
> 
> > You say that the 3.x drivers compiled under Linux
> > 2.4.17 work but the very same drivers compiled under
> > Linux 2.4.19 don't work.
> 
> 
> Problem is solved!  It's a _devfs_ problem.  
> 
> I have it installed and mounted under (*cough*) /mnt/devfs, to play
> around a little. :]  And there the thinkpad device works as advertised.
> 
> Rob probably just has it unintentionally configured in his new kernel!?

I have whatever debian has sent to me.  :-)

tp600x:~# cat /boot/config-2.4.18-686 | grep -i devfs
CONFIG_DEVFS_FS=y
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set

> Actually I had been warned by noflushd, which puts out a rather lengthy
> error message about having configured but not mounted devfs.  Maybe we
> should borrow that code as health check for the thinkpad device too?  Or
> is there a clean way to check the path of a devfs device?  I would
> volunteer for putting together a patch.

I would agree with you, except for the strace of tpctl which shows that
it is trying to open /dev/thinkpad.  Is strace lying, or is the open()
call joking?  :-)

rob