You are not logged in.

#1 2025-09-27 14:57:12

ne_ochen_horosho
Member
Registered: 2025-09-27
Posts: 3

[SOLVED] Keyboard doesn't work after sleep

Hello.  I have pretty much the same issue as the author of this topic with the only difference being that in my case module atkbd is builtin. 

Logs - https://0x0.st/KagU.txt

I've tried to make service to reload atkbd, but it obviously failed:

$ journalctl -b -1 -u keyboard-reload.service 
Sep 27 16:16:21 nout systemd[1]: Starting Reload keyboard...
Sep 27 16:16:21 nout modprobe[762]: modprobe: FATAL: Module atkbd is builtin.
Sep 27 16:16:21 nout systemd[1]: keyboard-reload.service: Main process exited, code=exited, status=1/FAILURE
Sep 27 16:16:21 nout systemd[1]: keyboard-reload.service: Failed with result 'exit-code'.
Sep 27 16:16:21 nout systemd[1]: Failed to start Reload keyboard.

Is there anything I can do besides compiling custom kernel?
Thanks in advance!

Last edited by ne_ochen_horosho (2025-09-28 12:48:47)

Offline

#2 2025-09-27 16:46:58

ne_ochen_horosho
Member
Registered: 2025-09-27
Posts: 3

Re: [SOLVED] Keyboard doesn't work after sleep

P.S. changed topic to the right one

Offline

#3 2025-09-27 16:47:45

mmy8x
Member
Registered: 2025-03-02
Posts: 69

Re: [SOLVED] Keyboard doesn't work after sleep

If you want to reainitialize atkbd, try

# ls /sys/bus/serio/drivers/atkbd/
bind  bind_mode  description  module  serio0  uevent  unbind        <-- make sure it's serio0 and not some other number
# echo serio0 >/sys/bus/serio/drivers/atkbd/unbind
# echo serio0 >/sys/bus/serio/drivers/atkbd/bind

Offline

#4 2025-09-28 12:48:16

ne_ochen_horosho
Member
Registered: 2025-09-27
Posts: 3

Re: [SOLVED] Keyboard doesn't work after sleep

Thanks, that worked! In case if someone struggles with the same problem, I solved it by creating /etc/systemd/system/keyboard-reload.service

[Unit]
Description=Reload keyboard
After=suspend.target hibernate.target

[Service]
Type=simple
ExecStart=/bin/sh -c 'echo serio0 > /sys/bus/serio/drivers/atkbd/unbind'

[Install]
WantedBy=suspend.target hibernate.target

and enabling it.

Offline

Board footer

Powered by FluxBB