![]() ![]() I know that it has something to do with subprocess.Popen - if I comment out the subprocess.Popen() and assume what the response would be, the program works fine.Īlso if I start the program from. I put some logging code in the program and I can tell that the program sees the GPIO pin go LOW, but the xmessage never comes up. ![]() However, if I try to run the program from /etc/rc.local or from crontab to have it start at bootup, it doesn't work - I never get the xmessage. If I run the program from a terminal session using sudo python3 mypgm.py &, it works perfectly. sets the xmessage info into a variable "cmd" The program uses GPIO.wait_for_edge(pin, GPIO.FALLING) to wait. When the pin goes LOW, the program uses xmessage to display a message and looks for a response. I have a Python program that runs in the background and watches a GPIO pin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |