[ltp] tp_smapi 0.09 (dual battery, extended status support)

Eric Van Buggenhaut linux-thinkpad@linux-thinkpad.org
Fri, 16 Dec 2005 22:53:02 +0100


On Fri, Dec 16, 2005 at 10:46:46PM +0200, Shem Multinymous wrote:
> Hi,
> 
> On 12/16/05, Eric Van Buggenhaut <eric@sindominio.net> wrote:
> > On Fri, Dec 16, 2005 at 06:55:33PM +0200, Shem Multinymous wrote:
> > > Hi,
> > >
> > > On 12/16/05, Eric Van Buggenhaut <eric@sindominio.net> wrote:
> > > > I don't get any result with 0.12:
> > >
> > > That's a conflict with hdaps, as explained in the README. The dmesg
> > > output when you loaded the module should have a reported that. Do
> > > "rmmod hdaps" and "make load" again.
> >
> > See the first lines of my first message:
> >
> > atto:/home/eric/devel[0]# lsmod |grep hdap
> > atto:/home/eric/devel[0]# cat /sys/devices/platform/smapi/BAT0/state
> >
> > which I included to let you understand hdaps wasn't loaded. I should
> > have been more explicit I guess.
> 
> Oh, OK. Maybe you removed hdaps *after* loading tp_smapi? You need to
> re-load tp_smapi in that case.

Ooops, sorry, my fault: I had tried

atto:~[0]# rmmod hdaps
ERROR: Module hdaps does not exist in /proc/modules
atto:~[0]# rmmod tp_smapi
ERROR: Module tp_smapi does not exist in /proc/modules
atto:~[0]# modprobe tp_smapi
tp_smapi: tp_smapi 0.12 loading...
tp_smapi: cannot claim ports 0x1600-0x161f, disabling some functions 
(conflict with "hdaps" driver?).
tp_smapi: successfully loaded (smapi_port=0xb2, aps_port=0x0).


but didn't realize hdaps is compiled in the kernel.

Sorry for the noise. I'll recompile and give it another try.


-- 
Eric VAN BUGGENHAUT
Eric.VanBuggenhaut@AdValvas.be