[ltp] 600x and tpctl?
Boyan
linux-thinkpad@www.bm-soft.com
Wed, 29 Aug 2001 15:26:21 +0200 (CEST)
Thanks for the replies.
On Wed, 29 Aug 2001, Markus Alt wrote:
> Boyan wrote:
> >
> > Hello,
> >
> > still having problems letting the tpctl 2 work on the thinkpad. I use suse
> > 7.1 with reiserfs and kernel 2.4.0 and tried several times to install the
> > utilities. The last time I tried also the precompiled tpctl.rpm that comes
> > with the latest suse 7.2 and again I have the following output when I try
> > as root the utilities:
> >
> > newbie# tpctl --ip
> >
> > tpctl: System error message is: No such device
> >
> > tpctl: Can't open device file /dev/thinkpad with flags O_RDONLY.
> > Exiting.
> >
> > newbie# ntpctl
> > Error while opening the device...
> >
> > On the other, hand somewhere along the numerous installations and
> > deinstallations of the package I suddenly was able to suspend and
> > hibernate with Fn-4 and Fn-12 respectively, which is very nice. But am not
> > sure whether it was due to my enabling the apm in /etc/.rcconfig or to the
> > utilities.
> >
> > Bottom line is that I would like very much to use the wonderful functions
> > of the tpctl that I read in the man pages (since "man tpctl" works),
> > question is how if at all possible on this laptop. Did someone manage to
> > use tpctl with suse on the 600x 5FG model? I would be grateful for any
> > advice.
>
> Did you add the required lines to /etc/modules.conf and create
> /dev/thinkpad with the correct permissions according to the README that
> comes with tpctl? Here's an excerpt describing this procedure:
> To let the kernel modules system know about the newly installed modules,
> add the following to /etc/modules.conf (or /etc/conf.modules):
> keep
> path[thinkpad]=/lib/modules/`uname -r`/thinkpad
> options thinkpad thinkpad_enable_smapi=1 thinkpad_enable_superio=1
> thinkpad_enable_rtcmosram=1 thinkpad_enable_thinkpadpm=1
> alias char-major-10-170 thinkpad
> alias /dev/thinkpad thinkpad
> and then run the "depmod -a" command as root. (The "keep" line only
> needs
> to be added if it does not already appear earlier in the file.)
>
> To create the /dev/thinkpad device node manually, run the command
> mknod --mode=664 /dev/thinkpad c 10 170
> as root. If you are using devfs you don't need to do this, but
There is no need to this I think, for the /dev/thinkpad has always been
there as the output of the ls command says:
newbie# ls -l /dev/thinkpad
crw-rw-r-- 1 root root 10, 170 Jun 27 21:05 /dev/thinkpad
On the other hand, the need for additional antries in modules.conf is new
to me and I will do it now.
Regards,
Boyan
> you do need to add the following line to /etc/devfsd.conf (or,
> in Debian, to make the following file /etc/devfs/conf.d/thinkpad):
> REGISTER ^misc/thinkpad$ PERMISSIONS root.root 0664
> You can choose your own permissions. You might want to create
> a "thinkpad" group, add yourself to it, and set PERMISSIONS on the
> device to root.thinkpad 0664; then you'll be able to change settings
> as well as view them without becoming super user.
>
>
> If you follow these instructions, it should work, I think.
>
> Regards,
> Markus
>
> --
> Markus Alt
> IBM Lab Boeblingen, Germany
> altmark@de.ibm.com
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html
>
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html