Also, when providing code/output, please copy-paste it in-between 3 backticks at the beginning and end of the code/text ``` so that the output looks like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
instead of like this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
(as that makes our life much easier so you get helped more quickly and efficiently)
So resume in both mkinitcpio and grub and that’s good.
As I don’t have your hardware, I can’t help you any further except referring you back to the Arch documentation mentioned by Bogdan and the hibernation debugging documentation from the Linux Kernel team:
Sorry for the late answer. Been travelling all day.
the multiple > at the end of the line mean you’re missing output on that line. Please maximise the window before copying or redirect to a file before posting the last output…
journalctl --system --boot=0 | grep "suspend entry"
journalctl --system --boot=0 | grep "suspend exit"
Oct 19 07:31:37 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend entry (deep)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend entry (s2idle)
Oct 19 07:42:03 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend entry (deep)
Oct 19 07:42:05 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend entry (s2idle)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend exit
Oct 19 07:31:41 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend exit
Oct 19 07:42:05 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend exit
Oct 19 07:42:08 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend exit
~ >>> journalctl --system --boot=0 --since "2020-10-19 07:31:37" --until "2020-10-19 07:42:08"
-- Logs begin at Fri 2020-09-18 09:23:55 +06, end at Mon 2020-10-19 07:42:43 +06. --
Oct 19 07:31:37 alnayeef1-hppaviliondv6notebookpc systemd-sleep[1300]: Suspending system...
Oct 19 07:31:37 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend entry (deep)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: PM: Syncing filesystems ... done.
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: Freezing user space processes ... (elapsed 0.002 seconds) done.
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: OOM killer disabled.
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: Suspending console(s) (use no_console_suspend to debug)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: sd 0:0:0:0: [sda] Stopping disk
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ahci 0000:00:1f.2: BIOS update required for suspend/resume
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: pci_pm_suspend(): ahci_pci_device_suspend+0x0/0x50 [ahci] returns -5
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: dpm_run_callback(): pci_pm_suspend+0x0/0x110 returns -5
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: PM: Device 0000:00:1f.2 failed to suspend async: error -5
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: PM: Some devices failed to suspend, or early wake event detected
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ACPI: button: The lid device is not compliant to SW_LID.
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: usb usb3: root hub lost power or was reset
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: usb usb4: root hub lost power or was reset
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: usb usb5: root hub lost power or was reset
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: usb usb6: root hub lost power or was reset
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: usb usb7: root hub lost power or was reset
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: usb usb8: root hub lost power or was reset
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: r8169 0000:03:00.0 enp3s0: link down
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ERROR @wl_wowl_ind_wake_reason :
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: Unable to get wake reason, err = -95
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: sd 0:0:0:0: [sda] Starting disk
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: usb 4-2: reset full-speed USB device number 2 using uhci_hcd
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ata5: SATA link down (SStatus 0 SControl 300)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ata6: SATA link down (SStatus 0 SControl 300)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: ata1.00: configured for UDMA/100
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: OOM killer enabled.
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: Restarting tasks ... done.
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: video LNXVIDEO:00: Restoring backlight state
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend exit
Oct 19 07:31:38 alnayeef1-hppaviliondv6notebookpc kernel: PM: suspend entry (s2idle)
lines 1-37
HP support is saying that my laptop is more than 10 years old and they don’t give support for older models. So there’s no BIOS update on their website. I don’t want to go back to windoze because I don’t like it that much.
In my other computer; after installing NVIDIA graphics driver, sleep or suspend is working. But my laptop is not with NVIDIA graphics card. So I don’t know what to do.
It working on Windows just means that HP programmed around the BIOS bug with a specific Windows driver.
If you cannot update the BIOS as specified by the kernel ¹, your only course of actions are:
don’t use suspend/resume on the old clunker,
find an HP Linux driver for suspend (unlikely)
Note 1: People much smarter than me (I.E. Linus Torvalds) is telling you to upgrade your BIOS, so you should. Ask on the HP community forum if someone still has the old BIOS upgrades and is willing to share them with you if HP does not provide them any more… Note 2: There is something called TuxOnIce, but as that patches the kernel, it’s potentially dangerous.
As I haven’t used that in the last 5 years or so, you’re on your own so before reading the docs there, make a cold system backup as you might end up with an an bootable system.
I’ve marked the below answer as the solution to your question as it is by far the best answer you’ll get.
However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or or if you agree)
P.S. In the future, please don’t forget to come back and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.