Check battery status Arch Linux installation ISOArch Linux installation- partitionsBattery monitor for LXDE...

Can I submit a paper under an alias so as to avoid trouble in my country?

Are required indicators necessary for radio buttons?

How to specify and fit a hybrid machine learning - linear model

Importing ES6 module in LWC project (sfdx)

What are the pros and cons of Einstein-Cartan Theory?

The logic of invoking virtual functions is not clear (or it is method hiding?)

How to persuade recruiters to send me the Job Description?

A second course in the representation theory

Why don't politicians push for fossil fuel reduction by pointing out their scarcity?

How does turbine efficiency compare with internal combustion engines if all the turbine power is converted to mechanical energy?

How to avoid using System.String with Rfc2898DeriveBytes in C#

Why does my house heat up, even when it's cool outside?

Why is 日本 read as "nihon" but not "nitsuhon"?

Why were movies shot on film shot at 24 frames per second?

Is there such a thing as too inconvenient?

Does adding the 'precise' tag to daggers break anything?

How to organize ideas to start writing a novel?

What can I do to keep a threaded bolt from falling out of it’s slot

How do you call it when two celestial bodies come as close to each other as they will in their current orbits?

Are thrust levers synchronized by default when pushed/pulled?

Most practical knots for hitching a line to an object while keeping the bitter end as tight as possible, without sag?

How to think about joining a company whose business I do not understand?

Something in the TV

How can I run SQL Server Vulnerability Assessment from a SQL Job?



Check battery status Arch Linux installation ISO


Arch Linux installation- partitionsBattery monitor for LXDE in Arch Linuxgetting wifi up and running in Arch Linux on Mac Mini 3,1Arch Linux - installation with old iso imageArch Linux installation usbArch linux installation - missing packagesArch Linux installation problemsArch Linux Installation Grub ProblemVMWare installation on Arch LinuxArch Linux installation not starting






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







6















I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.



Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)



I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?










share|improve this question




















  • 3





    Have a look at the files in /sys/class/power_supply/. May or may not work for your particular hardware.

    – dirkt
    Feb 5 '17 at 11:15


















6















I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.



Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)



I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?










share|improve this question




















  • 3





    Have a look at the files in /sys/class/power_supply/. May or may not work for your particular hardware.

    – dirkt
    Feb 5 '17 at 11:15














6












6








6


2






I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.



Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)



I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?










share|improve this question














I'm up to reinstall Arch on my laptop while I have a bit of a time and I've encountered an interesting question to ask.



Is there any way to check my laptop battery status without installing acpi package? (as I'm currently offline without charger and I can't get neither of them)



I thought that system should keep track of a battery level somehow. So is it possible to display that info in CLI?







arch-linux console






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 5 '17 at 2:52









ddnomadddnomad

1,0311 gold badge8 silver badges24 bronze badges




1,0311 gold badge8 silver badges24 bronze badges











  • 3





    Have a look at the files in /sys/class/power_supply/. May or may not work for your particular hardware.

    – dirkt
    Feb 5 '17 at 11:15














  • 3





    Have a look at the files in /sys/class/power_supply/. May or may not work for your particular hardware.

    – dirkt
    Feb 5 '17 at 11:15








3




3





Have a look at the files in /sys/class/power_supply/. May or may not work for your particular hardware.

– dirkt
Feb 5 '17 at 11:15





Have a look at the files in /sys/class/power_supply/. May or may not work for your particular hardware.

– dirkt
Feb 5 '17 at 11:15










1 Answer
1






active

oldest

votes


















5














The kernel provides this information through /sys/class/power_supply/BAT0/capacity



Simply cat this path to get the information (in percent of your batteries capacity):



cat /sys/class/power_supply/BAT0/capacity


For an live view you can combine cat with the command watch. The following command provides you a an, updated, live status of your batteries capacity:



watch -n0 cat /sys/class/power_supply/BAT0/capacity


If your system has more then one battery, BAT0 under /sys/class/power_supply/ may be BAT1, BAT2 or something different. Look at the devices under ls /sys/class/power_supply/ and cat their information.






share|improve this answer






























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342586%2fcheck-battery-status-arch-linux-installation-iso%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    The kernel provides this information through /sys/class/power_supply/BAT0/capacity



    Simply cat this path to get the information (in percent of your batteries capacity):



    cat /sys/class/power_supply/BAT0/capacity


    For an live view you can combine cat with the command watch. The following command provides you a an, updated, live status of your batteries capacity:



    watch -n0 cat /sys/class/power_supply/BAT0/capacity


    If your system has more then one battery, BAT0 under /sys/class/power_supply/ may be BAT1, BAT2 or something different. Look at the devices under ls /sys/class/power_supply/ and cat their information.






    share|improve this answer
































      5














      The kernel provides this information through /sys/class/power_supply/BAT0/capacity



      Simply cat this path to get the information (in percent of your batteries capacity):



      cat /sys/class/power_supply/BAT0/capacity


      For an live view you can combine cat with the command watch. The following command provides you a an, updated, live status of your batteries capacity:



      watch -n0 cat /sys/class/power_supply/BAT0/capacity


      If your system has more then one battery, BAT0 under /sys/class/power_supply/ may be BAT1, BAT2 or something different. Look at the devices under ls /sys/class/power_supply/ and cat their information.






      share|improve this answer






























        5












        5








        5







        The kernel provides this information through /sys/class/power_supply/BAT0/capacity



        Simply cat this path to get the information (in percent of your batteries capacity):



        cat /sys/class/power_supply/BAT0/capacity


        For an live view you can combine cat with the command watch. The following command provides you a an, updated, live status of your batteries capacity:



        watch -n0 cat /sys/class/power_supply/BAT0/capacity


        If your system has more then one battery, BAT0 under /sys/class/power_supply/ may be BAT1, BAT2 or something different. Look at the devices under ls /sys/class/power_supply/ and cat their information.






        share|improve this answer















        The kernel provides this information through /sys/class/power_supply/BAT0/capacity



        Simply cat this path to get the information (in percent of your batteries capacity):



        cat /sys/class/power_supply/BAT0/capacity


        For an live view you can combine cat with the command watch. The following command provides you a an, updated, live status of your batteries capacity:



        watch -n0 cat /sys/class/power_supply/BAT0/capacity


        If your system has more then one battery, BAT0 under /sys/class/power_supply/ may be BAT1, BAT2 or something different. Look at the devices under ls /sys/class/power_supply/ and cat their information.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 2 days ago

























        answered Jun 24 '18 at 16:31









        zzeroozzeroo

        1991 silver badge5 bronze badges




        1991 silver badge5 bronze badges

































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f342586%2fcheck-battery-status-arch-linux-installation-iso%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...