tpctl release candidate 0.5.3 -- please try

Thomas Wimmer linux-thinkpad@www.bm-soft.com
Thu, 22 Jul 1999 00:07:08 +0200


This is a multi-part message in MIME format.
--------------9B11BF95D22484D244873F2B
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

"J.d.thomas Hood" wrote:
> 
> Hello all,

Hi

> tpctl has been coming along and now has the capability to change
> the i/o-addresses and irqs of the serial and parallel ports
> (only the "live" settings, though--not those stored in CMOS RAM).
> 
> Version 0.5.3 is a candidate for release as a "stable version"
> (0.6.0) but I'd like to have it better tested before announding it
> on Freshmeat.
> It would be very helpful to me if many of you would download this
> release, install it and test out its features.  Please send me
> reports of how the whole process goes.

OK, here it goes (my system: SuSE 6.1):

First the install-process (actual testing of the programm later),
patch included below:

I donīt have a /usr/local/sbin directory, so I moved tpctlify from
/usr/local/sbin to /tmp and delete tpctlify after it runs on install
(no need to keep it)

My install(1) doesnīt have a "-D" switch, so I removed it (what does
it do ?)

changed the permissions of /dev/thinkpad to group-writable with the
group "wheel"

the "path"-statement in my /etc/conf.modules resultet in a lot of
"Unresolved symbols" in other directories, so I made the
"path"-statement more specific for the think-pad module

And last of all, the binary-rpm segfaults on my machine (no idea why),
so I compiled a rpm (with my changes) for those fellow SuSE-users (do
they exist ?).

ftp://lcars.wh.uni-stuttgart.de/pub/tpctl-0.5.3-1.SuSE.i386.rpm

> Unlike the functions that were implemented in 0.3.x, the
> resource-control features that have been added in 0.5.x talk
> directly to hardware registers:
> they do not make use of the SMAPI BIOS built into most ThinkPads.
> Consequently there is a greater risk that these features will not
> work on every ThinkPad--although they have proved to work on a
> ThinkPad 600, a ThinkPad 770X and a ThinkPad 380Z.  Feedback about
> these features would be especially useful to me.
> 
> Download the rpm and/or the tarball via:
>    http://jhunix.hcf.jhu.edu/~thood/tpctlhome.htm
> 


Thomas
-- 
Thomas Wimmer        |   When you're in a fight with an idiot,
thomas@wimmer.net    |   its difficult for other people
Stuttgart, Germany   |   to tell which one the idiot is.
--------------9B11BF95D22484D244873F2B
Content-Type: text/plain; charset=us-ascii;
 name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch"

--- ../tpctl-0.5.3_orig/Makefile	Wed Jul 21 21:48:24 1999
+++ Makefile	Wed Jul 21 23:55:35 1999
@@ -13,7 +13,6 @@
 
 DIR_LIB=/usr/local/lib
 DIR_BIN=/usr/local/bin
-DIR_SBIN=/usr/local/sbin
 DIR_MOD=/lib/modules
 
 DIR_TMP=/tmp
@@ -55,20 +54,21 @@
 
 install: uninstall_legacy uninstall
 	if [ ! -d $(DIR_MOD)/thinkpad ]; then mkdir -p $(DIR_MOD)/thinkpad ; fi
-	install -D -m 444 -o 0 -g 0 thinkpad.o $(DIR_MOD)/thinkpad/thinkpad.o
-	install -D -m 755 -o 0 -g 0 libsmapidev-$(VER).so $(DIR_LIB)/libsmapidev-$(VER).so
-	install -D -m 755 -o 0 -g 0 tpctl $(DIR_BIN)/tpctl
-	install -D -m 700 tpctlify $(DIR_SBIN)/tpctlify
+	install -m 444 -o 0 -g 0 thinkpad.o $(DIR_MOD)/thinkpad/thinkpad.o
+	install -m 755 -o 0 -g 0 libsmapidev-$(VER).so $(DIR_LIB)/libsmapidev-$(VER).so
+	install -m 755 -o 0 -g 0 tpctl $(DIR_BIN)/tpctl
+	install -m 700 tpctlify /tmp/tpctlify
 	ln -sf $(DIR_LIB)/libsmapidev-$(VER).so $(DIR_LIB)/libsmapidev.so
 	./tpctlify $(DIR_MOD)
 	depmod -a
-	mknod --mode=644 /dev/thinkpad c 10 170
+	mknod --mode=664 /dev/thinkpad c 10 170
+	chgrp wheel /dev/thinkpad
+	rm -vf /tmp/tpctlify
 
 uninstall:
 	modprobe -r thinkpad
 	rm -vf $(DIR_MOD)/thinkpad/thinkpad.o
 	rm -vf $(DIR_BIN)/tpctl
-	rm -vf $(DIR_SBIN)/tpctlify
 	rm -vf $(DIR_LIB)/libsmapidev.so
 	rm -vf $(DIR_LIB)/libsmapidev-*.so
 	rm -vf /dev/thinkpad
--- ../tpctl-0.5.3_orig/tpctlify	Wed Jul 21 21:48:24 1999
+++ tpctlify	Wed Jul 21 23:41:10 1999
@@ -35,7 +35,7 @@
 
 echo "" >> ${CONFFILE}
 echo "keep" >> ${CONFFILE}
-echo "path[thinkpad]=${DIR_MODDIR}" >> ${CONFFILE}
+echo "path[thinkpad]=${DIR_MODDIR}/thinkpad" >> ${CONFFILE}
 echo "" >> ${CONFFILE} 
 echo "alias char-major-10-170 thinkpad" >> ${CONFFILE} 
 echo "" >> ${CONFFILE} 

--------------9B11BF95D22484D244873F2B--