Keyboard and Mouse can't wake PC from Sleep

In addition when I push my power button on the case to get it to wake up instead of kb&m, both remain asleep and nothing registers as I'm on the sddm login screen. This has happened twice. It also happened within the live environment running off a usb stick. I did find some other users with this problem but were directed to the Arch Wiki which leaves me to a deadend as the sleep hooks section doesn't explain what its showing. So my question about that is what type of user is that section directed towards? I don't see any clues to how I would troubleshoot and diagnose either. I'm getting familiar with linux more each day but the level of that documentation is a bit above me. I'm going to learn it but something needs to come first and that's my issue. I want to move in a direction where I can solve these problems on my own without asking for help repeatedly as there will be countless more to come.

What I've read:

https://wiki.archlinux.org/title/Power_management#Sleep_hooks

```text
System:    Kernel: 5.14.16-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
           root=UUID=b3313c80-ab52-480d-9e9a-0f5523dc311a rw [email protected] quiet splash
           rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
           resume=UUID=edae4f59-58e7-43b3-ae50-453efb741e26 loglevel=3
           Desktop: KDE Plasma 5.23.3 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM
           Distro: Garuda Linux base: Arch Linux
Machine:   Type: Desktop Mobo: Micro-Star model: B550-A PRO (MS-7C56) v: 1.0 serial: <filter>
           UEFI: American Megatrends LLC. v: A.50 date: 01/15/2021
CPU:       Info: 8-Core model: AMD Ryzen 7 5700G with Radeon Graphics bits: 64 type: MT MCP
           arch: Zen 3 family: 19 (25) model-id: 50 (80) stepping: 0 microcode: A50000B cache:
           L2: 4 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 121366
           Speed: 4470 MHz min/max: 1400/3800 MHz boost: enabled Core speeds (MHz): 1: 4470
           2: 4532 3: 4462 4: 4496 5: 4582 6: 4390 7: 4535 8: 4579 9: 4486 10: 4481 11: 4587
           12: 4488 13: 4585 14: 4561 15: 4441 16: 4535
           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
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, STIBP:
           always-on, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: AMD Cezanne driver: amdgpu v: kernel bus-ID: 30:00.0 chip-ID: 1002:1638
           class-ID: 0300
           Display: x11 server: X.Org 1.21.1.1 compositor: kwin_x11 driver: loaded: amdgpu,ati
           unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1
           Screen-1: 0 s-res: 3440x1440 s-dpi: 96 s-size: 910x381mm (35.8x15.0")
           s-diag: 987mm (38.8")
           Monitor-1: HDMI-A-0 res: 3440x1440 dpi: 110 size: 797x333mm (31.4x13.1")
           diag: 864mm (34")
           OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.14.16-zen1-1-zen LLVM 12.0.1)
           v: 4.6 Mesa 21.2.4 direct render: Yes
Audio:     Device-1: AMD driver: snd_hda_intel v: kernel bus-ID: 30:00.1 chip-ID: 1002:1637
           class-ID: 0403
           Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
           v: kernel bus-ID: 30:00.6 chip-ID: 1022:15e3 class-ID: 0403
           Sound Server-1: ALSA v: k5.14.16-zen1-1-zen running: yes
           Sound Server-2: JACK v: 1.9.19 running: no
           Sound Server-3: PulseAudio v: 15.0 running: no
           Sound Server-4: PipeWire v: 0.3.40 running: yes
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Micro-Star MSI
           driver: r8169 v: kernel port: f000 bus-ID: 2a:00.0 chip-ID: 10ec:8168 class-ID: 0200
           IF: enp42s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    Local Storage: total: 950.15 GiB used: 181.89 GiB (19.1%)
           SMART Message: Unable to run smartctl. Root privileges required.
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Corsair model: Corsair MP600 CORE
           size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4
           type: SSD serial: <filter> rev: EGFM52.3 temp: 34.9 C scheme: GPT
           ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Lexar model: USB Flash Drive
           size: 14.91 GiB block-size: physical: 512 B logical: 512 B type: SSD serial: <filter>
           rev: 1100 scheme: MBR
           SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
           ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Cruzer Glide
           size: 3.73 GiB block-size: physical: 512 B logical: 512 B type: N/A serial: <filter>
           rev: 2.01 scheme: MBR
           SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition: ID-1: / raw-size: 78.12 GiB size: 78.12 GiB (100.00%) used: 21.34 GiB (27.3%) fs: btrfs
           dev: /dev/nvme0n1p3 maj-min: 259:3
           ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 576 KiB (0.2%)
           fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
           ID-3: /home raw-size: 818.91 GiB size: 818.91 GiB (100.00%) used: 156.87 GiB (19.2%)
           fs: btrfs dev: /dev/nvme0n1p4 maj-min: 259:4
           ID-4: /var/log raw-size: 78.12 GiB size: 78.12 GiB (100.00%) used: 21.34 GiB (27.3%)
           fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
           ID-5: /var/tmp raw-size: 78.12 GiB size: 78.12 GiB (100.00%) used: 21.34 GiB (27.3%)
           fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
           ID-1: swap-1 type: partition size: 34.18 GiB used: 0 KiB (0.0%) priority: -2
           dev: /dev/nvme0n1p2 maj-min: 259:2
           ID-2: swap-2 type: zram size: 27.32 GiB used: 24 MiB (0.1%) priority: 100
           dev: /dev/zram0
Sensors:   System Temperatures: cpu: 46.7 C mobo: N/A gpu: amdgpu temp: 29.0 C
           Fan Speeds (RPM): N/A
Info:      Processes: 461 Uptime: 1d 1h 44m wakeups: 2 Memory: 27.32 GiB used: 14.19 GiB (51.9%)
           Init: systemd v: 249 tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1 Packages:
           pacman: 1861 lib: 525 Client: Unknown Client: garuda-assistant inxi: 3.3.08

First of all you need to update ?
Then see if it persists?

1 Like

Just to check, what's the output for:

cat /proc/acpi/wakeup | grep -E "EHC|XHC"

1 Like

Some general tips:

Be sure your bios is up to date.

Try selecting a different sleep state in your bios.

Temporarily disable any power saving utilitities you might be using (such as TLP).

In the thread you linked @petsam suggested a udev rule to help with this. A udev rule would probably be the prefered route. However, I have used scripts and services for this task in the past.

You should be able to find information on using a service in my posts on the old archived Manjaro forum.

https://www.google.com/search?client=firefox-b-m&sxsrf=AOaemvJQO8pedahFpUhpH9Yo7XiVafHSMQ:1637705373062&[email protected]+prevent+mouse+sleeping+mouse&spell=1&sa=X&ved=2ahUKEwiZiYf4v6_0AhUyHTQIHUv7BVAQBXoECAsQAQ

Writing this type of service for other people can be very difficult as you need to have exactly the same hardware. So you are kind of on your own when it comes to troubleshooting this stuff.

Good luck with your issue, and welcome to the Garuda forum.

1 Like

I updated and some messages indicated unsuccessful or already up to date components. I'll read a bit more before I put it to sleep to test it.

I don't know how to multi-quote on here (properly, I just select posts and add I guess) so I'll address by order:

output for cat /proc/acpi/wakeup | grep -E "EHC|XHC"

XHC0 S4 *enabled pci:0000:30:00.3
XHC1 S4 *enabled pci:0000:30:00.4

I forgot to look further into that topic I quoted, the udev rule thing is new to me. Is it similar to shell scripting? And I'll check the UEFI again, thanks all.

1 Like