Announcement

Collapse
No announcement yet.

How to hibernate in Kubuntu 2004?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [PLASMA 5] How to hibernate in Kubuntu 2004?

    This is a fresh install of Kubuntu 2004 with GPT and EFI partition. I have 8 GB RAM and 10 GB SWAP partition. There is no option in the menu to hibernate.
    'pm-hibernate' reveals-
    Code:
    jagdeesh@jld-lap-HP15-kub2004:~$ sudo pm-hibernate
    [sudo] password for jagdeesh: 
    sudo: pm-hibernate: command not found
    jagdeesh@jld-lap-HP15-kub2004:~$
    blkid is-
    Code:
    jagdeesh@jld-lap-HP15-kub2004:~$ blkid
    /dev/sda4: UUID="20c9c292-b9f8-4e00-a710-71160b03b268" TYPE="swap" PARTLABEL="swap-partn" PARTUUID="f2a22a8a-b7ce-4e1b-b68b-c6ca4e0bcca0"
    /dev/sda8: LABEL="kub2004" UUID="685c9e51-27a9-4fde-b203-ebd876188229" TYPE="ext4" PARTUUID="fa819792-2936-451b-a00d-75dd97e152eb"
    /dev/loop0: TYPE="squashfs"
    /dev/loop1: TYPE="squashfs"
    /dev/loop2: TYPE="squashfs"
    /dev/loop3: TYPE="squashfs"
    /dev/loop4: TYPE="squashfs"
    /dev/loop5: TYPE="squashfs"
    /dev/loop6: TYPE="squashfs"
    /dev/sda1: LABEL="SYSTEM" UUID="6871-5643" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="539862ed-6bd2-47be-867a-a2a770a67928"
    /dev/sda3: LABEL="Windows" UUID="C692487E924874C9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ee5beef2-464e-4406-8d41-6dbdad379857"
    /dev/sda5: UUID="4e30a3b3-4d06-4377-95da-9817968b6b20" TYPE="ext4" PARTUUID="c6cb5b73-5b31-4ca8-8ca4-65eb8c412f2e"
    /dev/sda6: LABEL="neon2008" UUID="541a6ed7-60eb-490e-b0e4-5b66f92b0966" TYPE="ext4" PARTUUID="cc3bf52e-7cb2-40da-a5c0-ca5ed3ce048f"
    /dev/sda7: LABEL="Windows RE tools" UUID="FC823AE4823AA356" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8b6433a0-ea97-4146-90fc-1a0e878f6695"
    /dev/sda9: LABEL="DATA" UUID="e1adc016-71cf-4e48-88ad-58f5497b5c0a" TYPE="ext4" PARTUUID="e8b6a6fc-6219-4370-9976-4620454a5ef0"
    /dev/sda10: LABEL="BACKUP" UUID="524f23e1-cead-4f5f-a5d4-7825e685d24f" TYPE="ext4" PARTLABEL="backup" PARTUUID="78fc07f9-de13-4523-84d6-9b82bd6a2e89"
    jagdeesh@jld-lap-HP15-kub2004:~$
    fstab contents are-
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda8 during installation
    UUID=685c9e51-27a9-4fde-b203-ebd876188229 /               ext4    errors=remount-ro 0       1
    # /boot/efi was on /dev/sda1 during installation
    UUID=6871-5643  /boot/efi       vfat    umask=0077      0       1
    # swap was on /dev/sda4 during installation
    UUID=20c9c292-b9f8-4e00-a710-71160b03b268 none    swap    sw              0       0
    #Entry for /dev/sda9: LABEL="DATA" 
    UUID=e1adc016-71cf-4e48-88ad-58f5497b5c0a   /media/DATA   ext4  defaults      0        2
    #Entry for /dev/sda10: LABEL  BACKUP
    UUID=524f23e1-cead-4f5f-a5d4-7825e685d24f   /media/BACKUP ext4  defaults      0        2
    While Installing, kept GRUB on /dev/sda, should it be installed to /dev/sda1?
    Pl.advise.

    #2
    Ubuntu has for a long time disabled hibernation (suspend to disk), as it was deemed to buggy and unreliable.
    The method to re-enable it has changed over the years. This article seems thorough and explains things well.

    https://blog.ivansmirnov.name/how-to...-ubuntu-20-04/

    You do need to add a swap partition at least as big as the amount of ram you have, *buntu now uses smaller swap files these days
    As you have a good sized swap partition already, following the above how-to will be a lit easier as there is much you will be able to skip
    Only follow the page up to Test #2 on this page, once hibernation is enabled and working, it should show up in the 'leave' menus automatically, iirc.
    Last edited by claydoh; Nov 28, 2020, 07:39 PM.

    Comment


      #3
      Originally posted by Jag59 View Post
      [/CODE]

      While Installing, kept GRUB on /dev/sda, should it be installed to /dev/sda1?
      Pl.advise.
      No, as you are using UEFI to boot, the option is there in cases where one may have an EFI partition (sda1 on your system) on a different drive. And yes, the option is totally NOT clear at all. The installer will use an available EFI partition automatically anyway.
      Leave it as it is.

      Comment


        #4
        Thanks for the prompt reply.

        Instead of 'pm-utils-hibernate', found 'pm-utils' in muon pkg manager. Installed it.
        Did Set up "resume" in grub and initramfs
        Updated grub, regenerated initramfs

        But I do not get menu entry for hibernation even after restarting the laptop.

        Code:
        jagdeesh@jld-lap-HP15-kub2004:~$ sudo systemctl hibernate
        [sudo] password for jagdeesh: 
        Failed to hibernate system via logind: Sleep verb "hibernate" not supported
        jagdeesh@jld-lap-HP15-kub2004:~$
        What more details should I furnish?
        Last edited by Jag59; Nov 29, 2020, 08:21 AM.

        Comment


          #5
          You misread the instructions.

          You need to install both packages: pm-utils and hibernate

          Install package hibernate and likely things will work for you.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            OH, my mistake!
            Installed 'hibernate' with 1 dependency.
            Updated grub, regenerated initramfs, yet no difference at all.
            Code:
            jagdeesh@jld-lap-HP15-kub2004:~$ sudo systemctl hibernate
            [sudo] password for jagdeesh: 
            Failed to hibernate system via logind: Sleep verb "hibernate" not supported
            jagdeesh@jld-lap-HP15-kub2004:~$

            Comment


              #7
              Failed to hibernate system via logind: Sleep verb "hibernate" not supported
              "If you get this error, you probably need to disable secure boot under the security menu in the UEFI/BIOS"

              Have you checked/done this yet?
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Disabled 'secure boot' in BIOS.
                Took 8 minutes to hibernate ( 500 MiB RAM usage with only one dolphin window open).
                While resuming, displayed %age of image resuming but even after 18 minutes could not resume.
                Had to press (alt+prt screen) r e i s u b to reboot.

                Enough of it for today. Going to restore system with Timeshifts' backup.

                Thanks all for the cooperation.

                What should I mark for this thread? 'Solved' will not be an appropriate one.

                Comment

                Working...
                X