Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Nov 2014, 18:07
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to install tp_smapi kernel module?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Neil

Joined: 12 Jul 2009
Posts: 8

PostPosted: Mon 11 Mar 2013, 14:04    Post_subject:  How to install tp_smapi kernel module?
Sub_title: To adjust battery charge thresholds
 

I want to be able to adjust battery charge thresholds on my ThinkPads that run Puppy.

Can someone help me with step-by-step instructions on how to get tp_smapi working in Puppy Linux?

Thanks!
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Mon 11 Mar 2013, 14:22    Post_subject:  

What Puppy version are you using?
Back to top
View user's profile Send_private_message 
Neil

Joined: 12 Jul 2009
Posts: 8

PostPosted: Mon 11 Mar 2013, 15:41    Post_subject:  

Still on 5.2.8 frugal install.
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 11 Mar 2013, 20:54    Post_subject:  

# echo $PWD
/mnt/sdb6/lib/modules/2.6.33.2/kernel

find . -iname "tp_*"
gives nothing.

Assuming you have the source of that driver, you would need to fetch the kernel_source.sfs for that Lupu and compile the driver.

No one is angry if you would attach the tp_ source or point to a website to fetch it.
Back to top
View user's profile Send_private_message Visit_website 
Neil

Joined: 12 Jul 2009
Posts: 8

PostPosted: Mon 11 Mar 2013, 21:12    Post_subject:  

Thanks for the reply, Karl. Are you telling me the only way I can get it working is to compile the kernel modules from source? If so, that is a project I will have to put off for quite some time.

Here is a link to more info on the module, and it's source code.
http://www.thinkwiki.org/wiki/Tp_smapi
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 11 Mar 2013, 21:46    Post_subject:  

Unfortunately the kernel source has to be there plus the patch level plus the .config kernel configuration file. The .config in Puppy can be found in /etc/modules directory renamed as DOTconfig* .

http://bkhome.org/sources should have kernelsource.sfs, probably also the nluug.nl/os/Linux/distr/puppylinux/ mirror of ibiblio .

Username and pwd finds here and there on the forum.
Back to top
View user's profile Send_private_message Visit_website 
Neil

Joined: 12 Jul 2009
Posts: 8

PostPosted: Mon 11 Mar 2013, 22:01    Post_subject:  

Makes me wonder if there are any ThinkPads users out there who have already built a Puppy derivative that has the ThinkPad specific features already built in.


How about it? Anyone already built a ThinkPad puppy?
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 11 Mar 2013, 22:30    Post_subject:  

The github link from the wiki states kernel 2.6.16 ...

Must be an old Puppy like 3.0.1 that uses such kernel.

With such there is lesser chance to add newer hardware like printers and usb-modems.

Good Luck !
Back to top
View user's profile Send_private_message Visit_website 
Neil

Joined: 12 Jul 2009
Posts: 8

PostPosted: Tue 12 Mar 2013, 13:15    Post_subject:  

Where can I get the needed guidance to compile the puppy kernel with the tp_smapi module? I've found this guide for Fedora:
Code:
 Installation from source

You will need the kernel headers and makefiles corresponding to your current kernel version. On Fedora, this means # yum install kernel-devel-$(uname -r) .

    # tar xzvf tp_smapi-0.40.tgz
    # cd tp_smapi-0.40

Then, either compile and load the driver within the current working directory (for testing):

    # make load

OR compile and install into the kernel's module path:

    # make install

If you use the HDAPS driver, add HDAPS=1 to also patch the hdaps for compatibility with tp_smapi (this requires a kernel source tree matching the current kernel). Again, either load the driver within the current working directory:

    # make load HDAPS=1

OR install into the kernel's module path:

    # make install HDAPS=1

To prepare a stand-alone patch against the current kernel tree (including a patch against hdaps and new Kconfig entries):

    # make patch

To delete all autogenerated files:

    # make clean

The original kernel tree is never modified by any these commands. The /lib/modules directory is modified only by # make install.
But i'm sure puppy is different enough that the above guide isn't going to work for me. Guess what I'm looking for is something similar to the above guide, only written specifically for puppy.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0585s ][ Queries: 11 (0.0084s) ][ GZIP on ]