How to read from keyboard when no monitor is connected

August 29, 2024, 16:06

catguy12321

I need to run a script on boot that reads from a usb keyboard. I have tried pygame, keyboard and some other modules but they all failed. I am trying to make a secure radio messaging pi for fun, but I need to type in the message. I connected a USB keyboard to the pi, but can't get the pi to get input from the keyboard. I have setup the pi to run a python script at boot, and have tested it with LEDs, but I'm unable to get the input from the keyboard. Any form of help is appreciated, pls leave suggestions

catguy12321

If more information is required, pls ping

oops.se

I suspect you try to read the USB keyboard from a SSH session. Is this the case?