[ltp] Re: ThinkPad Batteries

Phil Shotton linux-thinkpad@linux-thinkpad.org
Wed, 26 Nov 2008 16:54:36 +0000


Micha Feigin wrote:
> On Wed, 26 Nov 2008 15:52:06 +0000
> Phil Shotton <phil@stairbridge.org.uk> wrote:
>
>   
>> # lsmod | grep tp_smapi
>> [ nothing ]
>>
>> # modprobe tp_smapi
>> # lsmod | grep tp_smapi
>> tp_smapi               29712  0
>> thinkpad_ec            14736  1 tp_smapi
>>
>> However:
>> # /etc/init.d/hdapsd start
>>  * Not starting hdapsd: /sys/block/sda/queue/protect does not exist, 
>> please read /usr/share/doc/hdapsd/README.Debian
>>
>> The document says:
>> hdapsd needs the hdaps kernel module and the hdaps_protect patch in the 
>> kernel
>> so it WON'T work out-of-the-box on a Debian machine yet.
>>
>> but I thought the whole point of the distro module was that the kernel 
>> didn't need patching, or have I completely misunderstood?
>>
>>     
>
> You misunderstand. A module adds a kernel feature. A patch changes a kernel
> feature, in this case another module or compiled in option.
>
> The patch is actually a bit hard to come by and if I'm not mistaken has been
> included in the 2.6.28 kernel, but with a different /sys name so it's going to
> take some time for debian to reach kernel 2.6.28 (it's only at release
> candidate stage of a couple of months or so now) and then some time for the
> tools to fix the directory that they are looking for, so unless you want to
> compile your own 2.6.27 kernel and find the patch then you need to wait a
> couple of months at least
>
>   
OK, thanks for clearing this up for me
>> Re: Please try to keep in mind that top-posting is not very popular.
>>
>> On the contrary, everyone I know hates bottom-posting because you have 
>> to wade through the whole trail before you actually find the new post to 
>> decide whether it's worth reading or not. YMMV.
>>
>>     
>
> It doesn't really matter what you like, the list policy is bottom posting (and
> I don't care for the comments for or against at the moment) so if you don't
> want to be ignored or shouted at each time you should adhere to list policy
>
>   
My apologies for offending the list policy. Can you tell me where this 
is documented, I've looked on 
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad and 
the earliest posts in the archive for any policy document and can't find 
one.

>> Cheers
>> Phil
>>
>> Elias Oltmanns wrote:
>>     
>>> Phil Shotton <phil@stairbridge.org.uk> wrote:
>>>   
>>>       
>>>> I'm running Intrepid Ibex. There's no linux-ubuntu-modules-<anything>
>>>> package :-(
>>>> Is it in a non-standard repo?
>>>>     
>>>>         
>>> Have you tried to load the module yet? It may have been installed a part
>>> of another package.
>>>
>>> If the module is missing, you can try the following to find out whether
>>> it has been packaged and is available from one of the repositories in
>>> your sources.list:
>>>
>>> % sudo aptitude install apt-file
>>> % sudo apt-file update
>>> % apt-file search tp_smapi.ko
>>>
>>> Regards,
>>>
>>> Elias
>>>
>>> PS: Did you notice that comment about top-posting at all? You have even
>>> quoted it, see below.
>>>
>>>
>>>   
>>>