Antix suspend problem

Forum Forums General Software Antix suspend problem

Tagged: 

  • This topic has 7 replies, 6 voices, and was last updated Jun 1-11:30 pm by BobC.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #22204
    Member
    pi-man

      I installed Antix a few days ago and my major problem is that it will suspend, but not come back. The keyboard appears dead and the led keys will not light up. It has not shut down because it requires about a 5 second power button hold before it will allow another press to reboot the system.

      I am running 3 operating systems on this laptop, Linux Mint, MX Linux, and AntiX. Suspend works fine on Mint and MX.

      When I partitioned during the install for Antix, I only set up a root and home partition. I did not set up a swap partition because I already had two on the drive, and I did not really know of any reason AntiX would not find the existing swap partitions. And in fact, Conky shows the swap partitions on the desktop, but I can’t say that I have ever seen it showing any of it being used. I have 12G of ram.

      Any suggestions would be greatly appreciated.

      #22205
      Anonymous
        Helpful
        Up
        0
        ::

        hi pi-man,

        Make sure the swap is listed
        in the “/etc/fstab” file. During install you could have selected one of the
        existing swap partitions. But now you might have to manually enter it
        in the fstab. Using the text editor as root. sudo leafpad /etc/fstab
        Otherwise you can try looking into seeing if you
        can setup a “suspend to file” kind of configuration. I created a swapfile
        on my laptops’ root partition after setup and that worked for it.
        https://linuxize.com/post/create-a-linux-swap-file/
        Here’s a link on doing that … that is also how to do suspend in a virtual
        machine setup also, as they don’t have a swap partition
        Whenever I have more than one linux distro on a machine, I use a swapfile for each not a separate
        partition to keep them apart.

        #22213
        Moderator
        BobC
          Helpful
          Up
          0
          ::

          Yes, I think Linuxdaddy is correct that what swapfile or partition to use needs to be in fstab. I haven’t ever tried the swapfile method, but maybe I should be using that too.

          • This reply was modified 3 years, 11 months ago by BobC. Reason: Linuxdaddy's solution might be better than what I did
          #22220
          Member
          fatmac
            Helpful
            Up
            0
            ::

            Yes, basically, each system needs to know where its swap is, & you need at least the same size as your ram, to use suspend/hibernate.

            Linux (& BSD) since 1999

            #22233
            Member
            PPC
              Helpful
              Up
              0
              ::

              I have the same problem in my desktop. in both antiX and MX- I have a Nvidea card and that happens if I don’t install the proprietary Nvidea driver.
              If that’s your case, try to install the driver, restart and try suspending your computer again.

              P.

              #22262
              Member
              oops
                Helpful
                Up
                0
                ::

                You can try this before (from dolphin_oracle):

                once the swap partition is created, you can use
                
                make-fstab -s
                
                to add swap entry to your fstab automatically.
                then you will need to update the initramfs to tell the system where the resume partition is.
                
                sudo update-initramfs -u -k all
                
                should do the trick.
                
                If that doesn’t work, you will want to add a “resume=path_to_swap” boot code to your /etc/default/grub and then do a
                
                sudo update-grub
                
                to apply that change.

                https://www.antixforum.com/forums/topic/forgot-swap-partition-when-i-did-the-install-suspend-resume-not-working/#post-22094

                #22396
                Member
                pi-man
                  Helpful
                  Up
                  0
                  ::

                  Thanks for the responses! I have 4 questions.

                  I have not tried anything yet. The two swap files that also show on my conky desktop are listed in the antix fstab. As I said earlier one was setup for my Linux Mint installation, and the other for MX Linux. I didn’t set up a swap during the antix installation because I wanted to share the same swap file I use for MX Linux.

                  1. Is that possible to do?

                  I have taken a look at the partition layout with blkid, lsblk -f, and also gparted. I noticed that in fstab my unmounted Mint and MX partitions show a mount point of /media/then the UUID.

                  2. Is that normal?

                  I noticed that in blkid, after the UUID number it also gives a PART UUID number. The first UUID number is the one that matches lsblk -f and fstab.

                  3. Is it normal to have a 2nd UUID number in blkid?

                  And finally, though I stated I hadn’t tried anything yet, I must have started the make-fstab -s suggestion that was given, because the last entry in fstab is:

                  UUID=2019-03-28-16-05-31-00 /media/sr0 auto noauto,exec,users,ro 0 0
                  # Added by make-fstab /dev/sr0
                  /dev/sr0 /media/sr0-2 auto noauto,exec,users,ro 0 0

                  4. Does this look like it is ready to use: sudo update-initramfs -u -k all to update the initramfs?

                  If you can offer anything, thanks again!

                  Pi-man

                  #22397
                  Moderator
                  BobC
                    Helpful
                    Up
                    0
                    ::

                    Trying to use the same swap for more than one is possible, but asking for trouble. I do it separate anymore if i’m going to want to suspend or hibernate.

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.