On 02-13-2024 11:42PM, Andrei Borzenkov wrote:
On 14.02.2024 01:34, -pj via openSUSE Users wrote:
Thinkcentre-M57p:/etc/systemd/system> ls -lah -rwxr-xr-x 1 root root 312 Feb 13 15:15 HP-PS2-Keyboard.service ...
ExecStart=-/usr/sbin/HP-PS2-Keyboard.sh ... Thinkcentre-M57p:/usr/sbin> cat HP-PS2-Keyboard.sh #!/bin/bash echo KBC0 >/proc/acpi/wakeup ...
No service is needed.
echo 'w! /proc/acpi/wakeup - - - - KBC0` > /etc/tmpfiles.d/HP-PS2-Keyboard.conf
That's all.
This appears to be very easy to implement indeed. Can you tell me how you found out about this? - The /etc/tmpfiles.d/ directory is empty by default I believe (as is here). Is this folder read by default during boot? Can you tell me what this directory is mainly set to be used for? Obviously you suggest the above. Is there a recommended way to disable the command if eventually a configuration is changed or something like that? - The openSUSE wiki does not seem to have much of anything on PS/2 keyboards from my search. Do you think even though PS/2 keyboard is not very popular now that it would help to put a wiki page in there? -Thanks