jakeday / linux-surface

Linux Kernel for Surface Devices
2.6k stars 243 forks source link

[SB2] Possible solution: Keyboard and touchpad not working after resume #609

Closed chasecovello closed 4 years ago

chasecovello commented 4 years ago

When resuming my SB2 with performance base from suspend, I frequently find that the keyboard and touchpad don't work. An eject/reattach cycle usually fixes it, so I thought maybe a software-controlled reset of the keyboard USB device might solve the problem. I'm still testing it, but it seems to work so far.

I edited /lib/systemd/system-sleep/sleep to add "usbreset 045e:0922" right after "echo 1 > /sys/bus/pci/rescan". I'm assuming the USB ID is the same for all SB2 systems, but you can double-check by just running "usbreset" and looking for "Surface Keyboard". I'd appreciate hearing if this fixes it for anyone else that has this problem. Thanks!