Hi, I’m using Batocera on a GPD Win 3, and when I put my console in sleep mode, then wake it up, the keyboard doesn’t work anymore (it’s not activated anymore until reboot). Buttons are OK.
This is apparently a known problem on Linux, and on GPD discord, someone suggests to use systemd with an easy small script to reactivate the keyboard:
path: /lib/systemd/system-sleep/gpdkbd-fix (+x)
#!/bin/bash
[ "$1" = "post" ] && exec modprobe usbhid
["$1" = "pre" ] && exec rmmod usbhid
exit 0
works!
Now, it seems that Batocera does not use systemd, but would it be possible to use this script and adapt it for example in userdata/system/
(but then, how to automate it?) please?
Thank you very much for your kind help !