You are not logged in.
Hi everyone!.
When my laptop goes sleep mode, its built-in keyboard doesn't work. Every time I have to reboot my laptop by holding power button.
My system:
System:
Kernel: 6.13.7-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: hpet avail: acpi_pm parameters: BOOT_IMAGE=/vmlinuz-linux
root=UUID=05f1f4ed-07f9-45c1-8fee-5ffc8af809ac rw loglevel=3 quiet
net.ifnames=0 usbcore.autosuspend=-1
Desktop: KDE Plasma v: 6.3.3 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
Distro: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82XM v: IdeaPad Slim 3 15ABR8
serial: <filter> Chassis: type: 10 v: IdeaPad Slim 3 15ABR8 serial: <filter>
Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <filter>
part-nu: LENOVO_MT_82XM_BU_idea_FM_IdeaPad Slim 3 15ABR8
uuid: d974ab90-ae35-4803-84e1-fc5cee86e845 UEFI: LENOVO v: KYCN28WW
date: 11/07/2023
Battery:
ID-1: BAT0 charge: 30.7 Wh (63.6%) condition: 48.3/47.0 Wh (102.7%)
power: 19.6 W volts: 11.5 min: 11.3 model: COSMX L22X3PF2 type: Li-poly
serial: <filter> status: discharging cycles: 78
CPU:
Info: model: AMD Ryzen 7 7730U with Radeon Graphics socket: FP6 bits: 64
type: MT MCP arch: Zen 3 gen: 3 level: v3 note: check built: 2021-22
process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA500011
Topology: cpus: 1x dies: 1 clusters: 1 cores: 8 threads: 16 tpc: 2
smt: enabled cache: L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB
desc: 8x512 KiB L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 1095 min/max: 400/4546 boost: enabled
base/boost: 2000/4550 scaling: driver: amd-pstate-epp governor: powersave
volts: 1.2 V ext-clock: 100 MHz cores: 1: 1095 2: 1095 3: 1095 4: 1095
5: 1095 6: 1095 7: 1095 8: 1095 9: 1095 10: 1095 11: 1095 12: 1095 13: 1095
14: 1095 15: 1095 16: 1095 bogomips: 63879
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: reg_file_data_sampling status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow mitigation: Safe RET
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: Retpolines; IBPB: conditional; IBRS_FW;
STIBP: always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Barcelo vendor: Lenovo
driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: eDP-1
empty: DP-1,HDMI-A-1 bus-ID: 04:00.0 chip-ID: 1002:15e7 class-ID: 0300
temp: 43.0 C
Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-3:2 chip-ID: 04f2:b7ba
class-ID: 0e02 serial: <filter>
Display: unspecified server: X.Org v: 24.1.6 with: Xwayland v: 24.1.6
compositor: kwin_wayland driver: X: loaded: modesetting unloaded: vesa
alternate: fbdev dri: radeonsi gpu: amdgpu display-ID: :1 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.00x11.26")
s-diag: 583mm (22.95")
Monitor-1: eDP-1 model: Lenovo 0x9052 built: 2021 res: mode: 1920x1080
hz: 60 scale: 100% (1) dpi: 142 gamma: 1.2 size: 344x193mm (13.54x7.6")
diag: 394mm (15.5") ratio: 16:9 modes: max: 1920x1080 min: 640x480
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast gbm: drv: radeonsi surfaceless: drv: radeonsi x11:
drv: radeonsi inactive: wayland
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.0.1-arch1.2
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi renoir
ACO DRM 3.61 6.13.7-arch1-1) device-ID: 1002:15e7 memory: 1.95 GiB
unified: no
API: Vulkan Message: No Vulkan data available.
Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
de: kscreen-console,kscreen-doctor wl: wayland-info x11: xdriinfo, xdpyinfo,
xprop, xrandr
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Renoir Radeon High Definition
Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 16 bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
vendor: Lenovo driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x,
snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh,
snd_sof_amd_acp63, snd_sof_amd_acp70 pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
vendor: Lenovo driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s
lanes: 16 bus-ID: 04:00.6 chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.13.7-arch1-1 status: kernel-api tools: N/A
Server-1: PipeWire v: 1.4.1 status: n/a (root, process) with:
1: pipewire-pulse status: active 2: wireplumber status: active 3: pw-jack
type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
vendor: Lenovo driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:c822
class-ID: 0280
IF: wlan0 state: up mac: <filter>
Info: services: NetworkManager,wpa_supplicant
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-4:3 chip-ID: 0bda:c123
class-ID: e001 serial: <filter>
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: yes address: see --recommends
Drives:
Local Storage: total: 953.87 GiB used: 64.09 GiB (6.7%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Micron
model: MTFDKCD1T0QFM-1BD1AABLA size: 953.87 GiB block-size: physical: 512 B
logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 1002V3LN temp: 34.9 C scheme: GPT
SMART: yes health: PASSED on: 26d 21h cycles: 3,061
read-units: 3,546,456 [1.81 TB] written-units: 3,848,045 [1.97 TB]
Partition:
ID-1: / raw-size: 952.87 GiB size: 936.84 GiB (98.32%) used: 63.91 GiB (6.8%)
fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot raw-size: 1024 MiB size: 1022 MiB (99.80%)
used: 180.1 MiB (17.6%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
maj-min: 259:1
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
compressor: zstd max-pool: 20%
ID-1: swap-1 type: zram size: 4 GiB used: 1.1 GiB (27.6%) priority: 100
comp: zstd avail: lzo-rle,lzo,lz4,lz4hc,deflate,842 max-streams: 16
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 71.0 C mobo: N/A gpu: amdgpu temp: 44.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 16 GiB note: est. available: 13.49 GiB used: 2.92 GiB (21.6%)
Processes: 322 Power: uptime: 25m states: freeze,mem,disk suspend: s2idle
wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume
image: 5.38 GiB services: org_kde_powerdevil, power-profiles-daemon,
upowerd Init: systemd v: 257 default: graphical tool: systemctl
Packages: pm: pacman pkgs: 814 libs: 203 tools: yay Compilers: gcc: 14.2.1
Shell: Zsh (su) v: 5.9 running-in: konsole inxi: 3.3.37
Output of dmesg | grep -i "keyboard":
[ 0.804402] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[ 4.747933] ideapad_acpi VPC2004:00: Keyboard backlight control not available
Output of journalctl -b -1 | grep -i "keyboard":
Mar 20 12:32:45 arch kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
Mar 20 12:32:45 arch kernel: ideapad_acpi VPC2004:00: Keyboard backlight control not available
Mar 20 12:32:46 arch systemd-logind[639]: Watching system buttons on /dev/input/event3 (AT Translated Set 2 keyboard)
Mar 20 12:32:53 arch kwin_wayland_wrapper[990]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Mar 20 12:32:53 arch kwin_wayland_wrapper[995]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Mar 20 12:32:55 arch plasmashell[1077]: org.kde.applets.brightness: D-Bus action "KeyboardBrightnessControl" is not available at service "org.kde.Solid.PowerManagement"
Mar 20 12:33:29 arch kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Mar 20 12:33:42 arch kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Mar 20 12:33:54 arch kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Last edited by mmmdv7z (2025-03-26 07:22:26)
Offline
I have a similar issue, it does the same thing when i close the lid, started happening when i switched from xfce to iceWM. Probably because i was too lazy to set it up properly. Yours look like it's kde related.
Offline
Every time I have to reboot my laptop by holding power button.
Just to be clear, the notebook still wakes up, eg. the clock is running, videos playing, etc?
And if you attach an external keyboard you can also use that?
grep -i "keyboard"
Don't please post the complete journal.
sudo journalctl -b -1 | curl -F 'file=@-' 0x0.st
There've apprently been failing attempts to deactivate the input device, but the context of that is unclear and it's also not clear whether any of this is actually related to the sleep cycle or what else might be going on there that causes problems.
Offline
Firstly, I'm sorry for delay
eg. the clock is running, videos playing, etc?
Yeah, touchpad works, clock runs
and here is full journalctl output
Offline
Context of the s2idle
Mar 24 12:02:07 arch kernel: atkbd serio0: Disabling IRQ1 wakeup source to avoid platform firmware bug
Mar 24 12:02:07 arch kernel: atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
Try to add "acpi.prefer_microsoft_guid=1" to the https://wiki.archlinux.org/title/Kernel_parameters
https://bbs.archlinux.org/viewtopic.php … 5#p2057045
https://www.phoronix.com/news/Linux-6.1-ACPI-PM
Alternatively/on top: "atkbd.reset=1 i8042.kbdreset=1"
Offline
Unfortunately, none of those methods worked. I tried all of them
Offline
Journal?
What if you unload and reload atkbd around the sleep using https://wiki.archlinux.org/title/Power_ … stem-sleep ?
Offline
This journal is after adding "acpi.prefer_microsoft_guid=1"
and this is after "atkbd.reset=1 i8042.kbdreset=1"
I also tried using this script:
#!/bin/bash
case $1 $2 in
pre/*)
echo "Unloading atkbd before ${2}"
modprobe -r atkbd
;;
post/*)
echo "Reloading atkbd after ${2}"
modprobe atkbd
;;
esac
But it didn't work either
Offline
http://0x0.st/8jWt.txt and http://0x0.st/8jWw.txt end with the system sleeping - did it not wake up?
Please don't paraphrase "didn#t work", detail what actually happens - https://bbs.archlinux.org/viewtopic.php?id=57855
Offline
did it not wake up?
After pressing sleep button, screen went black, then came back. To make sure if it went sleep or not I closed the lid. Then I was not able to use my keyboard.
Same scenario happened when I typed
systemctl sleep
in order to trigger the script
http://0x0.st/8j4X.txt - after running systemctl sleep
Offline
Do not reboot by pressing the power button, attach an external keyboard or schedule an automated reboot for after the wake.
Mar 25 11:34:38 arch systemd-sleep[2681]: /usr/lib/systemd/system-sleep/atkbd-reset.sh: line 3: syntax error near unexpected token `$2'
Mar 25 11:34:38 arch systemd-sleep[2681]: /usr/lib/systemd/system-sleep/atkbd-reset.sh: line 3: `case $1 $2 in'
Mar 25 11:34:38 arch (sd-exec-strv)[2680]: /usr/lib/systemd/system-sleep/atkbd-reset.sh failed with exit status 2.
Mar 25 11:34:38 arch systemd-sleep[2679]: Performing sleep operation 'suspend'...
Mar 25 11:34:39 arch systemd-sleep[2679]: System returned from sleep operation 'suspend'.
Mar 25 11:34:39 arch systemd-sleep[2727]: /usr/lib/systemd/system-sleep/atkbd-reset.sh: line 3: syntax error near unexpected token `$2'
Mar 25 11:34:39 arch systemd-sleep[2727]: /usr/lib/systemd/system-sleep/atkbd-reset.sh: line 3: `case $1 $2 in'
Mar 25 11:34:39 arch (sd-exec-strv)[2726]: /usr/lib/systemd/system-sleep/atkbd-reset.sh failed with exit status 2.
The syntax in the wiki example is correct - have a closer look at it.
Offline
I changed the script like:
#!/bin/bash
case $1/$2 in
pre/*)
echo "Unloading atkbd before ${2}"
modprobe -r atkbd
;;
post/*)
echo "Reloading atkbd after ${2}"
modprobe atkbd
;;
esac
journal - http://0x0.st/8j4u.txt
I tried using another script for rebooting after wake as follows:
#!/bin/bash
case $1 in
post/*)
/usr/bin/systemctl reboot
;;
esac
But it didnt reboot.
*the journal includes both
Offline
Mar 25 12:10:30 arch systemd-sleep[1662]: Unloading atkbd before suspend
Mar 25 12:10:30 arch kernel: Bluetooth: hci0: RTL: fw version 0xaed66dcb
Mar 25 12:10:30 arch kernel: Bluetooth: hci0: AOSP extensions version v1.00
Mar 25 12:10:30 arch kernel: Bluetooth: hci0: AOSP quality report is supported
Mar 25 12:10:31 arch kernel: atkbd serio0: keyboard reset failed on isa0060/serio0
Mar 25 12:10:31 arch kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input16
Mar 25 12:10:31 arch systemd-sleep[1657]: Performing sleep operation 'suspend'...
Mar 25 12:10:33 arch kernel: PM: suspend exit
Mar 25 12:10:33 arch systemd-sleep[1657]: System returned from sleep operation 'suspend'.
Mar 25 12:10:33 arch systemd-sleep[1671]: Reloading atkbd after suspend
Mar 25 12:10:34 arch kernel: atkbd serio0: keyboard reset failed on isa0060/serio0
Mar 25 12:10:34 arch kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input17
Seems the unload either fail or the module gets immediately reloaded.
#!/bin/bash
case $1/$2 in
post/*)
echo "Reloading atkbd after ${2}"
modprobe -r atkbd || echo "unload failed!"
modprobe atkbd
;;
esac
To schedule a reboot just run "sleep 60; systemctl reboot" before you suspend the system - I'm not sure you can trigger a reboot inside the wakeup hooks.
Offline
I replaced the script and run "sleep 60; systemctl reboot". At the same time I suspended. Keyboard didnt worked again, but after 60 seconds it rebooted.
journal - http://0x0.st/8jYM.txt
Offline
"Reloading atkbd" doesn't show up in that journal?
Offline
I've forgotten to make the script executable. After that I run "sleep 120; systemctl reboot", at the same time "systemctl suspend". After suspending I was able to use my keyboard successfully.
Thank you a lot.
journal - http://0x0.st/8jdj.txt
Last edited by mmmdv7z (2025-03-26 06:26:20)
Offline