Keyboard does not wake Manjaro from sleep

As the title says I cant seem to wake a suspended manjaro by tapping on the keyboard. I have to use the power key awaken it.

This is my output from inxi --admin --verbosity=7 --filter --no-host --width

System:
  Kernel: 5.18.17-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.18-x86_64
    root=UUID=2ff75fde-205b-4fcc-bdbd-aa2a0e6b48c7 rw quiet apparmor=1
    security=apparmor udev.log_priority=3 mitigations=off
  Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 info: i3bar wm: i3 v: 4.22
    vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: Dell product: OptiPlex 9020 v: 00
    serial: <superuser required> Chassis: type: 6 serial: <superuser required>
  Mobo: Dell model: 0N4YC8 v: A00 serial: <superuser required> UEFI: Dell
    v: A15 date: 11/08/2015
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse B330/M330/M331
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  RAM: total: 15.53 GiB used: 3.96 GiB (25.5%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-4790 bits: 64 type: MCP arch: Haswell gen: core 4
    level: v3 note: check built: 2013-15 process: Intel 22nm family: 6
    model-id: 0x3C (60) stepping: 3 microcode: 0x28
  Topology: cpus: 1x cores: 4 smt: disabled cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 8 MiB
    desc: 1x8 MiB
  Speed (MHz): avg: 3288 high: 3592 min/max: 800/4000 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 2379 2: 3592 3: 3592
    4: 3592 bogomips: 28744
  Flags: abm acpi aes aperfmperf apic arat arch_perfmon avx avx2 bmi1 bmi2
    bts clflush cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht ibpb ibrs ida invpcid invpcid_single lahf_lm lm mca mce
    md_clear mmx monitor movbe msr mtrr nonstop_tsc nopl nx pae pat pbe pcid
    pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pts rdrand rdtscp
    rep_good sdbg sep smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid x2apic xsave xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: vulnerable, SMT disabled
  Type: mds status: Vulnerable; SMT disabled
  Type: meltdown status: Vulnerable
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 status: Vulnerable: __user pointer sanitization and
    usercopy barriers only; no swapgs barriers
  Type: spectre_v2 status: Vulnerable, IBPB: disabled, STIBP: disabled,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Vulnerable
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
    vendor: Dell driver: i915 v: kernel arch: Gen-5.75 process: Intel 45nm
    built: 2010 ports: active: DP-2,VGA-1 empty: DP-1,HDMI-A-1,HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:0412 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7
    compositor: Picom v: git-b700a driver: X: loaded: modesetting
    alternate: fbdev,vesa dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3520x1200 s-dpi: 96 s-size: 931x317mm (36.65x12.48")
    s-diag: 983mm (38.72")
  Monitor-1: DP-2 pos: right model: Dell U2412M serial: <filter> built: 2015
    res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2 size: 518x324mm (20.39x12.76")
    diag: 611mm (24.1") ratio: 16:10 modes: max: 1920x1200 min: 720x400
  Monitor-2: VGA-1 pos: primary,left model: Dell E2016H serial: <filter>
    built: 2016 res: 1600x900 hz: 60 dpi: 94 gamma: 1.2
    size: 432x236mm (17.01x9.29") diag: 492mm (19.4") ratio: 16:9 modes:
    max: 1600x900 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.3 renderer: Mesa Intel HD Graphics 4600 (HSW
    GT2) direct render: Yes
Audio:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Dell
    driver: snd_hda_intel bus-ID: 3-10:7 v: kernel bus-ID: 00:03.0
    chip-ID: 20b1:3008 class-ID: 0300 chip-ID: 8086:0c0c serial: <filter>
    class-ID: 0403
  Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
    class-ID: 0403
  Device-3: Creative Labs CA0106/CA0111 [SB Live!/Audigy/X-Fi Series]
    driver: snd_ca0106 v: kernel bus-ID: 03:02.0 chip-ID: 1102:0007
    class-ID: 0401
  Device-4: XMOS iFi (by AMR) HD USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound API: ALSA v: k5.18.17-1-MANJARO running: yes
  Sound Interface: sndio v: N/A running: no
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: Intel Ethernet I217-LM vendor: Dell driver: e1000e v: kernel
    port: f080 bus-ID: 00:19.0 chip-ID: 8086:153a class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IF-ID-1: br-06dd4d44c150 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-2: br-21e3169d3898 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-3: br-265295d4d737 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-4: br-2b85685e5b22 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  Message: Output throttled. IPs: 2; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-5: br-57296fe51e02 state: down mac: <filter>
  Message: Output throttled. IPs: 1; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-6: br-8d29e5b555a7 state: down mac: <filter>
  Message: Output throttled. IPs: 1; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-7: br-8d898ff84454 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  Message: Output throttled. IPs: 2; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-8: br-b6952d167873 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  Message: Output throttled. IPs: 2; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-9: br-f91e1907a90a state: down mac: <filter>
  Message: Output throttled. IPs: 1; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-10: docker0 state: down mac: <filter>
  Message: Output throttled. IPs: 1; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-11: veth2114b0b state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-12: veth2bf11a9 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-13: veth369da30 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-14: veth7d25717 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-15: vethbd693b0 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-16: vethc2c5134 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-17: vethd8cfb6b state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Hardware-1: Intel SATA Controller [RAID mode] driver: ahci v: 3.0 port: f060
    bus-ID: 00:1f.2 chip-ID: 8086:2822 rev: N/A class-ID: 0104
Drives:
  Local Storage: total: 2.15 TiB used: 87.66 GiB (4.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: Seagate BarraCuda Q1
    SSD ZA240CV10001 size: 223.57 GiB block-size: physical: 512 B
    logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: N010
    scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM001-1ER164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC26 scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 vendor: SanDisk model: SD8SBAT128G1122
    size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 0000 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 60.24 GiB size: 59 GiB (97.93%) used: 44.43 GiB (75.3%)
    fs: ext4 dev: /dev/sdc2 maj-min: 8:34 label: N/A
    uuid: 2ff75fde-205b-4fcc-bdbd-aa2a0e6b48c7
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 300 KiB (0.1%) fs: vfat dev: /dev/sdc1 maj-min: 8:33 label: N/A
    uuid: CCF5-DD08
  ID-3: /home raw-size: 53.61 GiB size: 52.22 GiB (97.40%)
    used: 43.23 GiB (82.8%) fs: ext4 dev: /dev/sdc3 maj-min: 8:35 label: N/A
    uuid: 8d4a1ff9-816d-422b-bf9f-4fa82bc01862
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 4.88 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sdc4 maj-min: 8:36 label: N/A
    uuid: 5562a708-cb34-4f45-b766-f301c64161d1
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 100 MiB fs: vfat label: N/A
    uuid: 6217-A186
  ID-2: /dev/sda2 maj-min: 8:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/sda3 maj-min: 8:3 size: 222.86 GiB fs: ntfs label: N/A
    uuid: 7E8621C686217FAF
  ID-4: /dev/sda4 maj-min: 8:4 size: 611 MiB fs: ntfs label: N/A
    uuid: 9A6EFA0B6EF9DFC5
  ID-5: /dev/sdb1 maj-min: 8:17 size: 684.3 GiB fs: ntfs label: Photos
    uuid: 54C6241DC624023A
  ID-6: /dev/sdb2 maj-min: 8:18 size: 586.91 GiB fs: ntfs label: Media-I
    uuid: 3ACE34A4CE345A79
  ID-7: /dev/sdb3 maj-min: 8:19 size: 470.82 GiB fs: ntfs label: Media-II
    uuid: F6566D60566D231B
  ID-8: /dev/sdb4 maj-min: 8:20 size: 120.97 GiB fs: ntfs label: Misc
    uuid: 76F87697F87654F9
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:8008 class-ID: 0900
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:8000 class-ID: 0900
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 15 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-6: 3-4:2 info: Microchip (formerly SMSC) USB 2.0 Hub ports: 4 rev: 2.0
    speed: 480 Mb/s power: 2mA chip-ID: 0424:2514 class-ID: 0900
  Device-1: 3-4.3:4 info: Logitech Unifying Receiver type: Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c52f class-ID: 0300
  Device-2: 3-6:3 info: China Resource Semico Redgear Shadow Blade
    Mechanical Keyboard type: Keyboard,Mouse driver: hid-generic,usbhid
    interfaces: 2 rev: 1.1 speed: 1.5 Mb/s power: 100mA chip-ID: 1a2c:92f6
    class-ID: 0301
  Device-3: 3-10:7 info: XMOS iFi (by AMR) HD USB Audio type: Audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 20b1:3008 class-ID: 0300 serial: <filter>
  Hub-7: 4-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 28.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 342 Uptime: 3h 28m wakeups: 22 Init: systemd v: 252
  default: graphical tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7
  Packages: 1941 pm: pacman pkgs: 1918 libs: 427 tools: octopi,pamac,yay
  pm: flatpak pkgs: 10 pm: snap pkgs: 13 Shell: Zsh v: 5.9 running-in: kitty
  inxi: 3.3.24

Also grep . /sys/bus/usb/devices/*/power/wakeup gives me this:

/sys/bus/usb/devices/1-1/power/wakeup:disabled
/sys/bus/usb/devices/2-1/power/wakeup:disabled
/sys/bus/usb/devices/3-4.3/power/wakeup:disabled
/sys/bus/usb/devices/3-4/power/wakeup:disabled
/sys/bus/usb/devices/3-6/power/wakeup:enabled
/sys/bus/usb/devices/usb1/power/wakeup:disabled
/sys/bus/usb/devices/usb2/power/wakeup:disabled
/sys/bus/usb/devices/usb3/power/wakeup:disabled
/sys/bus/usb/devices/usb4/power/wakeup:disabled

and grep . /sys/bus/usb/devices/*/product produces

/sys/bus/usb/devices/3-10/product:iFi (by AMR) HD USB Audio
/sys/bus/usb/devices/3-4.3/product:USB Receiver
/sys/bus/usb/devices/3-6/product:Redgear Shadow Blade Mechanical Keyboard
/sys/bus/usb/devices/usb1/product:EHCI Host Controller
/sys/bus/usb/devices/usb2/product:EHCI Host Controller
/sys/bus/usb/devices/usb3/product:xHCI Host Controller
/sys/bus/usb/devices/usb4/product:xHCI Host Controller

As you can see the keyboard is set to wakeup the computer.
I have the problem on KDE as well as i3 wm. I have both installed

Any help will be appreciated!

Thank you all,

The installed kernel is EOL.
I would install kernel 5.15 and 6.1 (or 5.10).

And two sound servers are running: Puleaudio and Pipewire.

Not that I know anything about it but a question and observation that might lead the way for you and others:

  • Has it ever worked
    or did it stop working?

For an USB keyboard to trigger the event at least the USB bus needs to stay powered to be able to register the event - via the Bios probably.
Don’t know whether that’s the only condition.
I don’t think that suspend to RAM will keep anything more than the RAM refresh alive, suspend to disk is even more unlikely to keep anything powered.

Check your APM (Advanced Power Manager) settings in your BIOS, it might be called something different but most likely something with APM.
That kind of wakup needs to be triggered by hardware.

Most likely in that screen you can also set the time to wakeup your PC automatically, it’s the same Manager settings…

The setting on my PC is called “Wake by PCIe”…