[prev in list] [next in list] [prev in thread] [next in thread]
List: opensuse
Subject: Re: HP PS/2 style keyboard preventing suspend:
From: "Carlos E. R." <robin.listas () telefonica ! net>
Date: 2024-02-17 18:02:09
Message-ID: 3eb23260-e9d4-406e-97e4-004d76a0d52a () telefonica ! net
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
[Attachment #4 (text/plain)]
On 2024-02-17 18:37, -pj via openSUSE Users wrote:
> On 02-17-2024 07:06AM, Carlos E. R. wrote:
> > On 2024-02-17 06:58, -pj via openSUSE Users wrote:
> > > On 02-16-2024 11:21PM, Masaru Nomiya wrote:
> > > > [...]
> > > >
> > > > The swap size is too small.
> > > > As it is too small, it will lockup under stress.
> > > > If you want to use hibernate, the swap size should be at least 12GB
> > > > (8x1.5).
> > > > So, create a swap file.
> > >
> > > So basically expand system-swap lvm for suspend to 12 GB
> >
> > For hibernate, not for suspend.
> >
> > If you don't hibernate, then swap is not needed (yet)
> >
> I would like to be able to use the hibernate feature also.
Ah.
Well, then you need swap to be a bit bigger than your used RAM size.
I think you can add two swap areas; but for recovering the kernel only
uses one, the one that is cited in the kernel boot line.
A while ago you had:
BOOT_IMAGE=/boot/vmlinuz-6.7.4-1-default root=/dev/mapper/system-root
resume=/dev/system/swap nosimplefb=1 splash=0 plymouth.enable=0
mitigations=auto i8042.nomux=1 i8042.reset i8042.noloop=1
So you have to change that "resume=..." section.
Hum, you like is strange to me, I don't know what /dev/system is.
> >
> > Notice that swap has no effect on your power-off problem.
> >
> I am noticing that swap has no effect on my power-off problem.
>
> > > (this is why
> > > machine is jamming up sometimes lately)? Can I leave the *btrfs
> > > filesystem* in system-root expanded 100% (as is now) and shrink
> > > system-root lvm then expand system-swap lvm? Any benefits to make
> > > system-swap 20GB not only 12GB?
> > > -
> > > Also create a 12 GB swapfile in order to use hibernate otherwise
> > > hibernate will never work?
> >
> > I prefer a swap partition, but if the disk is already partitioned, I
> > understand a swapfile will do. But then the existing swap space will be
> > superfluous.
> >
> I didn't want to take the route described in the following link here yet
> if possible:
> https://linuxize.com/post/create-a-linux-swap-file/#:~:text=How%20to%20add%20Swap%20 \
> File%201%20Create%20a,the%20file%20as%20Linux%20swap%20area%3A%20...%20%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%AE%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0
>
> Check out what I have done as follows please:
I'm not an expert on btrfs or lvm, sorry.
>
> 1. # btrfs filesystem resize -9g /
> Resize device id 1 (/dev/mapper/system-root) from 924.98GiB to 915.98GiB
> -
...
> -
> 7. Note how swap is now displayed at 15.5G in size.
Yes, I did.
> -
> 8. I believe that it may not have been necessary to pass the following
> at all: # btrfs filesystem resize -9g /
> -
I can't say.
> 9. Do you have any recommendations on setting the machine up for
> hibernation?
It either works or not :-)
Sometimes I suspect some application conflicts, then I stop the app in
advance. For example, vmware/virtualbox.
> -
> 10. I commented out in /etc/fstab the following# /dev/system/swap swap
> swap defaults 0 0
But you have to declare swap both in fstab and in grub's kernel line.
>
> I am going to revert that above now (and powercycle).
>
> > > -
> > > You have a recommendation for setting 'swappiness' on this machine?
> >
> > I never touch it.
> >
> Thanks for your thoughts on "swappiness".
> -}
--
Cheers / Saludos,
Carlos E. R.
(from 15.5 x86_64 at Telcontar)
["OpenPGP_signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic