Laptops :: Thinkpad Control .dsl extension



I'm running a T42.  Loaded the thinkpad.dsl at boot.

After boot, started terminal and ran "tpctl -ic"
System reported that it couldn't open device.

Did an insmod on thinkpad.o and then ran "tpctl -ic" and all is well.

I thought that your S50updatemodules might also do the insmod.  So I guess we'll need to add the insmod to the bootlocal.sh file to make it completely automatic.

Haven't tried the apmiser proggie yet...hope that works too.

I don't think apmiser is working...

This is what I got...
root@DSL1:/opt/thinkpad# apmiser
apmiser: 10:22:37  Automatic power miser 4.14 started (daemon: no, low: 35%, high: 97%, term: 0.5s, trendiness: 2.2)
No such file or directory at ./apmiser line 202.

Line 202 is:
open(APM,"/proc/apm") or die $!;

and sure enough, there is on apm file in proc....

Quote (Max @ July 22 2005,10:52)
I thought that your S50updatemodules might also do the insmod.  So I guess we'll need to add the insmod to the bootlocal.sh file to make it completely automatic.

Thanks for mentioning that! Yes, S50updatemodules just updates the modutils info -- it doesn't actually load anything.

It's worth noting that because S50updatemodules doesn't actualy load anything, anyone that wants to package modules in mydsl extensions should feel free to add S50updatemodules to their .dsl file. That way no matter how many module .dsl files you load at boot, the same init script will register them all with modutils. Doing a seperate update-modules for every .dsl that adds modules could really slow down the boot process.

As for loading thinkpad.o, which would folks prefer to see: an rc5.d script that automatically loads thinkpad.o or a "Load thinkpad module" MyDSL menu item (and leave it to the user to add the insmod to their bootlocal.sh if they want it every time)?

I tried tpctl again.

As i'm on a hdd install, i re-loaded thinkpad.o

'lsmod' lists the thinkpad module

went to /opt/thinkpad

running "tpctl --ix" as user dsl gives:
"tpctl: module required for request is not loaded."

running the command again as root gives the same

running 'sudo tpctl' says theres no file or directory

Quote (libretto @ July 22 2005,17:24)
running "tpctl --ix" as user dsl gives:
"tpctl: module required for request is not loaded."

running the command again as root gives the same

I should have done this sooner, but a check of the tpctl supported models page doesn't list any models prior to the 365. Your 240 may not have the necessary BIOS features to support tpctl.

You might want to try starting klogd and syslogd prior to loading thinkpad.o. Then after loading thinkpad.o, check dmesg, /var/log/syslog, etc. for any thinkpad.o error messages. You may find something telling you the driver didn't load properly (which would mean there's not much hope for tpctl).

You may also want to try a "tpctl -ic" which (I believe) doesn't need to load the SMAPI BIOS driver.

Next Page...
original here.