Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home » Make Ubuntu 12.04 Show the Remaining Battery Life as a Percentage (tip)
    Ubuntu

    Make Ubuntu 12.04 Show the Remaining Battery Life as a Percentage (tip)

    GayanBy GayanOctober 17, 2012Updated:October 17, 201216 Comments2 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    By default, Ubuntu’s battery indicator does not show the remaining battery life as a percentage, instead it shows the remaining time. This I think is preferred by the most users, however, it would have been nice, if we could manually change between the two.

    Then again, this indicator icon does show a small ‘bar’ that goes up/down, and you can get a rough idea about the remaining percentage. Plus, you can always access advanced statistics by using this icon and there it lists the current percentage as well. Still, it is a bit of a stretch.

    Due to few issues that I’m having with my battery, I wanted the power indicator icon to display the percentage by default, so I looked for a solution. The best option was to use the famous ‘battery-status’ package. But sadly, it does not support Ubuntu 12.04.

    But thanks to a simple hack done by ‘Leonardo Bras‘, you can easily make that happen in Ubuntu 12.04 too.

    Please remember that, it will only show the percentage and does not show the remaining time (if the developer could add an option to let users switch between the two, then that would be very useful!).

    If interested, you can install this hack by using the below commands.

    sudo apt-add-repository ppa:leonardobsp/indicator-upower-percentage

    sudo apt-get update

    sudo apt-get install indicator-power

    Then logout of the Unity desktop and log back in to apply the changes. That’s it!.

    How to remove it?

    If you wanted to roll back the changes and get the original ‘indicator-power’ package, then use the below commands.

    sudo apt-add-repository -r ppa:leonardobsp/indicator-upower-percentage

    sudo apt-get update

    sudo apt-get purge indicator-power

    sudo apt-get install indicator-power

    Again, logout and re-login to apply the changes.

    That’s it. Good luck.

    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    Debian vs Ubuntu Server: A Brief Comparison for Beginners

    July 2, 2023

    CPU Based Simple System Stability and Benchmark Tester for Ubuntu Linux – systester

    June 16, 2023

    Typespeed: Typing Speed Testing Game for Ubuntu Linux

    March 12, 2023

    Debian vs Ubuntu in 2023- Which Linux OS is Right for You?

    January 6, 2023

    16 Comments

    1. Alex-Bulgaria on October 29, 2012 6:05 pm

      This is great, thanks! 🙂 So handy! Cuz the time seems to be changing constantly, whereas the percentage gives a more accurate picture on how the battery is doing.

      Cheers!

      Reply
      • Gayan on October 30, 2012 7:34 am

        Hey ‘Alex’,

        Yes, it indeed is handy! :D.

        Reply
    2. Udith on February 9, 2013 10:28 pm

      Great work! Thanks to both Leonardo Bras and also Gayan for the article.

      Reply
      • Gayan on February 10, 2013 7:49 am

        Isthuthi ‘Udith’ :D!.

        Reply
    3. Pulkit on June 9, 2013 2:23 am

      Thanks a ton man!!
      It worked perfectly for me. 🙂

      Reply
      • Gayan on June 9, 2013 8:47 am

        You’re welcome :).

        Reply
    4. Hayden on June 17, 2013 6:33 pm

      Thank you so much been looking for this for ages!

      Reply
      • Gayan on June 17, 2013 10:37 pm

        You’re welcome.

        Reply
    5. Chris Bishop on October 8, 2013 10:30 am

      Me too! Installed successfully on Ubuntu 13.04. Thanks a bunch, Leonardo and Gayan!

      Strange that the Ubuntu developers think that a computer can predict how you’ll be using your computer better than you can — this is ridiculous.

      Time left means nothing — percentage gives you a good idea that your laptop will not survive the upcoming meeting if you’ll be showing your clients a video presentation.

      Reply
      • Gayan on October 8, 2013 6:03 pm

        You’re welcome Chris.

        Reply
    6. Hayden on January 15, 2014 11:54 pm

      Will this work with wingpanel as used in elementaryOS?

      Reply
      • Gayan on January 16, 2014 7:06 am

        Hi Hayden,

        I don’t think it’ll work in Elementary OS.

        P.S – ‘Doc’ (below) has conformed that this actually works on the Elementary OS Luna.

        Reply
        • Doc on February 12, 2014 10:54 pm

          Actually, it DOES work on Elementary OS (Luna) 😀

          Reply
          • Gayan on February 13, 2014 6:14 am

            Thanks Doc :). I updated the comment so hopefully ‘Hayden’ will notice it.

            Reply
    7. Sergio A. Guzmán on January 8, 2015 8:39 am

      Will this work in Ubuntu 12.04 with XFCE 4.10 ???
      I’ve installed it but it doesn’t shows anything in indicator-panel.
      But in Ubuntu with Unity works flawlessly.

      🙂 thanks

      Reply
      • Gayan on January 8, 2015 10:01 am

        Hi Sergio,

        No, this only works for the Unity desktop 🙂 .

        Reply
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.