Tagged: suspend
- This topic has 7 replies, 6 voices, and was last updated Jun 1-11:30 pm by BobC.
-
AuthorPosts
-
May 28, 2019 at 11:00 pm #22204Member
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.
May 28, 2019 at 11:29 pm #22205Anonymous
::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.May 29, 2019 at 2:12 am #22213ModeratorBobC
::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
May 29, 2019 at 3:07 am #22220Member
fatmac
::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
May 29, 2019 at 4:57 am #22233MemberPPC
::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.
May 29, 2019 at 8:49 am #22262Member
oops
::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.June 1, 2019 at 11:23 pm #22396Memberpi-man
::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 04. 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
June 1, 2019 at 11:30 pm #22397ModeratorBobC
::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.
-
AuthorPosts
- You must be logged in to reply to this topic.