Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

  1. #11
    currentshaft is offline Oops! My Coffee Cup is empty.
    Join Date
    May 2024
    Beans
    Hidden!

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    Quote Originally Posted by csae2608 View Post
    well , thanks, might look into this.

    have updated now to latest bios 1.37 from lenovo, will see if it helps.


    however, automatic installer has mad no swap-file available, so i wonder how i can enable hibernation?

    the idea being, that the lptop after some time in suspend, say 2 hourse, does hibernate, which seems reasonable to me; also , the modern battery sometimes does not hold a charge that good / eg. depletes itself after fewer charging cycles.

    remember that on older powerbook, even after long time in "suspend" it still would turn on and let do basic tasks.

    --------
    HTML Code:
    rich@rich-ThinkPad-E590:~$ sudo blkid | grep swap
    (no result)
    I wouldn't worry about the swap yet. Run the Intel script I linked to debug your sleep state first.

  2. #12
    Join Date
    Sep 2013
    Beans
    111

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    thank you, that was helpful.

    HTML Code:
    sudo ./s0ix-selftest-tool.sh -s
    
    ---Check S2idle path S0ix Residency---:
    
    The system OS Kernel version is:
    Linux rich-ThinkPad-E590 6.5.0-44-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 14:36:16 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
    
    ---Check whether your system supports S0ix or not---:
    
    Low Power S0 Idle is:0
    Your system does not support low power S0 idle capability.     
    Isolation suggestion:     
    Please check BIOS low power S0 idle capability setting.

    might have to ask @Lenovo if they can enable this function in BIOS update?
    the laptop has i7-8565u cpu that should be able to save power efficiently?

  3. #13
    Join Date
    Sep 2022
    Beans
    Hidden!
    Distro
    Lubuntu 20.04 Focal Fossa

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    Hibernate is disabled on (y)Ubuntu and needs to be actively enabled, which is not easy. There might be a little program to do this, I haven't checked.

    Here's the recipe;

    PS: I've never gotten it to work with a swapfile, you definitely need a swap partition.
    Attached Files Attached Files
    Last edited by ne29914; July 19th, 2024 at 09:59 PM.

  4. #14
    Join Date
    Sep 2013
    Beans
    111

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    i remember using debian and the installer would automatically present me with a swap partition when doing automatical install, around 1.5 size of ram;
    Ubuntu has improved on installation routine somehow, but this seems a bit cleearly a regression if automatic install on a dedicated HDD/SSD does not give enough space for swappartition/hibernation.

    EDIT: have checked and there is definitely no swap space; am i to blame that i did not "manually" partition the drive? would think not, this should be offered a standard, if the feature is useful (as it clearly seems).

    Attached Images Attached Images
    Last edited by csae2608; July 19th, 2024 at 10:33 PM.

  5. #15
    Join Date
    Sep 2022
    Beans
    Hidden!
    Distro
    Lubuntu 20.04 Focal Fossa

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    I can't comment on installing Ubuntu, as I run Lubuntu which uses a different installer.

    But yes, I always choose manual partitioning, as I like to keep / and /home separate. This also includes defining a swap partition.

  6. #16
    Join Date
    Mar 2007
    Location
    Promiseland
    Beans
    1,662
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    lost around 28% of battery just in 1 day and some hours, which seems definitely excessive to me.
    Why not just turn it off for anything longer than an hour?
    Cheers,


    The Linux Command Line at https://linuxcommand.org/

  7. #17
    Join Date
    Sep 2013
    Beans
    111

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    Quote Originally Posted by him610 View Post
    Why not just turn it off for anything longer than an hour?
    the idea is to pick where left , and therefore use hibernate;


    how i tried this approach here

    https://www.wikihow.com/Attach-a-Swa...ition-to-Linux


    and it seems to function halfway;

    with

    "sudo pm-hibernate" or "sudo systemctl hibernate" it effectively would "hibernate" , but instead of picking up where it left, it would not save the RAM state, instead just shutting down the machine; and upon clicking the power button, it would normally restart;

    is this the wrong method to attach the swap to Ubuntu?

  8. #18
    #&thj^% is offline I Ubuntu, Therefore, I Am
    Join Date
    Aug 2016
    Beans
    Hidden!

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    Ubuntu has made it much harder to hibernate from 22.04 thru 24.10
    check with:
    Code:
    sudo dmesg|grep hibernation
    Quote Originally Posted by csae2608 View Post
    I i would have only Ubuntu installed, it would be easy to miss those firmware updates, or how could i achieve them?
    thanks
    I use topgrade for all, Topgrade: A single utility to take care of all kinds of updates: https://itsfoss.com/topgrade/
    I've used that for a little over 2 yrs now, and not one mishap in that time. (This is needed "fwupd ")

  9. #19
    Join Date
    Sep 2013
    Beans
    111

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    Quote Originally Posted by ne29914 View Post
    Hibernate is disabled on (y)Ubuntu and needs to be actively enabled, which is not easy. There might be a little program to do this, I haven't checked.

    Here's the recipe;

    PS: I've never gotten it to work with a swapfile, you definitely need a swap partition.


    Thank you very much!

    This enabled the Hibernate after i manipulated the SSD by inserting a Swap partition via a Gparted Livesystem.

    Still investigating the Battery drain , though

    ("sudo pm-suspend" is much more effective than just closing the lid on the laptop | > wrong assertion, it is not so much more effective, sucks battery just as closing lid
    Last edited by csae2608; July 22nd, 2024 at 01:43 PM.

  10. #20
    Join Date
    Sep 2022
    Beans
    Hidden!
    Distro
    Lubuntu 20.04 Focal Fossa

    Re: Laptop trouble sleeping properly (battery drain) - fresh install lacks hibernate?

    Quote Originally Posted by csae2608 View Post
    Thank you very much!

    This enabled the Hibernate after i manipulated the SSD by inserting a Swap partition via a Gparted Livesystem.

    Still investigating the Battery drain , though

    ("sudo pm-suspend" is much more effective than just closing the lid on the laptop)
    Dunno why you're mentioning "pm-suspend". It should be "pm-hibernate" if you're using pm-utils.

    The basic command is:
    Code:
    sudo systemctl hibernate
    Complete laptop status will be be stored to disk and the computer will turn off. No battery drain at all.

Page 2 of 3 FirstFirst 123 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
  •