Checking battery level when ACPI has problems

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I am running Debian Buster (testing) / Sid on an Iball Excelance laptop (an Indian company). I initially had problems with the laptop trying to suspend and then freezing immediately after finishing booting up. These problems went away when I included the acpi=strict parameter in boot-time kernel options.



However, the problem now is that there seems to be no way to get information about the battery level. The usual /sys/class/power_supply is empty and /proc/acpi only has a button directory in it and a file called wakeup.



Is there any way around this? Can I try some other acpi parameter at boot up (acpi=off won't help and in any case blocks the i915 graphics driver, acpi=noirq did not stop the freezing problem)? Or is there some other way to find out the battery level?







share|improve this question



















  • man upower, man acpi
    – ajeh
    Jun 7 at 18:35














up vote
2
down vote

favorite












I am running Debian Buster (testing) / Sid on an Iball Excelance laptop (an Indian company). I initially had problems with the laptop trying to suspend and then freezing immediately after finishing booting up. These problems went away when I included the acpi=strict parameter in boot-time kernel options.



However, the problem now is that there seems to be no way to get information about the battery level. The usual /sys/class/power_supply is empty and /proc/acpi only has a button directory in it and a file called wakeup.



Is there any way around this? Can I try some other acpi parameter at boot up (acpi=off won't help and in any case blocks the i915 graphics driver, acpi=noirq did not stop the freezing problem)? Or is there some other way to find out the battery level?







share|improve this question



















  • man upower, man acpi
    – ajeh
    Jun 7 at 18:35












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I am running Debian Buster (testing) / Sid on an Iball Excelance laptop (an Indian company). I initially had problems with the laptop trying to suspend and then freezing immediately after finishing booting up. These problems went away when I included the acpi=strict parameter in boot-time kernel options.



However, the problem now is that there seems to be no way to get information about the battery level. The usual /sys/class/power_supply is empty and /proc/acpi only has a button directory in it and a file called wakeup.



Is there any way around this? Can I try some other acpi parameter at boot up (acpi=off won't help and in any case blocks the i915 graphics driver, acpi=noirq did not stop the freezing problem)? Or is there some other way to find out the battery level?







share|improve this question











I am running Debian Buster (testing) / Sid on an Iball Excelance laptop (an Indian company). I initially had problems with the laptop trying to suspend and then freezing immediately after finishing booting up. These problems went away when I included the acpi=strict parameter in boot-time kernel options.



However, the problem now is that there seems to be no way to get information about the battery level. The usual /sys/class/power_supply is empty and /proc/acpi only has a button directory in it and a file called wakeup.



Is there any way around this? Can I try some other acpi parameter at boot up (acpi=off won't help and in any case blocks the i915 graphics driver, acpi=noirq did not stop the freezing problem)? Or is there some other way to find out the battery level?









share|improve this question










share|improve this question




share|improve this question









asked Jun 7 at 16:39









ShankarG

17915




17915











  • man upower, man acpi
    – ajeh
    Jun 7 at 18:35
















  • man upower, man acpi
    – ajeh
    Jun 7 at 18:35















man upower, man acpi
– ajeh
Jun 7 at 18:35




man upower, man acpi
– ajeh
Jun 7 at 18:35










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You can use upower command



upower -i $(upower -e | grep 'BAT') | grep -E "state|to full|percentage"






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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f448466%2fchecking-battery-level-when-acpi-has-problems%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You can use upower command



    upower -i $(upower -e | grep 'BAT') | grep -E "state|to full|percentage"






    share|improve this answer



























      up vote
      0
      down vote













      You can use upower command



      upower -i $(upower -e | grep 'BAT') | grep -E "state|to full|percentage"






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        You can use upower command



        upower -i $(upower -e | grep 'BAT') | grep -E "state|to full|percentage"






        share|improve this answer















        You can use upower command



        upower -i $(upower -e | grep 'BAT') | grep -E "state|to full|percentage"







        share|improve this answer















        share|improve this answer



        share|improve this answer








        edited Jun 7 at 19:43


























        answered Jun 7 at 19:29









        SivaPrasath

        4,26911939




        4,26911939






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448466%2fchecking-battery-level-when-acpi-has-problems%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)