Laptop shuts down after trying to wake from Hibernation

So installed Manjaro last week and just noticed that I don’t have a swap partition setup. So I did it by following a Manjaro wiki article on the same and it worked! I think…

$ swapon --show
NAME           TYPE      SIZE USED PRIO
/dev/nvme0n1p6 partition 9.8G 1.1G   -2

But now when I click on hibernate my laptop screen goes black and when I try to wake it up by pressing a key on the keyboard it shows this weird static thing and just shuts off. However, when I power it back on all my stuff is still there!

I also followed some tutorial which told me to:

  1. GRUB_CMDLINE_LINUX="resume=UUID={partition-UUID}" in /etc/default/grub
  2. Adding resume to my HOOKS in /etc/mkinitcpio.conf. So it’s HOOKS="base udev resume autodetect modconf block keyboard keymap filesystems fsck" now.
  3. And then running sudo mkinitcpio -P && sudo update-grub

Is there anyway to get it working properly?

$ inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.10.52-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=fafd7abd-d23a-4df3-afbb-a8f76cdf2c7f rw 
  resume=UUID=f49cbfea-93dd-42ec-a75a-3418f0929411 quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.3 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X512DA_X512DA 
  v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: X512DA v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: X512DA.316 date: 02/02/2021 
Battery:
  ID-1: BAT0 charge: 28.3 Wh (95.3%) condition: 29.7/37.1 Wh (79.9%) 
  volts: 7.8 min: 7.8 model: ASUSTeK ASUS Battery type: Li-ion serial: N/A 
  status: Charging cycles: 764 
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
Memory:
  RAM: total: 5.81 GiB used: 2.72 GiB (46.9%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 
  bits: 64 type: MT MCP arch: Zen family: 17 (23) model-id: 18 (24) 
  stepping: 1 microcode: 8108109 cache: L2: 2 MiB bogomips: 33551 
  Speed: 1221 MHz min/max: 1400/2100 MHz boost: enabled Core speeds (MHz): 
  1: 1221 2: 1219 3: 1221 4: 1221 5: 1282 6: 1395 7: 1399 8: 1395 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm mca 
  mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl 
  npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb 
  perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 
  rdrand rdseed rdtscp rep_good sep sev sev_es sha_ni skinit smap smca sme 
  smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall tce 
  topoext tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt 
  xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Picasso vendor: ASUSTeK driver: amdgpu v: kernel 
  bus-ID: 03:00.0 chip-ID: 1002:15d8 class-ID: 0300 
  Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
  bus-ID: 3-2.2:5 chip-ID: 13d3:56dd class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
  display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x193mm (13.5x7.6") 
  diag: 394mm (15.5") 
  OpenGL: renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.40.0 
  5.10.52-1-MANJARO LLVM 12.0.1) 
  v: 4.6 Mesa 21.1.5 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
  v: kernel bus-ID: 03:00.1 chip-ID: 1002:15de class-ID: 0403 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
  alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus-ID: 03:00.5 
  chip-ID: 1022:15e2 class-ID: 0480 
  Device-3: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus-ID: 03:00.6 chip-ID: 1022:15e3 class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.52-1-MANJARO running: yes 
  Sound Server-2: sndio v: N/A running: no 
  Sound Server-3: JACK v: 0.125.0 running: no 
  Sound Server-4: PulseAudio v: 14.2 running: yes 
  Sound Server-5: PipeWire v: 0.3.32 running: no 
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel 
  bus-ID: 01:00.0 chip-ID: 8086:24fd class-ID: 0280 
  IF: wlp1s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
  bus-ID: 3-2.1:4 chip-ID: 8087:0a2b class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 7 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 476.94 GiB used: 34.77 GiB (7.3%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: PC SN520 SDAPNUW-512G-1102 size: 476.94 GiB block-size: 
  physical: 512 B logical: 512 B speed: 15.8 Gb/s lanes: 2 type: SSD 
  serial: <filter> rev: 20180000 temp: 48.9 C scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 244.14 GiB size: 239.25 GiB (98.00%) 
  used: 33.64 GiB (14.1%) fs: ext4 dev: /dev/nvme0n1p5 maj-min: 259:5 
  label: Manjaro uuid: fafd7abd-d23a-4df3-afbb-a8f76cdf2c7f 
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) 
  used: 27.8 MiB (10.9%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  label: SYSTEM uuid: 2E61-DF92 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 9.77 GiB used: 1.11 GiB (11.3%) 
  priority: -2 dev: /dev/nvme0n1p6 maj-min: 259:6 label: Swap 
  uuid: f49cbfea-93dd-42ec-a75a-3418f0929411 
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 221.93 GiB fs: ntfs label: Windows 
  uuid: C652638E52638253 
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 850 MiB fs: ntfs label: RECOVERY 
  uuid: A40E56010E55CD44 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-3:2 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID 
  driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  power: 98mA chip-ID: 046d:c52b class-ID: 0300 
  Device-2: 1-4:3 info: Logitech Unifying Receiver type: Keyboard,Mouse 
  driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 98mA chip-ID: 046d:c534 class-ID: 0301 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-1:2 info: Realtek RTS5129 Card Reader Controller 
  type: <vendor specific> driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0bda:0129 
  class-ID: ff00 serial: <filter> 
  Hub-4: 3-2:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0608 class-ID: 0900 
  Device-1: 3-2.1:4 info: Intel Bluetooth wireless interface type: Bluetooth 
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA 
  chip-ID: 8087:0a2b class-ID: e001 
  Device-2: 3-2.2:5 info: IMC Networks USB2.0 HD UVC WebCam type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA 
  chip-ID: 13d3:56dd class-ID: 0e02 serial: <filter> 
  Device-3: 3-2.3:6 info: Elan Micro ELAN:Fingerprint type: <vendor specific> 
  driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA 
  chip-ID: 04f3:0903 class-ID: 0000 
  Hub-5: 4-0:1 info: Full speed (or root) Hub ports: 1 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 66.2 C mobo: N/A gpu: amdgpu temp: 66.0 C 
  Fan Speeds (RPM): cpu: 3200 
Info:
  Processes: 251 Uptime: 1h 30m wakeups: 23 Init: systemd v: 248 
  tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1302 
  lib: 362 flatpak: 0 Shell: Bash v: 5.1.8 running-in: yakuake inxi: 3.3.06 

Make a swap entry in your /etc/fstab as:

UUID=f49cbfea-93dd-42ec-a75a-3418f0929411 swap           swap    defaults,noatime 0 0

and reboot.

Reference:
https://wiki.archlinux.org/title/Swap#Swap_partition

I don’t know if this is the desired behaviour but after I click on hibernate:

1. The screen turns off.
2. It’s still “on”. I can see the function lock indicator glowing.
3. When I try to wake it up by pressing some key it shows a "static"y screen and then turns of.
4. However, when it turns back on and log in again, all my applications are still preserved.

Okay wow just to confirm if what I was typing above was correct I redid the whole thing. Yup, I do believe that a “powering down” is the right behaviour. Yes the function key does stay lit up but only for some time. Then the device powers off. When I power it back on the login screen is different that a regular boot.

The "static"y screen still appears on the login screen though which led me to believe it was broken. However, same thing happens on waking from sleep.

Is there any difference in a normal shut down and hibernate other than hibernate saving your state?

yes with hibernate : no login pass :wink: …secure :woozy_face:

Oh then I guess everything is working as it should then. (Except the "static"y screen on waking up from sleep or hibernate I guess. Which isn’t that big of a deal, just seems like something is breaking when it isn’t.)

Thank you!