[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 17:37:57
Message-ID: bfc47027-8d34-4092-8075-3e634a96292f () gmx ! com
[Download RAW message or body]



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:
> > > Hello,
> > > 
> > > In the Message;
> > > 
> > > Subject       : Re: HP PS/2 style keyboard preventing suspend:
> > > Message-ID : <c53b188d-4a02-41d6-b59f-52daf2f197bd@gmx.com>
> > > Date & Time: Fri, 16 Feb 2024 23:00:35 -0600
> > > 
> > > [pj] == -pj via openSUSE Users <users@lists.opensuse.org> has written:
> > > 
> > > [...]
> > > MN> > Please show the results of the following;
> > > 
> > > MN> >       1. $ inxi -Fxxz
> > > MN> >       2. $ wdctl
> > > 
> > > pj>   Ok,
> > > 
> > > pj> Thinkcentre-M57p:/> inxi -Fxxz
> > > [...]
> > > pj>   Machine:
> > > pj>       Type: Desktop System: LENOVO product: 9088A83 v: ThinkCentre M57p
> > > pj>           serial: <superuser required> Chassis: type: 3 serial:
> > > <superuser
> > > pj>   required>
> > > 
> > > I thought yours would be lenovo.
> > > 
> > > [..]
> > > pj>   Swap:
> > > pj>       ID-1: swap-1 type: partition size: 6.52 GiB used: 266.8 MiB
> > > (4.0%)
> > > pj>           priority: -2 dev: /dev/dm-2 mapped: system-swap
> > > [...]
> > > pj>   Info:
> > > pj>       Memory: total: 8 GiB note: est. available: 7.51 GiB used: 5.69
> > > GiB
> > > pj>   (75.8%)
> > > [...]
> > > 
> > > 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.
> 
> 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%20Fi \
le%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:

1. # btrfs filesystem resize -9g /
Resize device id 1 (/dev/mapper/system-root) from 924.98GiB to 915.98GiB
-
2. # lvs
   LV   VG     Attr       LSize   Pool Origin Data%  Meta%  Move Log
Cpy%Sync Convert
   root system -wi-ao---- 924.98g

   swap system -wi-a-----   6.52g
-
3.  # lvresize -L -9G /dev/system/root
   File system btrfs found on system/root.
   File system size (915.98 GiB) is equal to the requested size (915.98
GiB).
   File system reduce is not needed, skipping.
   Size of logical volume system/root changed from 924.98 GiB (236796
extents) to 915.98 GiB (234492 extents).
   Logical volume system/root successfully resized.
-
4. # lvresize -L +9G /dev/system/swap
   Size of logical volume system/swap changed from 6.52 GiB (1668
extents) to 15.52 GiB (3972 extents).
   Logical volume system/swap successfully resized.
-
5. # # df -Th
Filesystem              Type      Size  Used Avail Use% Mounted on
/dev/mapper/system-root btrfs     916G  128G  788G  14% /
devtmpfs                devtmpfs  4.0M     0  4.0M   0% /dev
tmpfs                   tmpfs     3.8G     0  3.8G   0% /dev/shm
tmpfs                   tmpfs     1.6G  1.8M  1.6G   1% /run
tmpfs                   tmpfs     3.8G  668K  3.8G   1% /tmp
/dev/mapper/system-root btrfs     916G  128G  788G  14% /.snapshots
/dev/mapper/system-root btrfs     916G  128G  788G  14% /boot/grub2/i386-pc
/dev/mapper/system-root btrfs     916G  128G  788G  14%
/boot/grub2/x86_64-efi
/dev/mapper/system-root btrfs     916G  128G  788G  14% /home
/dev/mapper/system-root btrfs     916G  128G  788G  14% /opt
/dev/mapper/system-root btrfs     916G  128G  788G  14% /root
/dev/mapper/system-root btrfs     916G  128G  788G  14% /srv
/dev/mapper/system-root btrfs     916G  128G  788G  14% /usr/local
/dev/mapper/system-root btrfs     916G  128G  788G  14% /var
tmpfs                   tmpfs     770M  104K  770M   1% /run/user/1000
-
6. # lsblk
NAME                                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
fd0                                   2:0    1     4K  0 disk
sda                                   8:0    0 931.5G  0 disk
├─sda1                                8:1    0     8M  0 part
└─sda2                                8:2    0 931.5G  0 part
   └─Lenovo_M57p-openSUSE_Tumbleweed 254:0    0 931.5G  0 crypt
     ├─system-root                   254:1    0   916G  0 lvm   /var
     │                                                          /usr/local
     │                                                          /srv
     │                                                          /root
     │                                                          /opt
     │                                                          /home
     │
/boot/grub2/x86_64-efi
     │
/boot/grub2/i386-pc
     │                                                          /.snapshots
     │                                                          /
     └─system-swap                   254:2    0  15.5G  0 lvm
sdb                                   8:16   1   1.9G  0 disk
sr0                                  11:0    1  1024M  0 rom
-
7. Note how swap is now displayed at 15.5G in size.
-
8. I believe that it may not have been necessary to pass the following
at all: # btrfs filesystem resize -9g /
-
9. Do you have any recommendations on setting the machine up for
hibernation?
-
10. I commented out in /etc/fstab the following# /dev/system/swap  swap
                   swap   defaults                      0  0

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

-Best Regards


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

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