Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 43

Thread: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

  1. #31
    Join Date
    Nov 2006
    Location
    Germany
    Beans
    244
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    Guys sysfsutils in Karmic doesn't work as well as before, probably the kernel's fault. More than once it hasn't started on login and the battery got charged up to its maximum.

    What could be the reason ?

  2. #32
    Join Date
    Apr 2006
    Location
    Toronto, Canada
    Beans
    583
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    Is there any way we could make a .deb file for 32 and 64 bit for tp_smapi ? I'd be interested and I'll help as far as I can(including hosting the file). You can PM me if you need anything.

    UPDATE: I've written a script that really eases the process of setting battery thresholds. I'm writing a GUI for it, and will create a new thread when it reaches usability. Let me know if you need the script.
    Last edited by hellmet; November 9th, 2009 at 10:36 PM.
    India is a pluralist society that creates magic with democracy, rule of law and individual freedom, community relations and diversity. I wouldn't mind being born ten times to rediscover India. - Robert Blackwill, U.S Ambassador until 2003.

  3. #33
    Join Date
    Nov 2006
    Location
    Germany
    Beans
    244
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    Yes that would be good, actually in karmic sysfs is giving me a lot of problems

  4. #34
    Join Date
    Apr 2006
    Location
    Toronto, Canada
    Beans
    583
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    Umm.. Actually.. my script does use sysfs to save settings on reboot. Its been working pretty well on my R500.
    What problems are you facing with sysfs? It would be helpful to know.

    UPDATE2
    A new thread has been created for the script and it is available here for download and testing: http://ubuntuforums.org/showthread.php?t=1325674
    UPDATE
    Putting GUI on hold for the moment. Trying to complete script functionality first.

    Script Features that work :
    View and set/remove thresholds for integrated battery.
    Auto add settings to sysfs to save thresholds on reboot.
    Automating installation of tp_smapi and sysfsutils
    Writing to /etc/modules to add tp_smapi

    Working on:

    Adding support for second (UltraBay) battery. Should be easy. But, I'm new with python and I don't have an UltraBay battery.
    Displaying battery details. The Ubuntu power manager already displays all info except for cycle count.

    Will attach script once above features work well. A screenshot has been attached for those interested.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot.png 
Views:	51 
Size:	52.5 KB 
ID:	135863  
    Last edited by hellmet; November 14th, 2009 at 05:29 PM.
    India is a pluralist society that creates magic with democracy, rule of law and individual freedom, community relations and diversity. I wouldn't mind being born ten times to rediscover India. - Robert Blackwill, U.S Ambassador until 2003.

  5. #35
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    This is a quicker way of installation:

    Code:
    sudo aptitude install tp-smapi-source
    sudo m-a a-i tp-smapi
    sudo modprobe tp_smapi

  6. #36
    Join Date
    Apr 2006
    Location
    Toronto, Canada
    Beans
    583
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    or
    Code:
    sudo m-a a-i tp-smapi-source
    sudo modprobe tp_smapi
    India is a pluralist society that creates magic with democracy, rule of law and individual freedom, community relations and diversity. I wouldn't mind being born ten times to rediscover India. - Robert Blackwill, U.S Ambassador until 2003.

  7. #37
    Join Date
    Oct 2008
    Location
    Munich, Germany
    Beans
    45
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    Quote Originally Posted by yaneurabeya View Post
    . My 3rd Macbook's battery is now 7 months old and still holds a 4.5 hour charge however.

    HTH,
    -Garrett
    Hey Garret,

    interesting to read that you're also on a macbook. I just got a macbook pro, cloudn't really get along with MacOS and threw it out, but I am nowlooking for a way to limit charging its battery under Ubuntu. Have you looked into that?

    thanks
    Paul

  8. #38
    Join Date
    Jan 2007
    Location
    Kungsbacka, Sweden
    Beans
    39
    Distro
    Ubuntu 16.04 Xenial Xerus

    3

    how do I delete my message?!
    Last edited by n.l.o; May 26th, 2010 at 09:34 AM. Reason: deleting it
    All your base are belong to us.

  9. #39
    Join Date
    Feb 2007
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Lightbulb Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    Hi mbsullivan,

    Thanks for your great guide over a good period of time.

    As mentioned in this page on ThinkWiki, getting tp_smapi running under Ubuntu 10.04 is now particularly easy:

    $ sudo aptitude install tp-smapi-dkms
    $ sudo modprobe tp_smapi
    Of course you still need to add tp_smapi to:

    /etc/modules
    And make the necessary config changes to keep battery threshold settings permanent, but installing it has become quite pleasantly easy.

  10. #40
    Join Date
    Jul 2007
    Location
    Austin, TX (formerly D.C)
    Beans
    359
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HOWTO: Extend the Life of Your Thinkpad's Battery (tp_smapi)

    Hi mbsullivan,

    Thanks for your great guide over a good period of time.

    As mentioned in this page on ThinkWiki, getting tp_smapi running under Ubuntu 10.04 is now particularly easy:

    Quote:
    $ sudo aptitude install tp-smapi-dkms
    $ sudo modprobe tp_smapi
    Of course you still need to add tp_smapi to:

    Quote:
    /etc/modules
    And make the necessary config changes to keep battery threshold settings permanent, but installing it has become quite pleasantly easy.
    That's true. This tutorial is pretty much no longer needed, or at the very least deprecated. I will update it soon so that it doesn't mislead any newcomers.

    Thanks,
    Mike

Page 4 of 5 FirstFirst ... 2345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •