![]() The libraries can also return the current window that has focus as part of the key event, and that may be the other reason the monitor is tied in so deep.I tried $export DISPLAY=":0" But all I want is a way to capture the keyboard input in a process running in the background but with no monitor attached I know at least pyxhook has the ability to capture mouse movement so that makes sense why it would "Need" access to the monitor. ![]() However I try to run them on the pi with no monitor both libraries die DisplaćonnectionError: Can't connect to display ":0": Connection refused I have tried a couple of keyboard packages for python (pynput, pyxhook) and have written/tested simple keystroke loggers that work fine on my desktop (ubuntu) Working on a project that uses a little keyboard and an E-ink display which will run on a raspberry pi Zero.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |