Serial communication with Arduino only works while screen is running

view story

http://stackoverflow.com – I'm on linux and for some reason I can only use the serial port while screen is monitoring it. When screen is not running, the python code doesn't crash or something. The arduino just doesn't respond. Is there something I'm missing? If you need more information, ask please! pi@raspberrypi ~ $ screen "/dev/ttyACM0" 115200 pi@raspberrypi ~ $ sudo python >>> import serial >>> s = serial.Serial("/dev/ttyACM0", 115200) >>> s.write("EXP\n") 4 (HowTos)