[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    Re: HP PS/2 style keyboard preventing suspend:
From:       -pj via openSUSE Users <users () lists ! opensuse ! org>
Date:       2024-02-17 18:15:24
Message-ID: f01ce061-d30e-4df3-b57a-da8f38768e02 () gmx ! com
[Download RAW message or body]



On 02-17-2024 12:02PM, Carlos E. R. wrote:
> 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.

I think /dev/system/swap is the LV the way the block device communicates
with it. I believe that was in there when the OS was initially installed.

I have not changed "resume=..." section. I have not even removed any
"i8042..." entries yet either. Please see the current output:
-
# cat /proc/cmdline
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
-

> 
> 
> > > 
> > > 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% \
> > 20File%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.
> 
Please note that 'free -m' output displays only what appears to be the
previous swap size. I just noticed this.
# free -m
                total        used        free      shared  buff/cache
available
Mem:            7693        5655         350         130        2076
    2037
Swap:           6671          10        6661

> > -
> > 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 :-)

> > Ok.
> 
> 
> 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.

Ok.
> 
> 
> > 
> > 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".
> 
> > -}
> > > 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic