boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.74k stars 432 forks source link

Reading keyboard input when script runs as background Linux service #610

Open soerenbrockmann opened 1 year ago

soerenbrockmann commented 1 year ago

Hi, my edge device runs a Python script as linux service on autostart. I connected a Bluetooth button to it which is like a keyboard sending a volume up (115) event.

When I start my script in a terminal, I am getting the expected response with this keyboard library. However, when I run it as a background service on start up it doesn't work.

Does it work with this keyboard library at all?