Hibernation on mint 20
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Hibernation on mint 20
Hello, I have recently upgraded from 18.3 to 20 in conjunction with SSD upgrade. Since switching to solid state about three years ago I have been following pajor's tutorials on modifying FSTAB and disabling hibernation. I have managed to do the former but his tutorial on disabling hibernation does not seem to work on mint 20.
My question is whether there is still a need to disable hibernation. Was I correct in editing the fstab to this
[qote]
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=9507f9ad-c8cc-4d54-a8d4-6b5774f2bbcb / ext4 noatime,errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=cb8df8ce-d857-4557-a6d7-0e76615fef1f /home ext4 noatime,errors=remount-ro 0 2
# swap was on /dev/sda1 during installation
UUID=ee54c646-e618-4ecc-b61c-2a9a7df74474 none swap sw
[/quote]
My question is whether there is still a need to disable hibernation. Was I correct in editing the fstab to this
[qote]
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=9507f9ad-c8cc-4d54-a8d4-6b5774f2bbcb / ext4 noatime,errors=remount-ro 0 1
# /home was on /dev/sda6 during installation
UUID=cb8df8ce-d857-4557-a6d7-0e76615fef1f /home ext4 noatime,errors=remount-ro 0 2
# swap was on /dev/sda1 during installation
UUID=ee54c646-e618-4ecc-b61c-2a9a7df74474 none swap sw
[/quote]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Hibernation on mint 20
I should ask for more information.
Why do you want to disable hibernation?
If disabling it is not working, does that mean that it is working?
If so, you should buy a lottery ticket , because it usually requires jumping through a lot of hoops just to get it working.
I've only used Mint 19 and did manage to get hibernation working, but perhaps there is something about Mint 20 where it is desirable to disable it?
As for your fstab, just make sure that the UUIDs in your fstab match the UUIDs of the actual partitions from the output of the blkid command.
If they do, then the fstab should be good.
That being said, you should not need to fiddle with the fstab to disable hibernation.
Why do you want to disable hibernation?
If disabling it is not working, does that mean that it is working?
If so, you should buy a lottery ticket , because it usually requires jumping through a lot of hoops just to get it working.
I've only used Mint 19 and did manage to get hibernation working, but perhaps there is something about Mint 20 where it is desirable to disable it?
As for your fstab, just make sure that the UUIDs in your fstab match the UUIDs of the actual partitions from the output of the blkid command.
If they do, then the fstab should be good.
That being said, you should not need to fiddle with the fstab to disable hibernation.
Re: Hibernation on mint 20
Here is some relevant reading
viewtopic.php?t=281196
https://easylinuxtipsproject.blogspot.c ... html#ID1.4
viewtopic.php?t=281196
https://easylinuxtipsproject.blogspot.c ... html#ID1.4
Re: Hibernation on mint 20
Forgive me for not reading the whole thing, but the term hibernate doesn't even appear in either of the articles.siawacsh wrote: ⤴Thu Aug 20, 2020 9:35 pm Here is some relevant reading
viewtopic.php?t=281196
https://easylinuxtipsproject.blogspot.c ... html#ID1.4
Re: Hibernation on mint 20
I thought hibernation was disabled by default and when I checked these LM20 tips for optimizing SSD that is what it says.
A woman typing on a laptop with LM20.3 Cinnamon.
Re: Hibernation on mint 20
Ah, now it is clearer that OP is interested in SSD wear,SMG wrote: ⤴Thu Aug 20, 2020 11:01 pmI thought hibernation was disabled by default and when I checked these LM20 tips for optimizing SSD that is what it says.
Ok the fstab mods with noatime look good.
If mint20 is the same as mint19, you can disable hibernate by erasing the resume parameter (or deleting the whole line if that is the only parameter) this line in /etc/default/grub:
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=putYourSwapUUIDhere"
Code: Select all
sudo update-grub
The whole disabling hibernate to reduce wear is news to me. Perhaps others can comment, but hibernation is so infrequent compared to the thrashing that is done to the disk when running, I'm surprised it can be a concern. I find the hibernation to be useful and have run a super cheap SSD for a few years now with no problem - maybe those are famous last words and I'm on the brink of disaster
Re: Hibernation on mint 20
You may be correct and I am confusing it with suspension. It is when the system logs me out after 10 mins of inactivity and I have to log back in to get access. Is suspend harmless swap free?SMG wrote: ⤴Thu Aug 20, 2020 11:01 pmI thought hibernation was disabled by default and when I checked these LM20 tips for optimizing SSD that is what it says.
Re: Hibernation on mint 20
The setting under Power Options determines when you computer is suspended due to inactivity. The general principal for suspension is everything gets saved to RAM. Hibernation saves to disk, but LM has that turned off by default.
I do not let my laptop suspend and LM20 does not even recommend making a swap partition (due to changes in how it operates), so I haven't looked into the specifics of how or even if it is affecting my SSD. It may even depend on the technology used on your disk as to whether these changes would be helpful. You would have to get advice from others about that.
A woman typing on a laptop with LM20.3 Cinnamon.
Re: Hibernation on mint 20
SMG, can you post a link where the developers suggest against creating a swap partition. BTW I have already set power options to never suspend. It still does though after ten mins.
Thanks
SS
Thanks
SS
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Hibernation on mint 20
Check your screensaver settings - it sounds like your machine is locking after inactivity (not suspending) which is a function of the screensaver.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Hibernation on mint 20
I have not seen any recommendations against creating one; I commented that it is not required to have one.
A swap partition is needed if you hibernate your computer. Hibernation is now disabled by default, so that reason for swap no longer exists.
The default installation of LM20 does not create a swap partition. The answer to this Ubuntu question gives more information,Is it necessary to have a /home and /swap partitions in 20.04. A part of the answer includes, "Since 18.04, a separate swap partition in most Desktops has been superseded by a swap file within the root partition."
You have not provided any information about your hardware or install other than it is LM20. It is possible that if you have low RAM and/or high memory requirements for your software/desktop that you may benefit from swap. These two articles, All You Need To Know About Swap Partition In Linux and How Much Swap Should You Use in Linux? explain swap partitions and swap files. You are free to create a swap partition, but whether your computer benefits from it will depend on your particular set-up and usage.
A woman typing on a laptop with LM20.3 Cinnamon.
Re: Hibernation on mint 20
That was useful reading SMG, thanks!
Regarding my hardware:
6 gig of ram.
My new SSD is 1TB.
Thanks in advance
Siawacsh
Regarding my hardware:
6 gig of ram.
My new SSD is 1TB.
I already installed LM20 with a swap partition double the size of my memory (12 gigs). On reading the new recommendations I am now wondering whether to remove or reduce my swap file. I have found this tutorial to remove but not for reducing it to a smaller partition.
In relation to chrome I could not find "Preload pages for faster browsing and searching: disable it."...My version of chrome is 84.0.4147.135 (Official Build) (64-bit)If for any reason you want to deactivate and remove the swap file, follow these steps:
First, deactivate the swap by typing: sudo swapoff -v /swapfile.
Remove the swap file entry /swapfile swap swap defaults 0 0 from the /etc/fstab file.
Finally, delete the actual swapfile file using the rm command: sudo rm /swapfile.
Thanks in advance
Siawacsh
Re: Hibernation on mint 20
A swap partition and a swap file are two different things. They accomplish a similar purpose, but are have slightly different functionality with regards to how the operating system utilizes them.siawacsh wrote: ⤴Tue Aug 25, 2020 2:27 pmRegarding my hardware:
6 gig of ram.
My new SSD is 1TB.I already installed LM20 with a swap partition double the size of my memory (12 gigs). On reading the new recommendations I am now wondering whether to remove or reduce my swap file. I have found this tutorial to remove but not for reducing it to a smaller partition.
If for any reason you want to deactivate and remove the swap file, follow these steps:
First, deactivate the swap by typing: sudo swapoff -v /swapfile.
Remove the swap file entry /swapfile swap swap defaults 0 0 from the /etc/fstab file.
Finally, delete the actual swapfile file using the rm command: sudo rm /swapfile.
It's fine to leave what you have. I haven't really played with swap partitions or files, so others would be able to give better advice if you decide you want to change what you have. If you do a lot of graphics, gaming, or anything that has high memory requirements, it may be better for you to have the swap partition, especially if your computer goes to sleep. (Were you able to stop that from happening with smurphos's tip?)
I don't use chrome, so I can't provide any help with this.
A woman typing on a laptop with LM20.3 Cinnamon.
Re: Hibernation on mint 20
So can no one tell me how to turn off suspension. As mentioned, I have already set power management to never suspend. But it still does after ten mins.
I also am experiencing printer driver problems which happens each time I upgrade. It is a Samsung ML-1675 which gets detected. But only prints the usual generic messsage from firmware but nothing else. It is a I will create another thread for that.
Siawacsh
I also am experiencing printer driver problems which happens each time I upgrade. It is a Samsung ML-1675 which gets detected. But only prints the usual generic messsage from firmware but nothing else. It is a I will create another thread for that.
Siawacsh
Re: Hibernation on mint 20
Did you try changing your screensaver setting as smurphos suggested?
For the "Delay before starting the screensaver" I have mine set to "Never".
A woman typing on a laptop with LM20.3 Cinnamon.
Re: Hibernation on mint 20
I missed that one. My apologies and much thanks! It was screen saver issue.
Siawacsh
Siawacsh