Systemctl suspend wakes up the laptop alone

Output of inxi -Fxxxz:

System:    Kernel: 5.6.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: i3 4.16.1-186-gf3fffbae 
           info: i3bar dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X521IA_M533IA v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X521IA v: 1.0 serial: <filter> UEFI: American Megatrends v: X521IA.300 
           date: 04/13/2020 
Battery:   ID-1: BAT0 charge: 10.9 Wh condition: 49.0/50.0 Wh (98%) volts: 11.9/11.9 
           model: ASUSTeK ASUS Battery type: Li-ion serial: N/A status: Discharging cycles: 31 
CPU:       Topology: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64 type: MCP arch: Zen rev: 1 
           L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31958 
           Speed: 1397 MHz min/max: 1400/2000 MHz boost: enabled Core speeds (MHz): 1: 1397 2: 1397 3: 1396 
           4: 1397 5: 1397 6: 1397 7: 1397 8: 1397 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Renoir vendor: ASUSTeK driver: amdgpu v: kernel 
           bus ID: 03:00.0 chip ID: 1002:1636 
           Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo bus ID: 3-3:3 
           chip ID: 13d3:56a2 serial: <filter> 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
           resolution: 1920x1080~60Hz s-dpi: 96 
           OpenGL: renderer: AMD RENOIR (DRM 3.36.0 5.6.19-2-MANJARO LLVM 10.0.1) v: 4.6 Mesa 20.1.7 
           direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] driver: snd_hda_intel v: kernel bus ID: 03:00.1 
           chip ID: 1002:1637 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
           v: kernel bus ID: 03:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.6.19-2-MANJARO 
Network:   Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter vendor: AzureWave 
           driver: rtl8821ce v: N/A port: f000 bus ID: 01:00.0 chip ID: 10ec:c821 
           IF: wlp1s0 state: up mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 29.91 GiB (6.3%) 
           ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLQ512HALU-00000 size: 476.94 GiB speed: 31.6 Gb/s 
           lanes: 4 serial: <filter> rev: FXV7000Q scheme: GPT 
Partition: ID-1: / size: 459.50 GiB used: 29.91 GiB (6.5%) fs: ext4 dev: /dev/nvme0n1p2 
Swap:      ID-1: swap-1 type: partition size: 8.80 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 38.0 C mobo: N/A gpu: amdgpu temp: 36 C 
           Fan Speeds (RPM): cpu: 0 
Info:      Processes: 218 Uptime: 30m Memory: 15.13 GiB used: 2.05 GiB (13.5%) Init: systemd v: 246 Compilers: 
           gcc: 10.2.0 Packages: pacman: 1024 Shell: Zsh v: 5.8 running in: termite inxi: 3.1.05 

As the title says, after typing systemctl suspend on terminal the screen goes blank and then wakes up without any input. That’s the output of journalctl -grep "systemd-suspend:

set 19 12:40:24 arianna-vivobookasuslaptopx521iam533ia systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
set 19 12:40:24 arianna-vivobookasuslaptopx521iam533ia systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
set 19 12:40:24 arianna-vivobookasuslaptopx521iam533ia audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
set 19 12:40:24 arianna-vivobookasuslaptopx521iam533ia kernel: audit: type=1130 audit(1600512024.964:142): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

I dont’t know if it’s correlated but I think that it’s better to mention it: I’m using i3wm with these configurations to power off, reboot and suspend the pc (they’re in the i3 config file and they’re the default ones):

# Set shut down, restart and locking features
bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
mode "$mode_system" {
    bindsym l exec --no-startup-id i3exit lock, mode "default"
    bindsym s exec --no-startup-id i3exit suspend, mode "default"
    bindsym u exec --no-startup-id i3exit switch_user, mode "default"
    bindsym e exec --no-startup-id i3exit logout, mode "default"
    bindsym h exec --no-startup-id i3exit hibernate, mode "default"
    bindsym r exec --no-startup-id i3exit reboot, mode "default"
    bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"

    # exit system mode: "Enter" or "Escape"
    bindsym Return mode "default"
    bindsym Escape mode "default"
}

So when I type $mod+0+s the screen goes blank and never wakes up again. The same issue occurs when I lock the laptop and then lower the screen.

Any help would be appreciated :slight_smile: