[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:32:33
Message-ID: 8f26efc6-77b3-40ea-8e46-98826fa97c7a () telefonica ! net
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]

[Attachment #4 (text/plain)]

On 2024-02-17 19:15, -pj via openSUSE Users wrote:
> 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
> -

Ok, you have simply enlarged the previous swap space, so it should work. 
There is no references to uuids or labels.



> > > > 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%20Swa \
> > > p%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.

Huh?

[...]

Right, you need to call "mkswap" on the device.

Disable swap, run mkswap on it, enable swap.

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

When hibernation fails, there is little one can do, short of dancing 
around the computer with a magic wand and incense sticks.

Ok, no, there are things one can do, but after it fails.


...

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