It seems that if I close it for only a while and open it, it works fine. But if I have left it closed for a while when I open it I cannot log back in, I can click the cancel button so it hasn’t frozen it seems, but the text box to enter my password is greyed out.
When I installed I opted for a swap file, but I have not done anyhting with it, I’m not sure if that is important.
if you do not setup to have resume function enabled you will need to do so, it will only automatic setup on installs using swap-partition and choosen with hibernate, if you are using swapfile you need to setup by yourself:
get the uuid of your root device: sudo findmnt -no UUID -T /swapfile
get the swap_file_offset (the point where it starts and ends) sudo filefrag -v /swapfile | awk '{ if($1=="0:"){print substr($4, 1, length($4)-2)} }'
edit /etc/default/grub
and add needed dconfig to it:
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog resume=UUID=0001 resume_offset=0002
where you need to replace 0001 with the UUID of your root device and 0002 with the swap_file_offset.
then enable the resume hook inside /etc/mkinitcpio.conf:
HOOKS="base systemd autodetect modconf block keyboard keymap filesystems fsck"
adding resume before fsck that this line looks similar to this: HOOKS="base systemd autodetect modconf block keyboard keymap filesystems resume fsck"
(do not change anything else than adding resume!)
now rebuild kernel images and grub.cfg:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=52C4-2955 /boot/efi vfat umask=0077 0 2
UUID=150bb5ff-71f0-43c5-9f57-12f1f5015e20 / ext4 defaults,noatime 0 1
/swapfile swap swap defaults,noatime 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
second command gives this output:
cat /etc/deafult/grub
cat: /etc/deafult/grub: No such file or directory
# GRUB boot loader configuration
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="EndeavourOS"
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME=/boot/grub/themes/EndeavourOS/theme.txt
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
GRUB_DISABLE_SUBMENU=y
neil@neil-hppavilionlap
offset could be set wrong or the service is not able to get the size for the swapfile, both solvable…
But it can be also settings inside Firmware (fka Bios)
Note: Since version 244, systemd validates the exact specified swap has enough space. The swap offset detection on Btrfs is not currently supported and therefore systemd cannot recognize the swap file. Set the environment variableSYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK to 1 in both the systemd-logind and systemd-hibernate service to fallback to the old behavior. See systemd issue #14249 for details.